Package de.uplanet.lucy.server.util.db
Class DbQuery
java.lang.Object
de.uplanet.lucy.server.util.db.DbQuery
- All Implemented Interfaces:
de.uplanet.lucy.server.util.db.IDbQuery
,de.uplanet.util.ICloseable
,AutoCloseable
This class provides a database API that is intended to be used in scripting environments.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
executeAndGetScalarBigDecimalValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) executeAndGetScalarBigDecimalValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarBigDecimalValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarBooleanValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarBooleanValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarByteValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarByteValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarDateValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarDateValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarDoubleValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarDoubleValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarFloatValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarFloatValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarIntValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarIntValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarLongValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarLongValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarShortValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarShortValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarStringValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarStringValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarTimestampValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarTimestampValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarTimeValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarTimeValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) 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) executeAndGetScalarValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) executeAndGetScalarValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) executeAndGetScalarValue
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) IValueHolder
<?> executeAndGetScalarValueHolder
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) int
executeUpdate
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) int
executeUpdate
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) int
Get the default fetch size.void
setDefaultFetchSize
(int p_iDefaultFetchSize) Set the default fetch size for prepared statements created by this class.
-
Constructor Details
-
DbQuery
public DbQuery()
-
-
Method Details
-
getDefaultFetchSize
public int getDefaultFetchSize()Get the default fetch size. The default value is100
.- Specified by:
getDefaultFetchSize
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Returns:
- The default fetch size.
-
setDefaultFetchSize
public void setDefaultFetchSize(int p_iDefaultFetchSize) Set the default fetch size for prepared statements created by this class.- Specified by:
setDefaultFetchSize
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Parameters:
p_iDefaultFetchSize
- The default fetch size.
-
executeAndGetScalarValueHolder
public IValueHolder<?> executeAndGetScalarValueHolder(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException - Specified by:
executeAndGetScalarValueHolder
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
executeAndGetScalarValue
public Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException - Specified by:
executeAndGetScalarValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
executeAndGetScalarValue
public Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException - Specified by:
executeAndGetScalarValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
executeAndGetScalarValue
public Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException - Specified by:
executeAndGetScalarValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
executeAndGetScalarValue
public Object executeAndGetScalarValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException - Specified by:
executeAndGetScalarValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
executeAndGetScalarBooleanValue
public Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBooleanValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBooleanValue
public Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBooleanValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBooleanValue
public Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBooleanValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBooleanValue
public Boolean executeAndGetScalarBooleanValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBooleanValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarByteValue
public Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarByteValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarByteValue
public Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarByteValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarByteValue
public Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarByteValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarByteValue
public Byte executeAndGetScalarByteValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarByteValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarShortValue
public Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarShortValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarShortValue
public Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarShortValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarShortValue
public Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarShortValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarShortValue
public Short executeAndGetScalarShortValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarShortValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarIntValue
public Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarIntValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarIntValue
public Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarIntValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarIntValue
public Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarIntValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarIntValue
public Integer executeAndGetScalarIntValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarIntValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarLongValue
public Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarLongValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarLongValue
public Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarLongValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarLongValue
public Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarLongValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarLongValue
public Long executeAndGetScalarLongValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarLongValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarFloatValue
public Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarFloatValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarFloatValue
public Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarFloatValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarFloatValue
public Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarFloatValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarFloatValue
public Float executeAndGetScalarFloatValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarFloatValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDoubleValue
public Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDoubleValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDoubleValue
public Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDoubleValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDoubleValue
public Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDoubleValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDoubleValue
public Double executeAndGetScalarDoubleValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDoubleValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBigDecimalValue
public BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBigDecimalValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBigDecimalValue
public BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBigDecimalValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBigDecimalValue
public BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBigDecimalValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarBigDecimalValue
public BigDecimal executeAndGetScalarBigDecimalValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarBigDecimalValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarStringValue
public String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarStringValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarStringValue
public String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarStringValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarStringValue
public String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarStringValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarStringValue
public String executeAndGetScalarStringValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarStringValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimestampValue
public Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimestampValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimestampValue
public Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimestampValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimestampValue
public Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimestampValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimestampValue
public Timestamp executeAndGetScalarTimestampValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimestampValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDateValue
public Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDateValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDateValue
public Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDateValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDateValue
public Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDateValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarDateValue
public Date executeAndGetScalarDateValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarDateValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimeValue
public Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimeValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimeValue
public Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimeValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimeValue
public Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, Object p_valueFallback, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimeValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeAndGetScalarTimeValue
public Date executeAndGetScalarTimeValue(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException - Specified by:
executeAndGetScalarTimeValue
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
de.uplanet.lucy.server.util.db.ValueCastException
-
executeUpdate
public int executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException - Specified by:
executeUpdate
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
executeUpdate
public int executeUpdate(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery, groovy.lang.Closure<?> p_closure) throws SQLException - Specified by:
executeUpdate
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
prepare
public DbPreparedStatement prepare(de.uplanet.jdbc.JdbcConnection p_conn, String p_strQuery) throws SQLException - Specified by:
prepare
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacede.uplanet.lucy.server.util.db.IDbQuery
- Throws:
SQLException
-