Package com.mysql.cj.xdevapi
Class InsertResultImpl
java.lang.Object
com.mysql.cj.xdevapi.UpdateResult
com.mysql.cj.xdevapi.InsertResultImpl
- All Implemented Interfaces:
QueryResult
,InsertResult
,Result
public class InsertResultImpl extends UpdateResult implements InsertResult
A result from a statement that doesn't return a set of rows.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description InsertResultImpl(StatementExecuteOk ok)
Create a new result. -
Method Summary
Modifier and Type Method Description java.lang.Long
getAutoIncrementValue()
Get the auto-increment value if one was generated from a row insert statement.Methods inherited from class com.mysql.cj.xdevapi.UpdateResult
getAffectedItemsCount, getWarnings, getWarningsCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mysql.cj.xdevapi.Result
getAffectedItemsCount, getWarnings, getWarningsCount
-
Constructor Details
-
InsertResultImpl
Create a new result.- Parameters:
ok
- the response from the server
-
-
Method Details
-
getAutoIncrementValue
public 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
-