Interface IDbQuery
- All Superinterfaces:
- AutoCloseable,- de.uplanet.util.ICloseable
- All Known Implementing Classes:
- DbQuery
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close this database query object and all dependentDbPreparedStatementandDbResultSetobjects.executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Get the value of the first column in the first row of the result set.executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Get the value of the first column in the first row of the result set.executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Get the value of the first column in the first row of the result set.executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) Get the value of the first column in the first row of the result set.IValueHolder<?>executeAndGetScalarValueHolder(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Get the value of the first column in the first row of the result set.intexecuteUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Execute anINSERTorUPDATEstatement.intexecuteUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Execute a preparedINSERTorUPDATEstatement.intGet the default fetch size.Prepares a statement.voidsetDefaultFetchSize(int p_iDefaultFetchSize) Set the default fetch size for prepared statements.
- 
Method Details- 
getDefaultFetchSizeint getDefaultFetchSize()Get the default fetch size.- Returns:
- The default fetch size.
 
- 
setDefaultFetchSizevoid setDefaultFetchSize(int p_iDefaultFetchSize) Set the default fetch size for prepared statements.- Parameters:
- p_iDefaultFetchSize- The default fetch size.
 
- 
executeAndGetScalarValueHolderIValueHolder<?> executeAndGetScalarValueHolder(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Get the value of the first column in the first row of the result set.If the result set is empty, nullis returned.- Returns:
- A value holder that contains the value of the first column in the first
    row of the result set, or nullif the result set is empty.
- Throws:
- SQLException- If a database error occurred.
 
- 
executeAndGetScalarValueObject executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException Get the value of the first column in the first row of the result set.If the result set is empty, or the value is null,p_valueIfNullis returned.Note: The type of the result depends on the database column's datatype. To coerce the result to a specific type use the respective executeAndGetScalarValueXxxmethods.- Parameters:
- p_conn- The database connection to be used.
- p_strQuery- The query.
- p_valueFallback- The return value if the query returns an empty result set, or- null.
- Returns:
- The value of the first column in the first row of the result set,
    or p_valueIfNullif the result set is empty, or the value isnull.
- Throws:
- SQLException- If a database error occurred.
 
- 
executeAndGetScalarValueObject executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Get the value of the first column in the first row of the result set.If the result set is empty, nullis returned.Note: The type of the result depends on the database column's datatype. To coerce the result to a specific type use the respective executeAndGetScalarValueXxxmethods.- Returns:
- The value of the first column in the first row of the result set,
    or nullif the result set is empty.
- Throws:
- SQLException- If a database error occurred.
 
- 
executeAndGetScalarValueObject executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException Get the value of the first column in the first row of the result set.If the result set is empty or the value is null,p_valueIfNullis returned.Note: The type of the result depends on the database column's datatype. To coerce the result to a specific type use the respective executeAndGetScalarValueXxxmethods.- Parameters:
- p_conn- The database connection to be used.
- p_strQuery- The query.
- p_valueFallback- The return value if the query returns an empty result set, or- null.
- p_closure- The closure that prepares the statement.
- Returns:
- The value of the first column in the first row of the result set,
    or p_valueIfNullif the result set is empty or the value isnull.
- Throws:
- SQLException- If a database error occurred.
 
- 
executeAndGetScalarValueObject executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException Get the value of the first column in the first row of the result set.If the result set is empty or the value is null,p_valueIfNullis returned.Note: The type of the result depends on the database column's datatype. To coerce the result to a specific type use the respective executeAndGetScalarValueXxxmethods.- Parameters:
- p_conn- The database connection to be used.
- p_strQuery- The query.
- p_closure- The closure that prepares the statement.
- Returns:
- The value of the first column in the first row of the result set,
    or p_valueIfNullif the result set is empty or the value isnull.
- Throws:
- SQLException- If a database error occurred.
 
- 
executeAndGetScalarBooleanValueBoolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValueBoolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValueBoolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValueBoolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValueByte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValueByte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValueByte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValueByte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValueShort executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValueShort executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValueShort executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValueShort executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValueInteger executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValueInteger executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValueInteger executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValueInteger executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValueLong executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValueLong executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValueLong executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValueLong executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValueFloat executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValueFloat executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValueFloat executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValueFloat executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValueDouble executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValueDouble executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValueDouble executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValueDouble executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValueBigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValueBigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValueBigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValueBigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValueString executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValueString executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValueString executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValueString executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValueTimestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValueTimestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValueTimestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValueTimestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValueDate executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValueDate executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValueDate executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValueDate executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValueDate executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValueDate executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValueDate executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValueDate executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeUpdateExecute anINSERTorUPDATEstatement.- Parameters:
- p_conn- The database connection to be used.
- p_strQuery- The SQL statement to be executed.
- Returns:
- The number of affected rows in the database, or 0.
- Throws:
- SQLException
 
- 
executeUpdateint executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException Execute a preparedINSERTorUPDATEstatement.- Parameters:
- p_conn- The database connection to be used.
- p_strQuery- The (prepared) SQL statement to be executed.
- p_closure- The closure that prepares the statement.
- Returns:
- The number of affected rows in the database, or 0.
- Throws:
- SQLException
 
- 
prepareDbPreparedStatement prepare(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Prepares a statement.- Parameters:
- p_conn- The database connection to be used.
- p_strQuery- The (parameterized) SQL query.
- Returns:
- A prepared statement object.
- Throws:
- SQLException- If a database error occurred.
 
- 
closeClose this database query object and all dependentDbPreparedStatementandDbResultSetobjects.- Specified by:
- closein interface- AutoCloseable
- Throws:
- SQLException- If a database error occurred.
 
 
-