public class SqlMultiResult extends java.lang.Object implements SqlResult, ResultStreamer
SqlResult representing a multiple result sets.| Constructor and Description |
|---|
SqlMultiResult(java.util.function.Supplier<SqlResult> resultStream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
count()
How many items are in this result? This method forces internal buffering of the entire result.
|
java.util.List<Row> |
fetchAll()
Create a list of all elements in the result forcing internal buffering.
|
void |
finishStreaming()
Finish the result streaming.
|
long |
getAffectedItemsCount()
Get the count of affected items from manipulation statements.
|
java.lang.Long |
getAutoIncrementValue()
Get the auto-increment value if one was generated from a row insert statement.
|
int |
getColumnCount()
Count of columns.
|
java.util.List<java.lang.String> |
getColumnNames()
Names of columns.
|
java.util.List<Column> |
getColumns()
Metadata.
|
java.util.Iterator<Warning> |
getWarnings()
Get warnings generated during statement execution.
|
int |
getWarningsCount()
Get the number of warnings generated during statement execution.
|
boolean |
hasData()
Does this result have data? This indicates that the result was produced from a data-returning query.
|
boolean |
hasNext() |
Row |
next() |
boolean |
nextResult()
Move to the next result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetchOne, iteratorpublic SqlMultiResult(java.util.function.Supplier<SqlResult> resultStream)
resultStream - Supplies the result stream depending on query type. Could be SqlSingleResult, SqlUpdateResult etc.public boolean nextResult()
SqlResultfalse for the first time.nextResult in interface SqlResultpublic void finishStreaming()
ResultStreamerfinishStreaming in interface ResultStreamerpublic boolean hasData()
FetchResulthasData in interface FetchResult<Row>public long getAffectedItemsCount()
ResultgetAffectedItemsCount in interface Resultpublic java.lang.Long getAutoIncrementValue()
InsertResultgetAutoIncrementValue in interface InsertResultgetAutoIncrementValue in interface SqlResultpublic int getWarningsCount()
ResultgetWarningsCount in interface Resultpublic java.util.Iterator<Warning> getWarnings()
ResultgetWarnings in interface Resultpublic int getColumnCount()
RowResultgetColumnCount in interface RowResultpublic java.util.List<Column> getColumns()
RowResultgetColumns in interface RowResultColumn objectspublic java.util.List<java.lang.String> getColumnNames()
RowResultgetColumnNames in interface RowResultpublic long count()
FetchResultcount in interface FetchResult<Row>public java.util.List<Row> fetchAll()
FetchResultfetchAll in interface FetchResult<Row>public boolean hasNext()
hasNext in interface java.util.Iterator<Row>