public interface UpdateDefinition
Update
.Modifier and Type | Method and Description |
---|---|
org.bson.Document |
getUpdateObject() |
void |
inc(String key)
Increment the value of a given key by
1 . |
Boolean |
isIsolated()
If true prevents a write operation that affects multiple documents from yielding to
other reads or writes once the first document is written.
|
boolean |
modifies(String key)
Check if a given key is modified by applying the update.
|
Boolean isIsolated()
org.bson.Document getUpdateObject()
Document
format. Never null.boolean modifies(String key)
key
- must not be null.UpdateDefinition
attempts to modify the given key.void inc(String key)
1
.key
- must not be null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.