public interface Row extends ProtocolEntity
| Modifier and Type | Method and Description |
|---|---|
default byte[] |
getBytes(int columnIndex)
Returns the value at the given column as a byte array.
|
boolean |
getNull(int columnIndex)
Check whether a column is NULL and update the 'wasNull' status.
|
<T> T |
getValue(int columnIndex,
ValueFactory<T> vf)
Retrieve a value for the given column.
|
default void |
setBytes(int columnIndex,
byte[] value)
Sets the given byte array as a raw column value (only works currently with ByteArrayRow).
|
default Row |
setMetadata(ColumnDefinition columnDefinition)
Set metadata to enable getValue functionality.
|
boolean |
wasNull()
Was the last value retrieved a NULL value?
|
<T> T getValue(int columnIndex,
ValueFactory<T> vf)
ValueDecoder and ValueFactory chain. Metadata must be set via
Row constructor or setMetadata(ColumnDefinition) call before calling this method to allow
correct columnIndex boundaries check and data type recognition.T - type to decode tocolumnIndex - index of column to retrieve value from (0-indexed, not JDBC 1-indexed)vf - value factory used to create the return value after decodingdefault Row setMetadata(ColumnDefinition columnDefinition)
columnDefinition - ColumnDefinitionRowdefault byte[] getBytes(int columnIndex)
columnIndex - index of column (starting at 0) to return from.NULL, the value returned is nulldefault void setBytes(int columnIndex,
byte[] value)
columnIndex - index of the column (starting at 0) to set to.value - the (raw) value to setboolean getNull(int columnIndex)
columnIndex - of the column value (starting at 0) to check.boolean wasNull()