public class R2dbcQueryStatement extends java.lang.Object implements QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
QueryStatement
for R2DBC.Constructor and Description |
---|
R2dbcQueryStatement() |
Modifier and Type | Method and Description |
---|---|
<T> T |
convertRequired(java.lang.Object value,
java.lang.Class<T> type)
Convert the value to the given type.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setArray(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
java.lang.Object array)
Sets an array value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setBigDecimal(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
java.math.BigDecimal bd)
Write a BigDecimal value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setBoolean(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
boolean bool)
Write a boolean value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setByte(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
byte b)
Write a byte value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setBytes(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
byte[] bytes)
Write a byte[] value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setChar(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
char value)
Write a char value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setDate(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
java.util.Date date)
Write a date value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setDouble(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
double d)
Write a double value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setDynamic(io.r2dbc.spi.Statement 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<io.r2dbc.spi.Statement,java.lang.Integer> |
setFloat(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
float f)
Write a float value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setInt(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
int integer)
Write a int value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setLong(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
long value)
Write a long value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setShort(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
short s)
Write a short value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setString(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
java.lang.String string)
Write a string value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setTimestamp(io.r2dbc.spi.Statement statement,
java.lang.Integer name,
java.util.Date date)
Write a date value for the given name.
|
QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> |
setValue(io.r2dbc.spi.Statement statement,
java.lang.Integer index,
java.lang.Object value)
Sets the give given object value.
|
public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setDynamic(@NonNull io.r2dbc.spi.Statement statement, @NonNull java.lang.Integer index, @NonNull DataType dataType, java.lang.Object value)
QueryStatement
setDynamic
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementindex
- The indexdataType
- The data typevalue
- the valuepublic QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setValue(io.r2dbc.spi.Statement statement, java.lang.Integer index, java.lang.Object value) throws DataAccessException
QueryStatement
setValue
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementindex
- The indexvalue
- The valueDataAccessException
- if the value cannot be read@Nullable public <T> T convertRequired(@Nullable java.lang.Object value, java.lang.Class<T> type)
QueryStatement
convertRequired
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
T
- The generic typevalue
- The valuetype
- The type@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setLong(io.r2dbc.spi.Statement statement, java.lang.Integer name, long value)
QueryStatement
setLong
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)value
- The value@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setChar(io.r2dbc.spi.Statement statement, java.lang.Integer name, char value)
QueryStatement
setChar
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)value
- The char value@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setDate(io.r2dbc.spi.Statement statement, java.lang.Integer name, java.util.Date date)
QueryStatement
setDate
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)date
- The date@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setTimestamp(io.r2dbc.spi.Statement statement, java.lang.Integer name, java.util.Date date)
QueryStatement
setTimestamp
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)date
- The datepublic QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setString(io.r2dbc.spi.Statement statement, java.lang.Integer name, java.lang.String string)
QueryStatement
setString
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)string
- The string@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setInt(io.r2dbc.spi.Statement statement, java.lang.Integer name, int integer)
QueryStatement
setInt
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)integer
- The integer@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setBoolean(io.r2dbc.spi.Statement statement, java.lang.Integer name, boolean bool)
QueryStatement
setBoolean
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)bool
- The boolean@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setFloat(io.r2dbc.spi.Statement statement, java.lang.Integer name, float f)
QueryStatement
setFloat
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)f
- The float@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setByte(io.r2dbc.spi.Statement statement, java.lang.Integer name, byte b)
QueryStatement
setByte
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)b
- The byte@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setShort(io.r2dbc.spi.Statement statement, java.lang.Integer name, short s)
QueryStatement
setShort
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)s
- The short@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setDouble(io.r2dbc.spi.Statement statement, java.lang.Integer name, double d)
QueryStatement
setDouble
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)d
- The double@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setBigDecimal(io.r2dbc.spi.Statement statement, java.lang.Integer name, java.math.BigDecimal bd)
QueryStatement
setBigDecimal
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)bd
- The big decimal@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setBytes(io.r2dbc.spi.Statement statement, java.lang.Integer name, byte[] bytes)
QueryStatement
setBytes
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)bytes
- the bytes@NonNull public QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer> setArray(io.r2dbc.spi.Statement statement, java.lang.Integer name, java.lang.Object array)
QueryStatement
setArray
in interface QueryStatement<io.r2dbc.spi.Statement,java.lang.Integer>
statement
- The statementname
- The name (such as the column name)array
- the array