Top Description Fields Methods
com.mysql.cj.result

public Interface RowList

extends Iterator<Row>
Known Direct Subinterfaces
com.mysql.cj.protocol.ResultsetRows
Known Direct Implementers
com.mysql.cj.protocol.x.XProtocolRowInputStream, com.mysql.cj.result.BufferedRowList
Imports
java.util.Iterator, com.mysql.cj.Messages, com.mysql.cj.exceptions.CJOperationNotSupportedException, .ExceptionFactory

A list of Rows.

Field Summary

Modifier and TypeField and Description
public static final int
RESULT_SET_SIZE_UNKNOWN

What's returned for the size of a row list when its size can not be determined.

Method Summary

Modifier and TypeMethod and Description
public default Row

Returns:

Row
get
(int
row number
n
)

Optionally retrieve Row at index n.

public default int

Returns:

the current row number
getPosition
()

Returns the current position.

public default Row

Returns:

Row
previous
()

Optionally iterate backwards on the list.

public default int

Returns:

the size of this row list
size
()

Only works on non dynamic row lists.

Inherited from java.util.Iterator:
forEachRemaininghasNextnextremove

Field Detail

RESULT_SET_SIZE_UNKNOWNback to summary
public static final int RESULT_SET_SIZE_UNKNOWN

What's returned for the size of a row list when its size can not be determined.

Method Detail

getback to summary
public default Row get(int n)

Optionally retrieve Row at index n. Only works on non dynamic row lists.

Parameters
n:int

row number

Returns:Row

Row

getPositionback to summary
public default int getPosition()

Returns the current position.

Returns:int

the current row number

previousback to summary
public default Row previous()

Optionally iterate backwards on the list.

Returns:Row

Row

sizeback to summary
public default int size()

Only works on non dynamic row lists.

Returns:int

the size of this row list