code: private static <T> int setStatementParameters(final T item,
                                                   final Introspected introspected,
                                                   final FieldColumnInfo[] fcInfos,
                                                   final PreparedStatement stmt,
                                                   final int[] parameterTypes,
                                                   final Set<String> excludedColumns) throws SQLException
     {
        int parameterIndex = 1;
        for (final FieldColumnInfo fcInfo : fcInfos) {
           if (excludedColumns == null || !isIgnoredColumn(excludedColumns, fcInfo.getColumnName())) {
              final int parameterType = parameterTypes[parameterIndex - 1];
              final Object object = mapSqlType(introspected.get(item, fcInfo), parameterType);
              if (object != null && !fcInfo.isSelfJoinField()) {
                 stmt.setObject(parameterIndex, object, parameterType);
              }
              else {
                 stmt.setNull(parameterIndex, parameterType);
              }
              ++parameterIndex;
           }
        }
        return parameterIndex;
     }
docs: Small helper to set statement parameters from given object