public class InsertResult extends Object
Constructor and Description |
---|
InsertResult(BSONObject obj) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getDuplicatedNum()
Gets the number of records with duplicate key conflicts.
|
long |
getInsertNum()
Gets the number of records inserted.
|
long |
getLastGenerateID()
Gets the value of the auto-increment field (only displayed when the
collection contains [auto-increment][auto-increment]), the return
situation is as follows:
When inserting a single record, return the auto-incremented field
value corresponding to the record.
|
long |
getModifiedNum()
Get the number of records successfully updated with data changes.
|
Object |
getOid()
Gets the ObjectID of records inserted.
|
List<Object> |
getOidList()
Gets the list of ObjectID for bulk inserting records.
|
int |
hashCode() |
String |
toString() |
public InsertResult(BSONObject obj)
public long getDuplicatedNum()
public long getInsertNum()
public long getLastGenerateID()
public long getModifiedNum()
public Object getOid()
public List<Object> getOidList()
Copyright © 2023. All rights reserved.