void applyStatementOptions(Statement statement) throws SQLException { if (options != null) { if (options.getQueryTimeout() > 0) { statement.setQueryTimeout(options.getQueryTimeout()); } if (options.getFetchDirection() != null) { statement.setFetchDirection(options.getFetchDirection().getType()); } if (options.getFetchSize() > 0) { statement.setFetchSize(options.getFetchSize()); } } }
case "fetchDirection": if (member.getValue() instanceof String) { obj.setFetchDirection(io.vertx.ext.sql.FetchDirection.valueOf((String)member.getValue()));
public static void toJson(SQLOptions obj, java.util.Map<String, Object> json) { json.put("autoGeneratedKeys", obj.isAutoGeneratedKeys()); if (obj.getAutoGeneratedKeysIndexes() != null) { json.put("autoGeneratedKeysIndexes", obj.getAutoGeneratedKeysIndexes()); } if (obj.getCatalog() != null) { json.put("catalog", obj.getCatalog()); } if (obj.getFetchDirection() != null) { json.put("fetchDirection", obj.getFetchDirection().name()); } json.put("fetchSize", obj.getFetchSize()); json.put("queryTimeout", obj.getQueryTimeout()); json.put("readOnly", obj.isReadOnly()); if (obj.getResultSetConcurrency() != null) { json.put("resultSetConcurrency", obj.getResultSetConcurrency().name()); } if (obj.getResultSetType() != null) { json.put("resultSetType", obj.getResultSetType().name()); } if (obj.getSchema() != null) { json.put("schema", obj.getSchema()); } if (obj.getTransactionIsolation() != null) { json.put("transactionIsolation", obj.getTransactionIsolation().name()); } } }