public class UpdateHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
pullValues |
protected Map<String,Object> |
pushValues |
protected Map<String,Object> |
setValues |
protected Map<String,Object> |
unsetValues |
| Constructor and Description |
|---|
UpdateHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
add(Map<String,Object> map,
String field,
Object value) |
void |
executeUpdate(String id,
CrudRepository<?> repository) |
void |
pull(String field,
Object value) |
void |
pullAll(String field,
Collection<?> values) |
void |
pullAllDocuments(String field,
String embeddedField,
Collection<?> values) |
void |
push(String field,
Object value) |
void |
pushAll(String field,
Collection<?> values) |
void |
set(String field,
Object value) |
void |
unset(String field) |
public void unset(String field)
public void pushAll(String field, Collection<?> values)
public void pullAll(String field, Collection<?> values)
public void pullAllDocuments(String field, String embeddedField, Collection<?> values)
public void executeUpdate(String id, CrudRepository<?> repository) throws MongoDataException
MongoDataExceptionCopyright © 2020 CrafterCMS. All rights reserved.