Top Fields Constructors Methods
com.mysql.cj.protocol.result

public abstract Class AbstractResultsetRow

extends Object
implements ResultsetRow
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.ResultsetRow, com.mysql.cj.protocol.ProtocolEntity, com.mysql.cj.result.Row
Known Direct Subclasses
com.mysql.cj.protocol.a.result.AbstractBufferRow, com.mysql.cj.protocol.a.result.ByteArrayRow
Imports
com.mysql.cj.Messages, .MysqlType, com.mysql.cj.exceptions.DataReadException, .ExceptionInterceptor, com.mysql.cj.protocol.ColumnDefinition, .ResultsetRow, .ValueDecoder, com.mysql.cj.result.Field, .Row, .ValueFactory

Field Summary

Modifier and TypeField and Description
protected ExceptionInterceptor
protected ColumnDefinition
metadata

The metadata of the fields of this result set.

protected ValueDecoder
protected boolean
wasNull

Did the previous value retrieval find a NULL?

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private <
value type
T
>
T

Returns:

value
decodeAndCreateReturnValue
(int
column index
columnIndex
,
byte[]
bytes array with result data
bytes
,
int
offset in array
offset
,
int
data length
length
,
ValueFactory<T> vf)

Decode the wire-level result bytes and call the value factory.

protected <
value type
T
>
T

Returns:

value
getValueFromBytes
(int
The (internal) index of the column
columnIndex
,
byte[]
byte array
bytes
,
int
offset into byte array
offset
,
int
length of value in byte array
length
,
ValueFactory<T>
value factory
vf
)

Get a value from a byte array.

public Row
setMetadata(ColumnDefinition f)

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

exceptionInterceptorback to summary
protected ExceptionInterceptor exceptionInterceptor
metadataback to summary
protected ColumnDefinition metadata

The metadata of the fields of this result set.

valueDecoderback to summary
protected ValueDecoder valueDecoder
wasNullback to summary
protected boolean wasNull

Did the previous value retrieval find a NULL?

Constructor Detail

AbstractResultsetRowback to summary
protected AbstractResultsetRow(ExceptionInterceptor exceptionInterceptor)

Method Detail

decodeAndCreateReturnValueback to summary
private <T> T decodeAndCreateReturnValue(int columnIndex, byte[] bytes, int offset, int length, ValueFactory<T> vf)

Decode the wire-level result bytes and call the value factory.

Parameters
<T>
value type
columnIndex:int

column index

bytes:byte[]

bytes array with result data

offset:int

offset in array

length:int

data length

vf:ValueFactory<T>

ValueFactory

Returns:T

value

getValueFromBytesback to summary
protected <T> T getValueFromBytes(int columnIndex, byte[] bytes, int offset, int length, ValueFactory<T> vf)

Get a value from a byte array. The byte array is interpreted by the com.mysql.cj.protocol.ValueDecoder which uses the value factory create the return value.

Parameters
<T>
value type
columnIndex:int

The (internal) index of the column

bytes:byte[]

byte array

offset:int

offset into byte array

length:int

length of value in byte array

vf:ValueFactory<T>

value factory

Returns:T

value

setMetadataback to summary
public Row setMetadata(ColumnDefinition f)

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

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

Set metadata to enable getValue functionality.

Parameters
f: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