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.LonggetAutoIncrementValue()Get the auto-increment value if one was generated from a row insert statement.default booleannextResult()Move to the next result.Methods inherited from interface com.mysql.cj.xdevapi.FetchResult
count, fetchAll, fetchOne, hasData, iteratorMethods inherited from interface com.mysql.cj.xdevapi.Result
getAffectedItemsCount, getWarnings, getWarningsCountMethods 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 returningfalsefor the first time.- Returns:
- was there a next result that we moved to?
-
getAutoIncrementValue
default java.lang.Long getAutoIncrementValue()Description copied from interface:InsertResultGet the auto-increment value if one was generated from a row insert statement.- Specified by:
getAutoIncrementValuein interfaceInsertResult- Returns:
- auto-increment value
-