Package org.craftercms.commons.mongo
Class UpdateHelper
java.lang.Object
org.craftercms.commons.mongo.UpdateHelper
Created by alfonsovasquez on 13/6/16.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeUpdate
(String id, CrudRepository<?> repository) void
void
pullAll
(String field, Collection<?> values) void
pullAllDocuments
(String field, String embeddedField, Collection<?> values) void
void
pushAll
(String field, Collection<?> values) void
void
-
Field Details
-
setValues
-
unsetValues
-
pushValues
-
pullValues
-
-
Constructor Details
-
UpdateHelper
public UpdateHelper()
-
-
Method Details
-
set
-
unset
-
push
-
pushAll
-
pull
-
pullAll
-
pullAllDocuments
-
executeUpdate
- Throws:
MongoDataException
-
add
-