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, getWarningsCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetchOne, iterator
getAffectedItemsCount, getWarnings, getWarningsCount
public SqlUpdateResult(StatementExecuteOk ok)
ok
- StatementExecuteOk
instance.public boolean hasData()
FetchResult
hasData
in interface FetchResult<Row>
public boolean nextResult()
SqlResult
false
for the first time.nextResult
in interface SqlResult
public java.util.List<Row> fetchAll()
FetchResult
fetchAll
in interface FetchResult<Row>
public boolean hasNext()
hasNext
in interface java.util.Iterator<Row>
public int getColumnCount()
RowResult
getColumnCount
in interface RowResult
public java.util.List<Column> getColumns()
RowResult
getColumns
in interface RowResult
Column
objectspublic java.util.List<java.lang.String> getColumnNames()
RowResult
getColumnNames
in interface RowResult
public long count()
FetchResult
count
in interface FetchResult<Row>
public java.lang.Long getAutoIncrementValue()
InsertResult
getAutoIncrementValue
in interface InsertResult
getAutoIncrementValue
in interface SqlResult