public class SqlUpdateResult extends UpdateResult implements SqlResult
SqlResult for insert, update, delete and DDL statements.ok| Constructor and Description |
|---|
SqlUpdateResult(StatementExecuteOk ok)
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.
|
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.
|
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.
|
getAffectedItemsCount, getWarnings, getWarningsCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetchOne, iteratorgetAffectedItemsCount, getWarnings, getWarningsCountpublic SqlUpdateResult(StatementExecuteOk ok)
ok - StatementExecuteOk instance.public boolean hasData()
FetchResulthasData in interface FetchResult<Row>public boolean nextResult()
SqlResultfalse for the first time.nextResult in interface SqlResultpublic java.util.List<Row> fetchAll()
FetchResultfetchAll in interface FetchResult<Row>public boolean hasNext()
hasNext in interface java.util.Iterator<Row>public 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.lang.Long getAutoIncrementValue()
InsertResultgetAutoIncrementValue in interface InsertResultgetAutoIncrementValue in interface SqlResult