public interface Resultset extends ProtocolEntity
Modifier and Type | Interface and Description |
---|---|
static class |
Resultset.Concurrency |
static class |
Resultset.Type |
Modifier and Type | Method and Description |
---|---|
void |
clearNextResultset()
Clears the reference to the next result set in a multi-result set
"chain".
|
ColumnDefinition |
getColumnDefinition() |
Resultset |
getNextResultset()
Returns the next ResultSet in a multi-resultset "chain", if any,
null if none exists.
|
int |
getResultId()
The id (used when profiling) to identify us
|
ResultsetRows |
getRows() |
java.lang.String |
getServerInfo()
Returns the server informational message returned from a DDL or DML
statement (if any), or null if none.
|
long |
getUpdateCount()
Returns the update count for this result set (if one exists), otherwise
-1.
|
long |
getUpdateID()
Returns the AUTO_INCREMENT value for the DDL/DML statement which created
this result set.
|
boolean |
hasRows()
Does the result set contain rows, or is it the result of a DDL or DML statement?
|
void |
initRowsWithMetadata()
Set metadata of this Resultset to ResultsetRows it contains.
|
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).
|
void |
setNextResultset(Resultset nextResultset) |
void setColumnDefinition(ColumnDefinition metadata)
metadata
- field-level metadata for the result setColumnDefinition getColumnDefinition()
boolean hasRows()
ResultsetRows getRows()
void initRowsWithMetadata()
int getResultId()
void setNextResultset(Resultset nextResultset)
nextResultset
- Sets the next result set in the result set chain for multiple result sets.Resultset getNextResultset()
void clearNextResultset()
long getUpdateCount()
long getUpdateID()
java.lang.String getServerInfo()