Top Description Methods
com.mysql.cj.xdevapi

public Interface SqlResult

extends Result, InsertResult, RowResult
Known Direct Implementers
com.mysql.cj.xdevapi.SqlSingleResult, com.mysql.cj.xdevapi.SqlUpdateResult, com.mysql.cj.xdevapi.SqlMultiResult

A result from a SQL statement which may have several sets of data following by a DML result.

Method Summary

Modifier and TypeMethod and Description
public default Long
getAutoIncrementValue()

Implements com.mysql.cj.xdevapi.InsertResult.getAutoIncrementValue.

Get the auto-increment value if one was generated from a row insert statement.

public default boolean

Returns:

was there a next result that we moved to?
nextResult
()

Move to the next result.

Inherited from com.mysql.cj.xdevapi.Result:
getAffectedItemsCountgetWarningsgetWarningsCount
Inherited from com.mysql.cj.xdevapi.RowResult:
getColumnCountgetColumnNamesgetColumns

Method Detail

getAutoIncrementValueback to summary
public default Long getAutoIncrementValue()

Implements com.mysql.cj.xdevapi.InsertResult.getAutoIncrementValue.

Doc from com.mysql.cj.xdevapi.InsertResult.getAutoIncrementValue.

Get the auto-increment value if one was generated from a row insert statement.

Returns:Long

auto-increment value

Annotations
@Override
nextResultback to summary
public default boolean nextResult()

Move to the next result. This method has no effect after returning false for the first time.

Returns:boolean

was there a next result that we moved to?