Top Description Inners Methods
com.mysql.cj.protocol

public Interface Resultset

extends ProtocolEntity
Known Direct Subinterfaces
com.mysql.cj.jdbc.result.ResultSetInternalMethods
Known Direct Implementers
com.mysql.cj.protocol.a.result.NativeResultset

Represents protocol specific result set, eg., for native protocol, a ProtocolText::Resultset or ProtocolBinary::Resultset entity. See: http://dev.mysql.com/doc/internals/en/com-query-response.html#packet-ProtocolText::Resultset http://dev.mysql.com/doc/internals/en/binary-protocol-resultset.html

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
public static enum

Method Summary

Modifier and TypeMethod and Description
public void
clearNextResultset()

Clears the reference to the next result set in a multi-result set "chain".

public ColumnDefinition
public Resultset

Returns:

the next Resultset
getNextResultset
()

Returns the next ResultSet in a multi-resultset "chain", if any, null if none exists.

public int

Returns:

result id
getResultId
()

The id (used when profiling) to identify us

public ResultsetRows
public String

Returns:

the server informational message
getServerInfo
()

Returns the server informational message returned from a DDL or DML statement (if any), or null if none.

public long

Returns:

return the update count for this result set (if one exists), otherwise -1.
getUpdateCount
()

Returns the update count for this result set (if one exists), otherwise -1.

public long

Returns:

the AUTO_INCREMENT value for the DDL/DML statement which created this result set.
getUpdateID
()

Returns the AUTO_INCREMENT value for the DDL/DML statement which created this result set.

public boolean

Returns:

true if result set contains rows
hasRows
()

Does the result set contain rows, or is it the result of a DDL or DML statement?

public void
initRowsWithMetadata()

Set metadata of this Resultset to ResultsetRows it contains.

public void
setColumnDefinition(ColumnDefinition
field-level metadata for the result set
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).

public void
setNextResultset(Resultset
Sets the next result set in the result set chain for multiple result sets.
nextResultset
)

Method Detail

clearNextResultsetback to summary
public void clearNextResultset()

Clears the reference to the next result set in a multi-result set "chain".

getColumnDefinitionback to summary
public ColumnDefinition getColumnDefinition()
getNextResultsetback to summary
public Resultset getNextResultset()

Returns the next ResultSet in a multi-resultset "chain", if any, null if none exists.

Returns:Resultset

the next Resultset

getResultIdback to summary
public int getResultId()

The id (used when profiling) to identify us

Returns:int

result id

getRowsback to summary
public ResultsetRows getRows()
getServerInfoback to summary
public String getServerInfo()

Returns the server informational message returned from a DDL or DML statement (if any), or null if none.

Returns:String

the server informational message

getUpdateCountback to summary
public long getUpdateCount()

Returns the update count for this result set (if one exists), otherwise -1.

Returns:long

return the update count for this result set (if one exists), otherwise -1.

getUpdateIDback to summary
public long getUpdateID()

Returns the AUTO_INCREMENT value for the DDL/DML statement which created this result set.

Returns:long

the AUTO_INCREMENT value for the DDL/DML statement which created this result set.

hasRowsback to summary
public boolean hasRows()

Does the result set contain rows, or is it the result of a DDL or DML statement?

Returns:boolean

true if result set contains rows

initRowsWithMetadataback to summary
public void initRowsWithMetadata()

Set metadata of this Resultset to ResultsetRows it contains.

setColumnDefinitionback to summary
public void setColumnDefinition(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). So it can call this to set it after the fact.

Parameters
metadata:ColumnDefinition

field-level metadata for the result set

setNextResultsetback to summary
public void setNextResultset(Resultset nextResultset)
Parameters
nextResultset:Resultset

Sets the next result set in the result set chain for multiple result sets.

com.mysql.cj.protocol back to summary

public final Enum Resultset.Concurrency

extends Enum<Resultset.Concurrency>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Resultset.Concurrency
READ_ONLY

The constant indicating the concurrency mode for a Resultset object that may NOT be updated.

public static final Resultset.Concurrency
UPDATABLE

The constant indicating the concurrency mode for a Resultset object that may be updated.

private int

Constructor Summary

AccessConstructor and Description
private
Concurrency(int jdbcRsConcur)

Method Summary

Modifier and TypeMethod and Description
public static Resultset.Concurrency
fromValue(int concurMode, Resultset.Concurrency backupValue)

public int
public static Resultset.Concurrency
public static Resultset.Concurrency[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

READ_ONLYback to summary
public static final Resultset.Concurrency READ_ONLY

The constant indicating the concurrency mode for a Resultset object that may NOT be updated.

UPDATABLEback to summary
public static final Resultset.Concurrency UPDATABLE

The constant indicating the concurrency mode for a Resultset object that may be updated.

valueback to summary
private int value

Constructor Detail

Concurrencyback to summary
private Concurrency(int jdbcRsConcur)

Method Detail

fromValueback to summary
public static Resultset.Concurrency fromValue(int concurMode, Resultset.Concurrency backupValue)
getIntValueback to summary
public int getIntValue()
valueOfback to summary
public static Resultset.Concurrency valueOf(String name)
valuesback to summary
public static Resultset.Concurrency[] values()
com.mysql.cj.protocol back to summary

public final Enum Resultset.Type

extends Enum<Resultset.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Resultset.Type
FORWARD_ONLY

The constant indicating the type for a Resultset object whose cursor may move only forward.

public static final Resultset.Type
SCROLL_INSENSITIVE

The constant indicating the type for a Resultset object that is scrollable but generally not sensitive to changes to the data that underlies the Resultset.

public static final Resultset.Type
SCROLL_SENSITIVE

The constant indicating the type for a Resultset object that is scrollable and generally sensitive to changes to the data that underlies the Resultset.

private int

Constructor Summary

AccessConstructor and Description
private
Type(int jdbcRsType)

Method Summary

Modifier and TypeMethod and Description
public static Resultset.Type
fromValue(int rsType, Resultset.Type backupValue)

public int
public static Resultset.Type
public static Resultset.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FORWARD_ONLYback to summary
public static final Resultset.Type FORWARD_ONLY

The constant indicating the type for a Resultset object whose cursor may move only forward.

SCROLL_INSENSITIVEback to summary
public static final Resultset.Type SCROLL_INSENSITIVE

The constant indicating the type for a Resultset object that is scrollable but generally not sensitive to changes to the data that underlies the Resultset.

SCROLL_SENSITIVEback to summary
public static final Resultset.Type SCROLL_SENSITIVE

The constant indicating the type for a Resultset object that is scrollable and generally sensitive to changes to the data that underlies the Resultset.

valueback to summary
private int value

Constructor Detail

Typeback to summary
private Type(int jdbcRsType)

Method Detail

fromValueback to summary
public static Resultset.Type fromValue(int rsType, Resultset.Type backupValue)
getIntValueback to summary
public int getIntValue()
valueOfback to summary
public static Resultset.Type valueOf(String name)
valuesback to summary
public static Resultset.Type[] values()