Class DbQuery
- All Implemented Interfaces:
- IDbQuery,- de.uplanet.util.ICloseable,- AutoCloseable
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close this database query object and all dependentDbPreparedStatementandDbResultSetobjects.executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) Typed version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_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 created by this class.
- 
Constructor Details- 
DbQuerypublic DbQuery()
 
- 
- 
Method Details- 
getDefaultFetchSizepublic int getDefaultFetchSize()Get the default fetch size. The default value is100.- Specified by:
- getDefaultFetchSizein interface- IDbQuery
- Returns:
- The default fetch size.
 
- 
setDefaultFetchSizepublic void setDefaultFetchSize(int p_iDefaultFetchSize) Set the default fetch size for prepared statements created by this class.- Specified by:
- setDefaultFetchSizein interface- IDbQuery
- Parameters:
- p_iDefaultFetchSize- The default fetch size.
 
- 
executeAndGetScalarValueHolderpublic IValueHolder<?> executeAndGetScalarValueHolder(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Description copied from interface:IDbQueryGet the value of the first column in the first row of the result set.If the result set is empty, nullis returned.- Specified by:
- executeAndGetScalarValueHolderin interface- IDbQuery
- 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.
 
- 
executeAndGetScalarValuepublic Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException Description copied from interface:IDbQueryGet 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.- Specified by:
- executeAndGetScalarValuein interface- IDbQuery
- 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.
 
- 
executeAndGetScalarValuepublic Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Description copied from interface:IDbQueryGet 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.- Specified by:
- executeAndGetScalarValuein interface- IDbQuery
- 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.
 
- 
executeAndGetScalarValuepublic Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException Description copied from interface:IDbQueryGet 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.- Specified by:
- executeAndGetScalarValuein interface- IDbQuery
- 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.
 
- 
executeAndGetScalarValuepublic Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException Description copied from interface:IDbQueryGet 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.- Specified by:
- executeAndGetScalarValuein interface- IDbQuery
- 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.
 
- 
executeAndGetScalarBooleanValuepublic Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarBooleanValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValuepublic Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarBooleanValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValuepublic Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarBooleanValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValuepublic Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarBooleanValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValuepublic Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarByteValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValuepublic Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarByteValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValuepublic Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarByteValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValuepublic Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarByteValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValuepublic Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarShortValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValuepublic Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarShortValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValuepublic Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarShortValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValuepublic Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarShortValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValuepublic Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarIntValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValuepublic Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarIntValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValuepublic Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarIntValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValuepublic Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarIntValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValuepublic Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarLongValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValuepublic Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarLongValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValuepublic Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarLongValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValuepublic Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarLongValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValuepublic Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarFloatValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValuepublic Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarFloatValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValuepublic Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarFloatValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValuepublic Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarFloatValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValuepublic Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarDoubleValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValuepublic Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarDoubleValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValuepublic Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarDoubleValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValuepublic Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarDoubleValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValuepublic BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarBigDecimalValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValuepublic BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarBigDecimalValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValuepublic BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarBigDecimalValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValuepublic BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarBigDecimalValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValuepublic String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarStringValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValuepublic String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarStringValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValuepublic String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarStringValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValuepublic String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarStringValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValuepublic Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarTimestampValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValuepublic Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarTimestampValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValuepublic Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarTimestampValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValuepublic Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarTimestampValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValuepublic Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarDateValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValuepublic Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarDateValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValuepublic Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarDateValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValuepublic Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarDateValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValuepublic Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Object).- Specified by:
- executeAndGetScalarTimeValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValuepublic Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String).- Specified by:
- executeAndGetScalarTimeValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValuepublic Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQuery- Specified by:
- executeAndGetScalarTimeValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValuepublic Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, ValueCastException Description copied from interface:IDbQueryTyped version ofIDbQuery.executeAndGetScalarValue(JdbcConnection, String, Closure).- Specified by:
- executeAndGetScalarTimeValuein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeUpdatepublic int executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Description copied from interface:IDbQueryExecute anINSERTorUPDATEstatement.- Specified by:
- executeUpdatein interface- IDbQuery
- 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
 
- 
executeUpdatepublic int executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException Description copied from interface:IDbQueryExecute a preparedINSERTorUPDATEstatement.- Specified by:
- executeUpdatein interface- IDbQuery
- 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
 
- 
preparepublic DbPreparedStatement prepare(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException Description copied from interface:IDbQueryPrepares a statement.- Specified by:
- preparein interface- IDbQuery
- 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.
 
- 
closeDescription copied from interface:IDbQueryClose this database query object and all dependentDbPreparedStatementandDbResultSetobjects.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- IDbQuery
- Throws:
- SQLException- If a database error occurred.
 
 
-