Interface IDbQuery
-
- All Superinterfaces:
AutoCloseable,ICloseable
- All Known Implementing Classes:
DbQuery
public interface IDbQuery extends ICloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close this database query object and all dependentDbPreparedStatementandDbResultSetobjects.BigDecimalexecuteAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).BigDecimalexecuteAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).BigDecimalexecuteAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).BigDecimalexecuteAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).BooleanexecuteAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).BooleanexecuteAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).BooleanexecuteAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).BooleanexecuteAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).ByteexecuteAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).ByteexecuteAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).ByteexecuteAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).ByteexecuteAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).DateexecuteAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).DateexecuteAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).DateexecuteAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).DateexecuteAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).DoubleexecuteAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).DoubleexecuteAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).DoubleexecuteAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).DoubleexecuteAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).FloatexecuteAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).FloatexecuteAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).FloatexecuteAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).FloatexecuteAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).IntegerexecuteAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).IntegerexecuteAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).IntegerexecuteAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).IntegerexecuteAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).LongexecuteAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).LongexecuteAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).LongexecuteAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).LongexecuteAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).ShortexecuteAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).ShortexecuteAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).ShortexecuteAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).ShortexecuteAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).StringexecuteAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).StringexecuteAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).StringexecuteAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).StringexecuteAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).TimestampexecuteAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).TimestampexecuteAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).TimestampexecuteAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).TimestampexecuteAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).DateexecuteAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String).DateexecuteAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Closure).DateexecuteAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object).DateexecuteAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure)Typed version ofexecuteAndGetScalarValue(JdbcConnection, String, Object, Closure).ObjectexecuteAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Get the value of the first column in the first row of the result set.ObjectexecuteAndGetScalarValue(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.ObjectexecuteAndGetScalarValue(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.ObjectexecuteAndGetScalarValue(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.intgetDefaultFetchSize()Get the default fetch size.DbPreparedStatementprepare(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery)Prepares a statement.voidsetDefaultFetchSize(int p_iDefaultFetchSize)Set the default fetch size for prepared statements.
-
-
-
Method Detail
-
getDefaultFetchSize
int getDefaultFetchSize()
Get the default fetch size.- Returns:
- The default fetch size.
-
setDefaultFetchSize
void setDefaultFetchSize(int p_iDefaultFetchSize)
Set the default fetch size for prepared statements.- Parameters:
p_iDefaultFetchSize- The default fetch size.
-
executeAndGetScalarValueHolder
IValueHolder<?> 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.
-
executeAndGetScalarValue
Object 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, ornull.- 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.
-
executeAndGetScalarValue
Object 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.
-
executeAndGetScalarValue
Object 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, ornull.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.
-
executeAndGetScalarValue
Object 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.
-
executeAndGetScalarBooleanValue
Boolean 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarBooleanValue
Boolean 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarBooleanValue
Boolean 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarBooleanValue
Boolean 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarByteValue
Byte 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarByteValue
Byte 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarByteValue
Byte 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarByteValue
Byte 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarShortValue
Short 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarShortValue
Short 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarShortValue
Short 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarShortValue
Short 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarIntValue
Integer 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarIntValue
Integer 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarIntValue
Integer 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarIntValue
Integer 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarLongValue
Long 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarLongValue
Long 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarLongValue
Long 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarLongValue
Long 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarFloatValue
Float 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarFloatValue
Float 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarFloatValue
Float 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarFloatValue
Float 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarDoubleValue
Double 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarDoubleValue
Double 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarDoubleValue
Double 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarDoubleValue
Double 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarBigDecimalValue
BigDecimal 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarBigDecimalValue
BigDecimal 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarBigDecimalValue
BigDecimal 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarBigDecimalValue
BigDecimal 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarStringValue
String 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarStringValue
String 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarStringValue
String 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarStringValue
String 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarTimestampValue
Timestamp 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarTimestampValue
Timestamp 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarTimestampValue
Timestamp 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarTimestampValue
Timestamp 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarDateValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarDateValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarDateValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarDateValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeAndGetScalarTimeValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String, Object)
-
executeAndGetScalarTimeValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String)
-
executeAndGetScalarTimeValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String, Object, Closure)
-
executeAndGetScalarTimeValue
Date 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:
executeAndGetScalarValue(JdbcConnection, String, Closure)
-
executeUpdate
int executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLExceptionExecute 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
-
executeUpdate
int executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLExceptionExecute 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
-
prepare
DbPreparedStatement 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.
-
close
void close() throws SQLExceptionClose this database query object and all dependentDbPreparedStatementandDbResultSetobjects.- Specified by:
closein interfaceAutoCloseable- Throws:
SQLException- If a database error occurred.
-
-