public interface UpdateDefinition
Update.| Modifier and Type | Interface and Description |
|---|---|
static interface |
UpdateDefinition.ArrayFilter
A filter to specify which elements to modify in an array field.
|
| Modifier and Type | Method and Description |
|---|---|
List<UpdateDefinition.ArrayFilter> |
getArrayFilters()
Get the specification which elements to modify in an array field.
|
org.bson.Document |
getUpdateObject() |
default boolean |
hasArrayFilters() |
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.List<UpdateDefinition.ArrayFilter> getArrayFilters()
UpdateDefinition.ArrayFilter are passed directly to the
driver without further type or field mapping.default boolean hasArrayFilters()
UpdateDefinition contains array filters.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.