Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
org.springframework.data.mongodb.core.query |
MongoDB specific query and update support.
|
Modifier and Type | Method and Description |
---|---|
BulkOperations |
BulkOperations.updateMulti(Query query,
Update update)
Add a single update to the bulk operation.
|
BulkOperations |
BulkOperations.updateOne(Query query,
Update update)
Add a single update to the bulk operation.
|
BulkOperations |
BulkOperations.upsert(Query query,
Update update)
Add a single upsert to the bulk operation.
|
Modifier and Type | Method and Description |
---|---|
BulkOperations |
BulkOperations.updateMulti(List<Pair<Query,Update>> updates)
Add a list of updates to the bulk operation.
|
BulkOperations |
BulkOperations.updateOne(List<Pair<Query,Update>> updates)
Add a list of updates to the bulk operation.
|
BulkOperations |
BulkOperations.upsert(List<Pair<Query,Update>> updates)
Add a list of upserts to the bulk operation.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicUpdate |
Modifier and Type | Method and Description |
---|---|
Update |
Update.addToSet(String key,
Object value)
Update using the $addToSet update modifier
|
Update |
BasicUpdate.addToSet(String key,
Object value) |
Update |
Update.BitwiseOperatorBuilder.and(long value)
Updates to the result of a bitwise and operation between the current value and the given one.
|
Update |
Update.currentDate(String key)
Update given key to current date using $currentDate modifier.
|
Update |
Update.currentTimestamp(String key)
Update given key to current date using $currentDate : { $type : "timestamp" } modifier.
|
Update |
Update.PushOperatorBuilder.each(Object... values)
Propagates
$each to $push |
Update |
Update.AddToSetBuilder.each(Object... values)
Propagates
$each to $addToSet |
Update |
Update.filterArray(CriteriaDefinition criteria)
Filter elements in an array that match the given criteria for update.
|
Update |
Update.filterArray(String identifier,
Object expression)
Filter elements in an array that match the given criteria for update.
|
static Update |
Update.fromDocument(org.bson.Document object,
String... exclude)
Creates an
Update instance from the given Document . |
Update |
Update.inc(String key,
Number inc)
Update using the $inc update modifier
|
Update |
BasicUpdate.inc(String key,
Number inc) |
Update |
Update.isolated()
Prevents a write operation that affects multiple documents from yielding to other reads or writes
once the first document is written.
|
Update |
Update.max(String key,
Object value)
Update given key to the
value if the value is greater than the current value of the field. |
Update |
Update.min(String key,
Object value)
Update given key to the
value if the value is less than the current value of the field. |
Update |
Update.multiply(String key,
Number multiplier)
Multiply the value of given key by the given number.
|
Update |
Update.BitwiseOperatorBuilder.or(long value)
Updates to the result of a bitwise or operation between the current value and the given one.
|
Update |
Update.pop(String key,
Update.Position pos)
Update using the $pop update modifier
|
Update |
BasicUpdate.pop(String key,
Update.Position pos) |
Update |
Update.pull(String key,
Object value)
Update using the $pull update modifier
|
Update |
BasicUpdate.pull(String key,
Object value) |
Update |
Update.pullAll(String key,
Object[] values)
Update using the $pullAll update modifier
|
Update |
BasicUpdate.pullAll(String key,
Object[] values) |
Update |
Update.push(String key,
Object value)
Update using the $push update modifier
|
Update |
BasicUpdate.push(String key,
Object value) |
Update |
Update.pushAll(String key,
Object[] values)
Deprecated.
as of MongoDB 2.4. Removed in MongoDB 3.6. Use
$push $each instead. |
Update |
BasicUpdate.pushAll(String key,
Object[] values)
Deprecated.
|
Update |
Update.rename(String oldName,
String newName)
Update using the $rename update modifier
|
Update |
BasicUpdate.rename(String oldName,
String newName) |
Update |
Update.set(String key,
Object value)
Update using the $set update modifier
|
Update |
BasicUpdate.set(String key,
Object value) |
Update |
Update.setOnInsert(String key,
Object value)
Update using the $setOnInsert update modifier
|
Update |
Update.unset(String key)
Update using the $unset update modifier
|
Update |
BasicUpdate.unset(String key) |
static Update |
Update.update(String key,
Object value)
Static factory method to create an Update using the provided key
|
Update |
Update.PushOperatorBuilder.value(Object value)
Propagates
Update.PushOperatorBuilder.value(Object) to $push |
Update |
Update.AddToSetBuilder.value(Object value)
Propagates
Update.AddToSetBuilder.value(Object) to $addToSet |
Update |
Update.BitwiseOperatorBuilder.xor(long value)
Updates to the result of a bitwise xor operation between the current value and the given one.
|
Constructor and Description |
---|
BitwiseOperatorBuilder(Update reference,
String key)
Creates a new
Update.BitwiseOperatorBuilder . |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.