/** * Set the query timeout, in seconds, on the prepared statement * * @param seconds number of seconds before timing out * * @return the same Query instance */ public This setQueryTimeout(final int seconds) { return addCustomizer(StatementCustomizers.statementTimeout(seconds)); }
/** * Define all bound arguments that don't already have a definition with a boolean indicating their presence. * Useful to easily template optional properties of pojos or beans like {@code <if(property)>property = :property<endif>}. * @return this */ @Beta public This defineNamedBindings() { return addCustomizer(new DefineNamedBindingsStatementCustomizer()); }
/** * Set the query timeout, in seconds, on the prepared statement * * @param seconds number of seconds before timing out * * @return the same Query instance */ public This setQueryTimeout(final int seconds) { return addCustomizer(StatementCustomizers.statementTimeout(seconds)); }
/** * Set the fetch direction. * @param value the direction to fetch * @return this * @see PreparedStatement#setFetchDirection(int) * @see java.sql.ResultSet#FETCH_FORWARD * @see java.sql.ResultSet#FETCH_REVERSE */ public This setFetchDirection(final int value) { addCustomizer(StatementCustomizers.fetchDirection(value)); return typedThis; }