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

public abstract Class AbstractResultsetRows

extends Object
implements ResultsetRows
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.ResultsetRows, com.mysql.cj.protocol.ProtocolEntity, com.mysql.cj.result.RowList, java.util.Iterator
Known Direct Subclasses
com.mysql.cj.protocol.a.result.ResultsetRowsCursor, com.mysql.cj.protocol.a.result.ResultsetRowsStatic, com.mysql.cj.protocol.a.result.ResultsetRowsStreaming
Imports
com.mysql.cj.protocol.ColumnDefinition, .ProtocolEntityFactory, .ResultsetRow, .ResultsetRows, .ResultsetRowsOwner, com.mysql.cj.protocol.a.NativePacketPayload

Field Summary

Modifier and TypeField and Description
protected static final int
protected int
currentPositionInFetchedRows

Position in cache of rows, used to determine if we need to fetch more rows from the server to satisfy a request for the next row.

protected ColumnDefinition
metadata

Field-level metadata from the server.

protected ResultsetRowsOwner
owner

The result set that we 'belong' to.

protected ProtocolEntityFactory<ResultsetRow, NativePacketPayload>
protected boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ColumnDefinition
public ResultsetRowsOwner
getOwner()

Implements com.mysql.cj.protocol.ResultsetRows.getOwner.

Returns the result set that 'owns' this RowData

public void
setMetadata(ColumnDefinition
field-level metadata for the result set
columnDefinition
)

Implements com.mysql.cj.protocol.ResultsetRows.setMetadata.

Sometimes the driver doesn't have metadata until after the statement has the result set in-hand (because it's cached), so it can call this to set it after the fact.

public void
setOwner(ResultsetRowsOwner
the result set that 'owns' this RowData
rs
)

Implements com.mysql.cj.protocol.ResultsetRows.setOwner.

Set the result set that 'owns' this RowData

public boolean
wasEmpty()

Implements com.mysql.cj.protocol.ResultsetRows.wasEmpty.

Did this result set have no rows?

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BEFORE_START_OF_ROWSback to summary
protected static final int BEFORE_START_OF_ROWS
currentPositionInFetchedRowsback to summary
protected int currentPositionInFetchedRows

Position in cache of rows, used to determine if we need to fetch more rows from the server to satisfy a request for the next row.

metadataback to summary
protected ColumnDefinition metadata

Field-level metadata from the server. We need this, because it is not sent for each batch of rows, but we need the metadata to unpack the results for each field.

ownerback to summary
protected ResultsetRowsOwner owner

The result set that we 'belong' to.

rowFactoryback to summary
protected ProtocolEntityFactory<ResultsetRow, NativePacketPayload> rowFactory
wasEmptyback to summary
protected boolean wasEmpty

Constructor Detail

AbstractResultsetRowsback to summary
public AbstractResultsetRows()

Method Detail

getMetadataback to summary
public ColumnDefinition getMetadata()

Implements com.mysql.cj.protocol.ResultsetRows.getMetadata.

Annotations
@Override
getOwnerback to summary
public ResultsetRowsOwner getOwner()

Implements com.mysql.cj.protocol.ResultsetRows.getOwner.

Doc from com.mysql.cj.protocol.ResultsetRows.getOwner.

Returns the result set that 'owns' this RowData

Returns:ResultsetRowsOwner

ResultsetRowsOwner

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

Implements com.mysql.cj.protocol.ResultsetRows.setMetadata.

Doc from com.mysql.cj.protocol.ResultsetRows.setMetadata.

Sometimes the driver doesn't have metadata until after the statement has the result set in-hand (because it's cached), so it can call this to set it after the fact.

Parameters
columnDefinition:ColumnDefinition

field-level metadata for the result set

Annotations
@Override
setOwnerback to summary
public void setOwner(ResultsetRowsOwner rs)

Implements com.mysql.cj.protocol.ResultsetRows.setOwner.

Doc from com.mysql.cj.protocol.ResultsetRows.setOwner.

Set the result set that 'owns' this RowData

Parameters
rs:ResultsetRowsOwner

the result set that 'owns' this RowData

Annotations
@Override
wasEmptyback to summary
public boolean wasEmpty()

Implements com.mysql.cj.protocol.ResultsetRows.wasEmpty.

Doc from com.mysql.cj.protocol.ResultsetRows.wasEmpty.

Did this result set have no rows?

Returns:boolean

true if the result set did not have rows

Annotations
@Override