Package de.uplanet.lucy.server.util.db
Class DbPreparedStatement
java.lang.Object
de.uplanet.lucy.server.util.db.DbPreparedStatement
- All Implemented Interfaces:
- IDbPreparedStatement,- de.uplanet.util.ICloseable,- AutoCloseable
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close this statement.voidexecute()Executes the SQL statement in this object, which may be any kind of SQL statement.Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarBigDecimalValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarBooleanValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarByteValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarDateValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarDoubleValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarFloatValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarIntValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarLongValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarShortValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarStringValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarTimestampValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Typed version ofIDbPreparedStatement.executeAndGetScalarValue().executeAndGetScalarTimeValue(Object p_valueFallback) Typed version ofIDbPreparedStatement.executeAndGetScalarValue(Object).Get the value of the first column in the first row of the result set.executeAndGetScalarValue(Object p_valueFallback) Get the value of the first column in the first row of the result set.IValueHolder<?>Get the value of the first column in the first row of the result set.Executes the SQL query in this object and returns theIDbResultSetobject generated by the query.intExecutes the SQL statement in this object, which must be an SQL Data Manipulation Language (DML) statement, such asINSERT,UPDATEorDELETE; or an SQL statement that returns nothing, such as a DDL statement.intGet the fetch size of the underlying prepared statement.voidsetBigDecimal(int p_iIdx, Object p_value) Sets the designated parameter to the given number value.voidsetBoolean(int p_iIdx, Object p_value) Sets the designated parameter to the given boolean value.voidSets the designated parameter to the given integer value.voidsetCharacterStream(int p_iIdx, Object p_value) Sets the designated parameter to the value given string value.voidSets the designated parameter to the given date value.voidSets the designated parameter to the given date value.voidSets the designated parameter to the given date value.voidSets the designated parameter to the given floating point number value.voidsetFetchSize(int p_iFetchSize) Set the fetch size of the underlying prepared statement.voidSets the designated parameter to the given floating point number value.voidSets the designated parameter to the given integer number value.voidSets the designated parameter to the given integer number value.voidSets the designated parameter to the given integer number value.voidSets the designated parameter to the given string value.voidSets the designated parameter to the given time value.voidSets the designated parameter to the given time value.voidSets the designated parameter to the given time value.voidsetTimestamp(int p_iIdx, Object p_value) Sets the designated parameter to the given timestamp value.voidsetTimestamp(int p_iIdx, Object p_value, Calendar p_cal) Sets the designated parameter to the given timestamp value.voidsetTimestamp(int p_iIdx, Object p_value, TimeZone p_tz) Sets the designated parameter to the given timestamp value.
- 
Method Details- 
getFetchSizeDescription copied from interface:IDbPreparedStatementGet the fetch size of the underlying prepared statement.- Specified by:
- getFetchSizein interface- IDbPreparedStatement
- Returns:
- The fetch size.
- Throws:
- SQLException
- See Also:
 
- 
setFetchSizeDescription copied from interface:IDbPreparedStatementSet the fetch size of the underlying prepared statement.- Specified by:
- setFetchSizein interface- IDbPreparedStatement
- Parameters:
- p_iFetchSize- The fetch size.
- Throws:
- SQLException
- See Also:
 
- 
executeDescription copied from interface:IDbPreparedStatementExecutes the SQL statement in this object, which may be any kind of SQL statement.- Specified by:
- executein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
 
- 
executeUpdateDescription copied from interface:IDbPreparedStatementExecutes the SQL statement in this object, which must be an SQL Data Manipulation Language (DML) statement, such asINSERT,UPDATEorDELETE; or an SQL statement that returns nothing, such as a DDL statement.- Specified by:
- executeUpdatein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
 
- 
executeQueryDescription copied from interface:IDbPreparedStatementExecutes the SQL query in this object and returns theIDbResultSetobject generated by the query.- Specified by:
- executeQueryin interface- IDbPreparedStatement
- Returns:
- An IDbResultSetobject that contains the data produced by the query; nevernull.
- Throws:
- SQLException- If a database error occurred.
 
- 
executeAndGetScalarValueHolderGet 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- IDbPreparedStatement
- 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
 
- 
executeAndGetScalarValueGet 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.- Specified by:
- executeAndGetScalarValuein interface- IDbPreparedStatement
- Parameters:
- 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
 
- 
executeAndGetScalarValueGet the value of the first column in the first row of the result set.If the result set is empty, nullis returned.- Specified by:
- executeAndGetScalarValuein interface- IDbPreparedStatement
- Returns:
- The value of the first column in the first row of the result set,
    or nullif the result set is empty.
- Throws:
- SQLException
 
- 
executeAndGetScalarBooleanValuepublic Boolean executeAndGetScalarBooleanValue(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarBooleanValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBooleanValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarBooleanValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarByteValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarByteValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarByteValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarShortValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarShortValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarShortValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarIntValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarIntValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarIntValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarLongValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarLongValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarLongValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarFloatValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarFloatValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarFloatValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarDoubleValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDoubleValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarDoubleValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarBigDecimalValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarBigDecimalValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarBigDecimalValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarStringValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarStringValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarStringValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarTimestampValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimestampValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarTimestampValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarDateValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarDateValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarDateValuein interface- IDbPreparedStatement
- 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(Object p_valueFallback) throws SQLException, ValueCastException Description copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue(Object).- Specified by:
- executeAndGetScalarTimeValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
executeAndGetScalarTimeValueDescription copied from interface:IDbPreparedStatementTyped version ofIDbPreparedStatement.executeAndGetScalarValue().- Specified by:
- executeAndGetScalarTimeValuein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
- ValueCastException- If the database value could not be cast to the specific type.
- See Also:
 
- 
setBooleanDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given boolean value.- Specified by:
- setBooleanin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setIntDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given integer number value.- Specified by:
- setIntin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setLongDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given integer number value.- Specified by:
- setLongin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setShortDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given integer number value.- Specified by:
- setShortin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setByteDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given integer value.- Specified by:
- setBytein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setBigDecimalDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given number value.- Specified by:
- setBigDecimalin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setFloatDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given floating point number value.- Specified by:
- setFloatin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setDoubleDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given floating point number value.- Specified by:
- setDoublein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setTimestampDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given timestamp value.A calendar with the time zone that is associated with the database connection that was used to create this statement is used to write the timestamp to the database. - Specified by:
- setTimestampin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setTimestampDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given timestamp value.- Specified by:
- setTimestampin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- p_tz- The time zone to be used when writing the timestamp to the database. If this parameter is omitted, the time zone that is associated with the database connection that was used to create this statement is used.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setTimestampDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given timestamp value.- Specified by:
- setTimestampin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- p_cal- The calendar to be used when writing the timestamp to the database. If this parameter is omitted, a calendar with the time zone that is associated with the database connection that was used to create this statement is used.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setTimeDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given time value.A calendar with the time zone that is associated with the database connection that was used to create this statement is used to write the time value to the database. - Specified by:
- setTimein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setTimeDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given time value.- Specified by:
- setTimein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- p_tz- The time zone to be used when writing the time value to the database. If this parameter is omitted, the time zone that is associated with the database connection that was used to create this statement is used.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setTimeDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given time value.- Specified by:
- setTimein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- p_cal- The calendar to be used when writing the time to the database. If this parameter is omitted, a calendar with the time zone that is associated with the database connection that was used to create this statement is used.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setDateDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given date value.A calendar with the time zone that is associated with the database connection that was used to create this statement is used to write the time value to the database. - Specified by:
- setDatein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setDateDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given date value.- Specified by:
- setDatein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- p_tz- The time zone to be used when writing the date value to the database. If this parameter is omitted, the time zone that is associated with the database connection that was used to create this statement is used.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setDateDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given date value.- Specified by:
- setDatein interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- p_cal- The calendar to be used when writing the date to the database. If this parameter is omitted, a calendar with the time zone that is associated with the database connection that was used to create this statement is used.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setStringDescription copied from interface:IDbPreparedStatementSets the designated parameter to the given string value.- Specified by:
- setStringin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
 
- 
setCharacterStreamDescription copied from interface:IDbPreparedStatementSets the designated parameter to the value given string value.- Specified by:
- setCharacterStreamin interface- IDbPreparedStatement
- Parameters:
- p_iIdx- The first parameter is 1, the second is 2, ...
- p_value- The parameter value.
- Throws:
- SQLException- If the parameter index does not correspond to a parameter marker in the SQL statement, if a database access error occurs, or this method is called on a closed statement.
- IOException
 
- 
closeClose this statement.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- IDbPreparedStatement
- Throws:
- SQLException- If a database error occurred.
 
 
-