Java com.mongodb.client.result UpdateResult fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb.client.result UpdateResult fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb.client.result UpdateResult.

The text is from its open source code.

Method

UpdateResultacknowledged(final long matchedCount, @Nullable final Long modifiedCount, @Nullable final BsonValue upsertedId)
Create an acknowledged UpdateResult
longgetMatchedCount()
Gets the number of documents matched by the query.
longgetModifiedCount()
Gets the number of documents modified by the update.
BsonValuegetUpsertedId()
If the replace resulted in an inserted document, gets the _id of the inserted document, otherwise null.
booleanisModifiedCountAvailable()
Gets a value indicating whether the modified count is available.
booleanwasAcknowledged()
Returns true if the write was acknowledged.