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 booleangetNull(int columnIndex)Check whether a column is NULL and update the 'wasNull' status.<T> TgetValue(int columnIndex, ValueFactory<T> vf)Retrieve a value for the given column.RowsetMetadata(ColumnDefinition columnDefinition)Set metadata to enable getValue functionality.booleanwasNull()Was the last value retrieved a NULL value?
-
Constructor Details
-
Method Details
-
setMetadata
Description copied from interface:RowSet metadata to enable getValue functionality.- Specified by:
setMetadatain interfaceRow- Parameters:
columnDefinition-ColumnDefinition- Returns:
Row
-
getValue
Description copied from interface:RowRetrieve a value for the given column. This is the main facility to access values from the Row involvingValueDecoderandValueFactorychain. 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:RowCheck whether a column is NULL and update the 'wasNull' status. -
wasNull
public boolean wasNull()Description copied from interface:RowWas the last value retrieved a NULL value?
-