Top Description Fields Constructors Methods
com.mysql.cj.protocol.x

public Class XProtocolRow

extends Object
implements Row
Class Inheritance
All Implemented Interfaces
com.mysql.cj.result.Row, com.mysql.cj.protocol.ProtocolEntity
Imports
com.google.protobuf.ByteString, com.mysql.cj.MysqlType, com.mysql.cj.exceptions.DataReadException, com.mysql.cj.protocol.ColumnDefinition, com.mysql.cj.result.Field, .ValueFactory, com.mysql.cj.x.protobuf.MysqlxResultset.Row

ProtocolEntity representing an X Protocol result row.

Field Summary

Modifier and TypeField and Description
private ColumnDefinition
private MysqlxResultset.Row
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
getNull(int
of the column value (starting at 0) to check.
columnIndex
)

Implements com.mysql.cj.result.Row.getNull.

Check whether a column is NULL and update the 'wasNull' status.

public <T> T
getValue(int
index of column to retrieve value from (0-indexed, not JDBC 1-indexed)
columnIndex
,
ValueFactory<T>
value factory used to create the return value after decoding
vf
)

Implements com.mysql.cj.result.Row.getValue.

Retrieve a value for the given column.

public Row
setMetadata(ColumnDefinition columnDefinition)

Overrides default com.mysql.cj.result.Row.setMetadata.

Set metadata to enable getValue functionality.

public boolean
wasNull()

Implements com.mysql.cj.result.Row.wasNull.

Was the last value retrieved a NULL value?

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

metadataback to summary
private ColumnDefinition metadata
rowMessageback to summary
private MysqlxResultset.Row rowMessage
wasNullback to summary
private boolean wasNull

Constructor Detail

XProtocolRowback to summary
public XProtocolRow(MysqlxResultset.Row rowMessage)

Method Detail

getNullback to summary
public boolean getNull(int columnIndex)

Implements com.mysql.cj.result.Row.getNull.

Doc from com.mysql.cj.result.Row.getNull.

Check whether a column is NULL and update the 'wasNull' status.

Parameters
columnIndex:int

of the column value (starting at 0) to check.

Returns:boolean

true if the column value is NULL, false if not.

Annotations
@Override
getValueback to summary
public <T> T getValue(int columnIndex, ValueFactory<T> vf)

Implements com.mysql.cj.result.Row.getValue.

Doc from com.mysql.cj.result.Row.getValue.

Retrieve a value for the given column. This is the main facility to access values from the Row involving 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.

Parameters
<T>
type to decode to
columnIndex:int

index of column to retrieve value from (0-indexed, not JDBC 1-indexed)

vf:ValueFactory<T>

value factory used to create the return value after decoding

Returns:T

The return value from the value factory

Annotations
@Override
setMetadataback to summary
public Row setMetadata(ColumnDefinition columnDefinition)

Overrides default com.mysql.cj.result.Row.setMetadata.

Doc from com.mysql.cj.result.Row.setMetadata.

Set metadata to enable getValue functionality.

Parameters
columnDefinition:ColumnDefinition

ColumnDefinition

Returns:Row

Row

Annotations
@Override
wasNullback to summary
public boolean wasNull()

Implements com.mysql.cj.result.Row.wasNull.

Doc from com.mysql.cj.result.Row.wasNull.

Was the last value retrieved a NULL value?

Returns:boolean

true if the last retrieved value was NULL.

Annotations
@Override