SqlResult representing a multiple result sets.
| Modifier and Type | Field and Description |
|---|---|
| private SqlResult | |
| private List | |
| private Supplier |
| Access | Constructor and Description |
|---|---|
| public | SqlMultiResult(Supplier<SqlResult>
Supplies the result stream depending on query type. Could be resultStream)SqlSingleResult, SqlUpdateResult etc.Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public List | fetchAll()
Implements com. Create a list of all elements in the result forcing internal buffering. |
| public void | finishStreaming()
Implements com. Finish the result streaming. |
| public long | getAffectedItemsCount()
Implements com. Get the count of affected items from manipulation statements. |
| public Long | getAutoIncrementValue()
Overrides default com. Get the auto-increment value if one was generated from a row insert statement. |
| public int | |
| public List | |
| public List | |
| private SqlResult | |
| public Iterator | getWarnings()
Implements com. Get warnings generated during statement execution. |
| public int | getWarningsCount()
Implements com. Get the number of warnings generated during statement execution. |
| public boolean | |
| public boolean | |
| public Row | |
| public boolean |
| currentResult | back to summary |
|---|---|
| private SqlResult currentResult | |
| pendingResults | back to summary |
|---|---|
| private List<SqlResult> pendingResults | |
| resultStream | back to summary |
|---|---|
| private Supplier<SqlResult> resultStream | |
| SqlMultiResult | back to summary |
|---|---|
| public SqlMultiResult(Supplier<SqlResult> resultStream) Constructor.
| |
| count | back to summary |
|---|---|
| public long count() Implements com. Doc from com. How many items are in this result? This method forces internal buffering of the entire result.
| |
| fetchAll | back to summary |
|---|---|
| public List Implements com. Doc from com. Create a list of all elements in the result forcing internal buffering. | |
| finishStreaming | back to summary |
|---|---|
| public void finishStreaming() Implements com. Doc from com. Finish the result streaming. This happens if a new command is started or the warnings/etc are requested. This is safe to call multiple times and only has an effect the first time.
| |
| getAffectedItemsCount | back to summary |
|---|---|
| public long getAffectedItemsCount() Implements com. Doc from com. Get the count of affected items from manipulation statements. This method forces internal buffering of the result.
| |
| getAutoIncrementValue | back to summary |
|---|---|
| public Long getAutoIncrementValue() Overrides default com. Doc from com. Get the auto-increment value if one was generated from a row insert statement. | |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() Implements com. Doc from com. Count of columns.
| |
| getColumnNames | back to summary |
|---|---|
| public List Implements com. Doc from com. Names of columns. | |
| getColumns | back to summary |
|---|---|
| public List Implements com. Doc from com. Metadata. | |
| getCurrentResult | back to summary |
|---|---|
| private SqlResult getCurrentResult() | |
| getWarnings | back to summary |
|---|---|
| public Iterator Implements com. Doc from com. Get warnings generated during statement execution. This method forces internal buffering of the result. | |
| getWarningsCount | back to summary |
|---|---|
| public int getWarningsCount() Implements com. Doc from com. Get the number of warnings generated during statement execution. This method forces internal buffering of the result.
| |
| hasData | back to summary |
|---|---|
| public boolean hasData() Overrides default com. Doc from com. Does this result have data? This indicates that the result was produced from a data-returning query. It does not indicate whether there are more than 0 rows in the result.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Row next() Implements java. Doc from java. Returns the next element in the iteration. | |
| nextResult | back to summary |
|---|---|
| public boolean nextResult() Overrides default com. Doc from com. Move to the next result. This method has no effect after returning
| |