Package | Description |
---|---|
sirius.db.mongo |
Thin layer above Mongo DB.
|
Modifier and Type | Method and Description |
---|---|
Updater |
Updater.addToSet(Mapping field,
Object value)
Adds the given value to the given set / list.
|
Updater |
Updater.addToSet(String field,
Object value)
Adds the given value to the given set / list.
|
Updater |
Updater.inc(Mapping field,
int value)
Increments the given field by the given value.
|
Updater |
Updater.inc(String field,
int value)
Increments the given field by the given value.
|
Updater |
Updater.many()
Specifies that multiple documents should be updated.
|
Updater |
Updater.pull(Mapping field,
Object value)
Removes all occurences of the given value from the list in the given field.
|
Updater |
Updater.pull(String field,
Object value)
Removes all occurences of the given value from the list in the given field.
|
Updater |
Updater.pullAll(Mapping field,
Object... values)
Removes all occurences of the given values from the list in the given field.
|
Updater |
Updater.pullAll(String field,
Object... values)
Removes all occurences of the given values from the list in the given field.
|
Updater |
Updater.set(Mapping field,
Object value)
Sets a field to a new value.
|
Updater |
Updater.set(String field,
Object value)
Sets a field to a new value.
|
Updater |
Updater.setList(Mapping key,
Object... values)
Sets a field to the given list of values.
|
Updater |
Updater.setList(String key,
Object... values)
Sets a field to the given list of values.
|
Updater |
Updater.unset(Mapping field)
Unsets a field.
|
Updater |
Updater.unset(String field)
Unsets a field.
|
Updater |
Mongo.update()
Returns a fluent query builder to update one or more documents in the database
|
Updater |
Updater.upsert()
Specifies that a new document should be created if the update filter does not match anything.
|
Copyright © 2018. All rights reserved.