public class JdbcQueryStatement extends java.lang.Object implements QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
QueryStatement
for a SQL PreparedStatement
.Constructor and Description |
---|
JdbcQueryStatement() |
Modifier and Type | Method and Description |
---|---|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setArray(java.sql.PreparedStatement statement,
java.lang.Integer name,
java.lang.Object array)
Sets an array value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setBigDecimal(java.sql.PreparedStatement statement,
java.lang.Integer name,
java.math.BigDecimal bd)
Write a BigDecimal value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setBoolean(java.sql.PreparedStatement statement,
java.lang.Integer name,
boolean bool)
Write a boolean value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setByte(java.sql.PreparedStatement statement,
java.lang.Integer name,
byte b)
Write a byte value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setBytes(java.sql.PreparedStatement statement,
java.lang.Integer name,
byte[] bytes)
Write a byte[] value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setChar(java.sql.PreparedStatement statement,
java.lang.Integer name,
char value)
Write a char value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setDate(java.sql.PreparedStatement statement,
java.lang.Integer name,
java.util.Date date)
Write a date value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setDouble(java.sql.PreparedStatement statement,
java.lang.Integer name,
double d)
Write a double value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setDynamic(java.sql.PreparedStatement statement,
java.lang.Integer index,
DataType dataType,
java.lang.Object value)
Write a value dynamically using the result set and the given name and data type.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setFloat(java.sql.PreparedStatement statement,
java.lang.Integer name,
float f)
Write a float value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setInt(java.sql.PreparedStatement statement,
java.lang.Integer name,
int integer)
Write a int value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setLong(java.sql.PreparedStatement statement,
java.lang.Integer name,
long value)
Write a long value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setShort(java.sql.PreparedStatement statement,
java.lang.Integer name,
short s)
Write a short value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setString(java.sql.PreparedStatement statement,
java.lang.Integer name,
java.lang.String string)
Write a string value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setTimestamp(java.sql.PreparedStatement statement,
java.lang.Integer name,
java.util.Date date)
Write a date value for the given name.
|
QueryStatement<java.sql.PreparedStatement,java.lang.Integer> |
setValue(java.sql.PreparedStatement statement,
java.lang.Integer index,
java.lang.Object value)
Sets the give given object value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertRequired
public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setDynamic(@NonNull java.sql.PreparedStatement statement, @NonNull java.lang.Integer index, @NonNull DataType dataType, java.lang.Object value)
QueryStatement
setDynamic
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementindex
- The indexdataType
- The data typevalue
- the value@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setTimestamp(java.sql.PreparedStatement statement, java.lang.Integer name, java.util.Date date)
QueryStatement
setTimestamp
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)date
- The datepublic QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setValue(java.sql.PreparedStatement statement, java.lang.Integer index, java.lang.Object value) throws DataAccessException
QueryStatement
setValue
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementindex
- The indexvalue
- The valueDataAccessException
- if the value cannot be read@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setLong(java.sql.PreparedStatement statement, java.lang.Integer name, long value)
QueryStatement
setLong
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)value
- The value@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setChar(java.sql.PreparedStatement statement, java.lang.Integer name, char value)
QueryStatement
setChar
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)value
- The char value@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setDate(java.sql.PreparedStatement statement, java.lang.Integer name, java.util.Date date)
QueryStatement
setDate
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)date
- The datepublic QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setString(java.sql.PreparedStatement statement, java.lang.Integer name, java.lang.String string)
QueryStatement
setString
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)string
- The string@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setInt(java.sql.PreparedStatement statement, java.lang.Integer name, int integer)
QueryStatement
setInt
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)integer
- The integer@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setBoolean(java.sql.PreparedStatement statement, java.lang.Integer name, boolean bool)
QueryStatement
setBoolean
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)bool
- The boolean@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setFloat(java.sql.PreparedStatement statement, java.lang.Integer name, float f)
QueryStatement
setFloat
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)f
- The float@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setByte(java.sql.PreparedStatement statement, java.lang.Integer name, byte b)
QueryStatement
setByte
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)b
- The byte@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setShort(java.sql.PreparedStatement statement, java.lang.Integer name, short s)
QueryStatement
setShort
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)s
- The short@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setDouble(java.sql.PreparedStatement statement, java.lang.Integer name, double d)
QueryStatement
setDouble
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)d
- The double@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setBigDecimal(java.sql.PreparedStatement statement, java.lang.Integer name, java.math.BigDecimal bd)
QueryStatement
setBigDecimal
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)bd
- The big decimal@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setBytes(java.sql.PreparedStatement statement, java.lang.Integer name, byte[] bytes)
QueryStatement
setBytes
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)bytes
- the bytes@NonNull public QueryStatement<java.sql.PreparedStatement,java.lang.Integer> setArray(java.sql.PreparedStatement statement, java.lang.Integer name, java.lang.Object array)
QueryStatement
setArray
in interface QueryStatement<java.sql.PreparedStatement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)array
- the array