public class ColumnIndexR2dbcResultReader extends java.lang.Object implements ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
ResultReader
for R2DBC.Constructor and Description |
---|
ColumnIndexR2dbcResultReader() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getRequiredValue(io.r2dbc.spi.Row resultSet,
java.lang.Integer name,
java.lang.Class<T> type)
Get a value from the given result set for the given name and type.
|
boolean |
next(io.r2dbc.spi.Row resultSet)
Move the index to the next result if possible.
|
java.math.BigDecimal |
readBigDecimal(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a BigDecimal value for the given name.
|
boolean |
readBoolean(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a boolean value for the given name.
|
byte |
readByte(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a byte value for the given name.
|
byte[] |
readBytes(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a byte[] value for the given name.
|
char |
readChar(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a char value for the given name.
|
java.util.Date |
readDate(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a date value for the given name.
|
double |
readDouble(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a double value for the given name.
|
java.lang.Object |
readDynamic(io.r2dbc.spi.Row resultSet,
java.lang.Integer index,
DataType dataType)
Read a value dynamically using the result set and the given name and data type.
|
float |
readFloat(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a float value for the given name.
|
int |
readInt(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a int value for the given name.
|
long |
readLong(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a long value for the given name.
|
short |
readShort(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a short value for the given name.
|
java.lang.String |
readString(io.r2dbc.spi.Row resultSet,
java.lang.Integer name)
Read a string value for the given name.
|
java.util.Date |
readTimestamp(io.r2dbc.spi.Row resultSet,
java.lang.Integer index)
Read a timestamp value for the given index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertRequired, convertRequired, readUUID
@Nullable public java.lang.Object readDynamic(@NonNull io.r2dbc.spi.Row resultSet, @NonNull java.lang.Integer index, @NonNull DataType dataType)
ResultReader
readDynamic
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setindex
- The namedataType
- The data typepublic long readLong(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readLong
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public char readChar(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readChar
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public java.util.Date readDate(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readDate
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public java.util.Date readTimestamp(io.r2dbc.spi.Row resultSet, java.lang.Integer index)
ResultReader
readTimestamp
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setindex
- The index (such as the column name)@Nullable public java.lang.String readString(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readString
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public int readInt(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readInt
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public boolean readBoolean(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readBoolean
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public float readFloat(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readFloat
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public byte readByte(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readByte
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public short readShort(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readShort
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public double readDouble(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readDouble
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public java.math.BigDecimal readBigDecimal(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readBigDecimal
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)public byte[] readBytes(io.r2dbc.spi.Row resultSet, java.lang.Integer name)
ResultReader
readBytes
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result setname
- The name (such as the column name)@Nullable public <T> T getRequiredValue(io.r2dbc.spi.Row resultSet, java.lang.Integer name, java.lang.Class<T> type) throws DataAccessException
ResultReader
getRequiredValue
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
T
- The generic typeresultSet
- The result setname
- The nametype
- The typeDataAccessException
- if the value cannot be readpublic boolean next(io.r2dbc.spi.Row resultSet)
ResultReader
next
in interface ResultReader<io.r2dbc.spi.Row,java.lang.Integer>
resultSet
- The result set