Package com.mysql.cj.protocol.x
Class XProtocolRow
java.lang.Object
com.mysql.cj.protocol.x.XProtocolRow
- All Implemented Interfaces:
ProtocolEntity
,Row
public class XProtocolRow extends java.lang.Object implements Row
ProtocolEntity representing an X Protocol result row.
-
Constructor Summary
Constructors Constructor Description XProtocolRow(MysqlxResultset.Row rowMessage)
-
Method Summary
Modifier and Type Method Description 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.Row
setMetadata(ColumnDefinition columnDefinition)
Set metadata to enable getValue functionality.boolean
wasNull()
Was the last value retrieved a NULL value?
-
Constructor Details
-
Method Details
-
setMetadata
Description copied from interface:Row
Set metadata to enable getValue functionality.- Specified by:
setMetadata
in interfaceRow
- Parameters:
columnDefinition
-ColumnDefinition
- Returns:
Row
-
getValue
Description copied from interface:Row
Retrieve a value for the given column. This is the main facility to access values from the Row involvingValueDecoder
andValueFactory
chain. Metadata must be set via Row constructor orRow.setMetadata(ColumnDefinition)
call before calling this method to allow correct columnIndex boundaries check and data type recognition. -
getNull
public boolean getNull(int columnIndex)Description copied from interface:Row
Check whether a column is NULL and update the 'wasNull' status. -
wasNull
public boolean wasNull()Description copied from interface:Row
Was the last value retrieved a NULL value?
-