类 AbstractResultsetRows
- java.lang.Object
-
- com.mysql.cj.protocol.a.result.AbstractResultsetRows
-
- 所有已实现的接口:
ProtocolEntity,ResultsetRows,RowList,Iterator<Row>
public abstract class AbstractResultsetRows extends Object implements ResultsetRows
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static intBEFORE_START_OF_ROWSprotected intcurrentPositionInFetchedRowsPosition 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 ColumnDefinitionmetadataField-level metadata from the server.protected ResultsetRowsOwnerownerThe result set that we 'belong' to.protected ProtocolEntityFactory<ResultsetRow,NativePacketPayload>rowFactoryprotected booleanwasEmpty-
从接口继承的字段 com.mysql.cj.result.RowList
RESULT_SET_SIZE_UNKNOWN
-
-
构造器概要
构造器 构造器 说明 AbstractResultsetRows()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ColumnDefinitiongetMetadata()ResultsetRowsOwnergetOwner()Returns the result set that 'owns' this RowDatavoidsetMetadata(ColumnDefinition columnDefinition)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.voidsetOwner(ResultsetRowsOwner rs)Set the result set that 'owns' this RowDatabooleanwasEmpty()Did this result set have no rows?-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.util.Iterator
forEachRemaining, hasNext, next, remove
-
从接口继承的方法 com.mysql.cj.protocol.ResultsetRows
addRow, afterLast, beforeFirst, beforeLast, close, isAfterLast, isBeforeFirst, isDynamic, isEmpty, isFirst, isLast, moveRowRelative, setCurrentRow
-
从接口继承的方法 com.mysql.cj.result.RowList
get, getPosition, previous, size
-
-
-
-
字段详细资料
-
BEFORE_START_OF_ROWS
protected static final int BEFORE_START_OF_ROWS
- 另请参阅:
- 常量字段值
-
metadata
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.
-
currentPositionInFetchedRows
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.
-
wasEmpty
protected boolean wasEmpty
-
owner
protected ResultsetRowsOwner owner
The result set that we 'belong' to.
-
rowFactory
protected ProtocolEntityFactory<ResultsetRow,NativePacketPayload> rowFactory
-
-
方法详细资料
-
setOwner
public void setOwner(ResultsetRowsOwner rs)
从接口复制的说明:ResultsetRowsSet the result set that 'owns' this RowData- 指定者:
setOwner在接口中ResultsetRows- 参数:
rs- the result set that 'owns' this RowData
-
getOwner
public ResultsetRowsOwner getOwner()
从接口复制的说明:ResultsetRowsReturns the result set that 'owns' this RowData- 指定者:
getOwner在接口中ResultsetRows- 返回:
ResultsetRowsOwner
-
setMetadata
public void setMetadata(ColumnDefinition columnDefinition)
从接口复制的说明:ResultsetRowsSometimes 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.- 指定者:
setMetadata在接口中ResultsetRows- 参数:
columnDefinition- field-level metadata for the result set
-
getMetadata
public ColumnDefinition getMetadata()
- 指定者:
getMetadata在接口中ResultsetRows
-
wasEmpty
public boolean wasEmpty()
从接口复制的说明:ResultsetRowsDid this result set have no rows?- 指定者:
wasEmpty在接口中ResultsetRows- 返回:
- true if the result set did not have rows
-
-