Example usage for Java com.mongodb WriteResult fields, constructors, methods, implement or subclass
The text is from its open source code.
WriteResult(final int n, final boolean updateOfExisting, @Nullable final Object upsertedId) Construct a new instance. |
int | getN() Gets the "n" field, which contains the number of documents affected in the write operation. |
Object | getUpsertedId() Gets the _id value of an upserted document that resulted from this write. |
boolean | isUpdateOfExisting() Returns true if this write resulted in an update of an existing document. |
String | toString() |
boolean | wasAcknowledged() Returns true if the write was acknowledged. |