类 NativeResultset
- java.lang.Object
-
- com.mysql.cj.protocol.a.result.NativeResultset
-
- 所有已实现的接口:
ProtocolEntity,Resultset
- 直接已知子类:
ResultSetImpl
public class NativeResultset extends Object implements Resultset
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.protocol.Resultset
Resultset.Concurrency, Resultset.Type
-
-
字段概要
字段 修饰符和类型 字段 说明 protected ColumnDefinitioncolumnDefinitionThe metadata for this result setprotected ResultsetnextResultsetprotected intresultIdThe id (used when profiling) to identify usprotected ResultsetRowsrowDataThe actual rowsprotected StringserverInfoAny info message from the server that was created while generating this result set (if 'info parsing' is enabled for the connection).protected RowthisRowPointer to current row dataprotected longupdateCountHow many rows were affected by UPDATE/INSERT/DELETE?protected longupdateIdValue generated for AUTO_INCREMENT columns
-
构造器概要
构造器 构造器 说明 NativeResultset()NativeResultset(OkPacket ok)Create a result set for an executeUpdate statement.NativeResultset(ResultsetRows rows)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclearNextResultset()We can't do this ourselves, otherwise the contract for Statement.getMoreResults() won't work correctly.ColumnDefinitiongetColumnDefinition()ResultsetgetNextResultset()Returns the next ResultSet in a multi-resultset "chain", if any, null if none exists.intgetResultId()The id (used when profiling) to identify usResultsetRowsgetRows()StringgetServerInfo()Returns the server informational message returned from a DDL or DML statement (if any), or null if none.longgetUpdateCount()Returns the update count for this result set (if one exists), otherwise -1.longgetUpdateID()Returns the AUTO_INCREMENT value for the DDL/DML statement which created this result set.booleanhasRows()Does the result set contain rows, or is it the result of a DDL or DML statement?voidinitRowsWithMetadata()Set metadata of this Resultset to ResultsetRows it contains.voidsetColumnDefinition(ColumnDefinition metadata)Sometimes the driver doesn't have metadata before consuming the result set rows (because it's cached), or need to coerce the metadata returned by queries into that required by the particular specification (eg metadata returned by metadata queries into that required by the JDBC specification).voidsetNextResultset(Resultset nextResultset)
-
-
-
字段详细资料
-
columnDefinition
protected ColumnDefinition columnDefinition
The metadata for this result set
-
rowData
protected ResultsetRows rowData
The actual rows
-
nextResultset
protected Resultset nextResultset
-
resultId
protected int resultId
The id (used when profiling) to identify us
-
updateCount
protected long updateCount
How many rows were affected by UPDATE/INSERT/DELETE?
-
updateId
protected long updateId
Value generated for AUTO_INCREMENT columns
-
serverInfo
protected String serverInfo
Any info message from the server that was created while generating this result set (if 'info parsing' is enabled for the connection).
-
thisRow
protected Row thisRow
Pointer to current row data
-
-
构造器详细资料
-
NativeResultset
public NativeResultset()
-
NativeResultset
public NativeResultset(OkPacket ok)
Create a result set for an executeUpdate statement.- 参数:
ok-OkPacket
-
NativeResultset
public NativeResultset(ResultsetRows rows)
-
-
方法详细资料
-
setColumnDefinition
public void setColumnDefinition(ColumnDefinition metadata)
从接口复制的说明:ResultsetSometimes the driver doesn't have metadata before consuming the result set rows (because it's cached), or need to coerce the metadata returned by queries into that required by the particular specification (eg metadata returned by metadata queries into that required by the JDBC specification). So it can call this to set it after the fact.- 指定者:
setColumnDefinition在接口中Resultset- 参数:
metadata- field-level metadata for the result set
-
getColumnDefinition
public ColumnDefinition getColumnDefinition()
- 指定者:
getColumnDefinition在接口中Resultset
-
hasRows
public boolean hasRows()
从接口复制的说明:ResultsetDoes the result set contain rows, or is it the result of a DDL or DML statement?
-
getResultId
public int getResultId()
从接口复制的说明:ResultsetThe id (used when profiling) to identify us- 指定者:
getResultId在接口中Resultset- 返回:
- result id
-
initRowsWithMetadata
public void initRowsWithMetadata()
从接口复制的说明:ResultsetSet metadata of this Resultset to ResultsetRows it contains.- 指定者:
initRowsWithMetadata在接口中Resultset
-
setNextResultset
public void setNextResultset(Resultset nextResultset)
- 指定者:
setNextResultset在接口中Resultset- 参数:
nextResultset- Sets the next result set in the result set chain for multiple result sets.
-
getNextResultset
public Resultset getNextResultset()
从接口复制的说明:ResultsetReturns the next ResultSet in a multi-resultset "chain", if any, null if none exists.- 指定者:
getNextResultset在接口中Resultset- 返回:
- the nextResultSet, if any, null if none exists.
-
clearNextResultset
public void clearNextResultset()
We can't do this ourselves, otherwise the contract for Statement.getMoreResults() won't work correctly.- 指定者:
clearNextResultset在接口中Resultset
-
getUpdateCount
public long getUpdateCount()
从接口复制的说明:ResultsetReturns the update count for this result set (if one exists), otherwise -1.- 指定者:
getUpdateCount在接口中Resultset- 返回:
- return the update count for this result set (if one exists), otherwise -1.
-
getUpdateID
public long getUpdateID()
从接口复制的说明:ResultsetReturns the AUTO_INCREMENT value for the DDL/DML statement which created this result set.- 指定者:
getUpdateID在接口中Resultset- 返回:
- the AUTO_INCREMENT value for the DDL/DML statement which created this result set.
-
getServerInfo
public String getServerInfo()
从接口复制的说明:ResultsetReturns the server informational message returned from a DDL or DML statement (if any), or null if none.- 指定者:
getServerInfo在接口中Resultset- 返回:
- the server informational message
-
getRows
public ResultsetRows getRows()
-
-