PS
- The statement typeIDX
- The index typepublic interface QueryStatement<PS,IDX>
Modifier and Type | Method and Description |
---|---|
default <T> T |
convertRequired(java.lang.Object value,
java.lang.Class<T> type)
Convert the value to the given type.
|
default QueryStatement<PS,IDX> |
setBigDecimal(PS statement,
IDX name,
java.math.BigDecimal bd)
Write a BigDecimal value for the given name.
|
default QueryStatement<PS,IDX> |
setBoolean(PS statement,
IDX name,
boolean bool)
Write a boolean value for the given name.
|
default QueryStatement<PS,IDX> |
setByte(PS statement,
IDX name,
byte b)
Write a byte value for the given name.
|
default QueryStatement<PS,IDX> |
setBytes(PS statement,
IDX name,
byte[] bytes)
Write a byte[] value for the given name.
|
default QueryStatement<PS,IDX> |
setChar(PS statement,
IDX name,
char value)
Write a char value for the given name.
|
default QueryStatement<PS,IDX> |
setDate(PS statement,
IDX name,
java.util.Date date)
Write a date value for the given name.
|
default QueryStatement<PS,IDX> |
setDouble(PS statement,
IDX name,
double d)
Write a double value for the given name.
|
default QueryStatement<PS,IDX> |
setDynamic(PS statement,
IDX index,
DataType dataType,
java.lang.Object value)
Write a value dynamically using the result set and the given name and data type.
|
default QueryStatement<PS,IDX> |
setFloat(PS statement,
IDX name,
float f)
Write a float value for the given name.
|
default QueryStatement<PS,IDX> |
setInt(PS statement,
IDX name,
int integer)
Write a int value for the given name.
|
default QueryStatement<PS,IDX> |
setLong(PS statement,
IDX name,
long value)
Write a long value for the given name.
|
default QueryStatement<PS,IDX> |
setShort(PS statement,
IDX name,
short s)
Write a short value for the given name.
|
default QueryStatement<PS,IDX> |
setString(PS statement,
IDX name,
java.lang.String string)
Write a string value for the given name.
|
default QueryStatement<PS,IDX> |
setTimestamp(PS statement,
IDX name,
java.util.Date date)
Write a date value for the given name.
|
QueryStatement<PS,IDX> |
setValue(PS statement,
IDX index,
java.lang.Object value)
Sets the give given object value.
|
QueryStatement<PS,IDX> setValue(PS statement, IDX index, java.lang.Object value) throws DataAccessException
statement
- The statementindex
- The indexvalue
- The valueDataAccessException
- if the value cannot be readdefault QueryStatement<PS,IDX> setDynamic(@NonNull PS statement, @NonNull IDX index, @NonNull DataType dataType, java.lang.Object value)
statement
- The statementindex
- The indexdataType
- The data typevalue
- the valueDataAccessException
- if the value cannot be read@Nullable default <T> T convertRequired(@Nullable java.lang.Object value, java.lang.Class<T> type)
T
- The generic typevalue
- The valuetype
- The typeDataAccessException
- if the value cannot be converted@NonNull default QueryStatement<PS,IDX> setLong(PS statement, IDX name, long value)
statement
- The statementname
- The name (such as the column name)value
- The value@NonNull default QueryStatement<PS,IDX> setChar(PS statement, IDX name, char value)
statement
- The statementname
- The name (such as the column name)value
- The char value@NonNull default QueryStatement<PS,IDX> setDate(PS statement, IDX name, java.util.Date date)
statement
- The statementname
- The name (such as the column name)date
- The date@NonNull default QueryStatement<PS,IDX> setTimestamp(PS statement, IDX name, java.util.Date date)
statement
- The statementname
- The name (such as the column name)date
- The datedefault QueryStatement<PS,IDX> setString(PS statement, IDX name, java.lang.String string)
statement
- The statementname
- The name (such as the column name)string
- The string@NonNull default QueryStatement<PS,IDX> setInt(PS statement, IDX name, int integer)
statement
- The statementname
- The name (such as the column name)integer
- The integer@NonNull default QueryStatement<PS,IDX> setBoolean(PS statement, IDX name, boolean bool)
statement
- The statementname
- The name (such as the column name)bool
- The boolean@NonNull default QueryStatement<PS,IDX> setFloat(PS statement, IDX name, float f)
statement
- The statementname
- The name (such as the column name)f
- The float@NonNull default QueryStatement<PS,IDX> setByte(PS statement, IDX name, byte b)
statement
- The statementname
- The name (such as the column name)b
- The byte@NonNull default QueryStatement<PS,IDX> setShort(PS statement, IDX name, short s)
statement
- The statementname
- The name (such as the column name)s
- The short@NonNull default QueryStatement<PS,IDX> setDouble(PS statement, IDX name, double d)
statement
- The statementname
- The name (such as the column name)d
- The double@NonNull default QueryStatement<PS,IDX> setBigDecimal(PS statement, IDX name, java.math.BigDecimal bd)
statement
- The statementname
- The name (such as the column name)bd
- The big decimal@NonNull default QueryStatement<PS,IDX> setBytes(PS statement, IDX name, byte[] bytes)
statement
- The statementname
- The name (such as the column name)bytes
- the bytes