Package com.mysql.cj.xdevapi
Class AddResultImpl
java.lang.Object
com.mysql.cj.xdevapi.UpdateResult
com.mysql.cj.xdevapi.AddResultImpl
- All Implemented Interfaces:
QueryResult
,AddResult
,Result
public class AddResultImpl extends UpdateResult implements AddResult
A result from the collection.add() statement.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AddResultImpl(StatementExecuteOk ok)
Constructor. -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
getGeneratedIds()
Get a list of document ids generated in the server for the documents added by collection.add().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
-
AddResultImpl
Constructor.- Parameters:
ok
- the response from the server
-
-
Method Details
-
getGeneratedIds
public java.util.List<java.lang.String> getGeneratedIds()Description copied from interface:AddResult
Get a list of document ids generated in the server for the documents added by collection.add().- Specified by:
getGeneratedIds
in interfaceAddResult
- Returns:
- all generated document ids
-