Package com.mysql.cj.xdevapi
Interface SqlResult
- All Superinterfaces:
FetchResult<Row>
,InsertResult
,java.lang.Iterable<Row>
,java.util.Iterator<Row>
,QueryResult
,Result
,RowResult
- All Known Implementing Classes:
SqlMultiResult
,SqlSingleResult
,SqlUpdateResult
public interface SqlResult extends Result, InsertResult, RowResult
A result from a SQL statement which may have several sets of data following by a DML result.
-
Method Summary
Modifier and Type Method Description default java.lang.Long
getAutoIncrementValue()
Get the auto-increment value if one was generated from a row insert statement.default boolean
nextResult()
Move to the next result.Methods inherited from interface com.mysql.cj.xdevapi.FetchResult
count, fetchAll, fetchOne, hasData, iterator
Methods inherited from interface com.mysql.cj.xdevapi.Result
getAffectedItemsCount, getWarnings, getWarningsCount
Methods inherited from interface com.mysql.cj.xdevapi.RowResult
getColumnCount, getColumnNames, getColumns
-
Method Details
-
nextResult
default boolean nextResult()Move to the next result. This method has no effect after returningfalse
for the first time.- Returns:
- was there a next result that we moved to?
-
getAutoIncrementValue
default java.lang.Long getAutoIncrementValue()Description copied from interface:InsertResult
Get the auto-increment value if one was generated from a row insert statement.- Specified by:
getAutoIncrementValue
in interfaceInsertResult
- Returns:
- auto-increment value
-