Uses of Interface
dev.morphia.query.UpdateOperations
-
Packages that use UpdateOperations Package Description dev.morphia dev.morphia.dao dev.morphia.query -
-
Uses of UpdateOperations in dev.morphia
Methods in dev.morphia that return UpdateOperations Modifier and Type Method Description <T> UpdateOperations<T>AdvancedDatastore. createUpdateOperations(java.lang.Class<T> type, com.mongodb.DBObject ops)Creates an UpdateOperations instance for the given type.<T> UpdateOperations<T>Datastore. createUpdateOperations(java.lang.Class<T> clazz)The builder for all update operations<T> UpdateOperations<T>DatastoreImpl. createUpdateOperations(java.lang.Class<T> clazz)Deprecated.<T> UpdateOperations<T>DatastoreImpl. createUpdateOperations(java.lang.Class<T> type, com.mongodb.DBObject ops)Deprecated.Methods in dev.morphia with parameters of type UpdateOperations Modifier and Type Method Description <T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations)Find the first Entity from the Query, and modify it.<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion)<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion, boolean createIfMissing)<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations, FindAndModifyOptions options)Find the first Entity from the Query, and modify it.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion)Deprecated.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion, boolean createIfMissing)Deprecated.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations, FindAndModifyOptions options)Deprecated.<T> UpdateResultsDatastore. update(Key<T> key, UpdateOperations<T> operations)Deprecated.useDatastore.update(Query, UpdateOperations)instead<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations)Updates all entities found with the operations; this is an atomic operation per entity<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations, UpdateOptions options)Updates all entities found with the operations; this is an atomic operation per entity<T> UpdateResultsDatastore. update(T entity, UpdateOperations<T> operations)Deprecated.useDatastore.update(Query, UpdateOperations)instead<T> UpdateResultsDatastoreImpl. update(Key<T> key, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations, UpdateOptions options)Deprecated.<T> UpdateResultsDatastoreImpl. update(T entity, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastore. updateFirst(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastore. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated. -
Uses of UpdateOperations in dev.morphia.dao
Methods in dev.morphia.dao that return UpdateOperations Modifier and Type Method Description UpdateOperations<T>BasicDAO. createUpdateOperations()Deprecated.UpdateOperations<T>DAO. createUpdateOperations()Deprecated.Starts a update-operations def for this DAO entities typeMethods in dev.morphia.dao with parameters of type UpdateOperations Modifier and Type Method Description UpdateResultsBasicDAO. update(Query<T> query, UpdateOperations<T> ops)Deprecated.UpdateResultsDAO. update(Query<T> query, UpdateOperations<T> ops)Deprecated.Updates all entities matched by the constraints with the modifiers supplied.UpdateResultsBasicDAO. updateFirst(Query<T> query, UpdateOperations<T> ops)Deprecated.UpdateResultsDAO. updateFirst(Query<T> query, UpdateOperations<T> ops)Deprecated.Updates the first entity matched by the constraints with the modifiers supplied. -
Uses of UpdateOperations in dev.morphia.query
Classes in dev.morphia.query that implement UpdateOperations Modifier and Type Class Description classUpdateOpsImpl<T>Methods in dev.morphia.query that return UpdateOperations Modifier and Type Method Description UpdateOperations<T>UpdateOperations. add(java.lang.String field, java.lang.Object value)Deprecated.useaddToSet(String, Object)insteadUpdateOperations<T>UpdateOperations. add(java.lang.String field, java.lang.Object value, boolean addDups)Deprecated.usepush(String, Object)if addDups is true oraddToSet(String, Object)insteadUpdateOperations<T>UpdateOpsImpl. add(java.lang.String field, java.lang.Object value)Deprecated.UpdateOperations<T>UpdateOpsImpl. add(java.lang.String field, java.lang.Object value, boolean addDups)Deprecated.UpdateOperations<T>UpdateOperations. addAll(java.lang.String field, java.util.List<?> values, boolean addDups)Deprecated.usepush(String, List)if addDups is true oraddToSet(String, List)UpdateOperations<T>UpdateOpsImpl. addAll(java.lang.String field, java.util.List<?> values, boolean addDups)Deprecated.UpdateOperations<T>UpdateOperations. addToSet(java.lang.String field, java.lang.Iterable<?> values)adds the values to an array field if they doesn't already exist in the arrayUpdateOperations<T>UpdateOperations. addToSet(java.lang.String field, java.lang.Object value)adds the value to an array field if it doesn't already exist in the arrayUpdateOperations<T>UpdateOperations. addToSet(java.lang.String field, java.util.List<?> values)adds the values to an array field if they doesn't already exist in the arrayUpdateOperations<T>UpdateOpsImpl. addToSet(java.lang.String field, java.lang.Iterable<?> values)UpdateOperations<T>UpdateOpsImpl. addToSet(java.lang.String field, java.lang.Object value)UpdateOperations<T>UpdateOpsImpl. addToSet(java.lang.String field, java.util.List<?> values)UpdateOperations<T>UpdateOperations. dec(java.lang.String field)Decrements the numeric field by 1UpdateOperations<T>UpdateOperations. dec(java.lang.String field, java.lang.Number value)Decrements the numeric field by value (must be a positive Double, Float, Long, or Integer).UpdateOperations<T>UpdateOpsImpl. dec(java.lang.String field)UpdateOperations<T>UpdateOpsImpl. dec(java.lang.String field, java.lang.Number value)UpdateOperations<T>UpdateOperations. disableValidation()Turns off validation (for all calls made after)UpdateOperations<T>UpdateOpsImpl. disableValidation()UpdateOperations<T>UpdateOperations. enableValidation()Turns on validation (for all calls made after); by default validation is onUpdateOperations<T>UpdateOpsImpl. enableValidation()UpdateOperations<T>UpdateOperations. inc(java.lang.String field)Increments the numeric field by 1UpdateOperations<T>UpdateOperations. inc(java.lang.String field, java.lang.Number value)increments the numeric field by value (negatives are allowed)UpdateOperations<T>UpdateOpsImpl. inc(java.lang.String field)UpdateOperations<T>UpdateOpsImpl. inc(java.lang.String field, java.lang.Number value)UpdateOperations<T>UpdateOperations. isolated()Deprecated.this functionality is deprecated in mongodb 3.6 and has been removed from 4.0UpdateOperations<T>UpdateOpsImpl. isolated()UpdateOperations<T>UpdateOperations. max(java.lang.String field, java.lang.Number value)Sets the numeric field to value if it is greater than the current value.UpdateOperations<T>UpdateOpsImpl. max(java.lang.String field, java.lang.Number value)UpdateOperations<T>UpdateOperations. min(java.lang.String field, java.lang.Number value)sets the numeric field to value if it is less than the current value.UpdateOperations<T>UpdateOpsImpl. min(java.lang.String field, java.lang.Number value)UpdateOperations<T>UpdateOperations. push(java.lang.String field, java.lang.Object value)Adds new values to an array field.UpdateOperations<T>UpdateOperations. push(java.lang.String field, java.lang.Object value, PushOptions options)Adds new values to an array field at the given positionUpdateOperations<T>UpdateOperations. push(java.lang.String field, java.util.List<?> values)Adds new values to an array field.UpdateOperations<T>UpdateOperations. push(java.lang.String field, java.util.List<?> values, PushOptions options)Adds new values to an array field at the given positionUpdateOperations<T>UpdateOpsImpl. push(java.lang.String field, java.lang.Object value)UpdateOperations<T>UpdateOpsImpl. push(java.lang.String field, java.lang.Object value, PushOptions options)UpdateOperations<T>UpdateOpsImpl. push(java.lang.String field, java.util.List<?> values)UpdateOperations<T>UpdateOpsImpl. push(java.lang.String field, java.util.List<?> values, PushOptions options)protected UpdateOperations<T>UpdateOpsImpl. remove(java.lang.String fieldExpr, boolean firstNotLast)UpdateOperations<T>UpdateOperations. removeAll(java.lang.String field, java.lang.Object value)removes the value from the array fieldUpdateOperations<T>UpdateOperations. removeAll(java.lang.String field, java.util.List<?> values)removes the values from the array fieldUpdateOperations<T>UpdateOpsImpl. removeAll(java.lang.String field, java.lang.Object value)UpdateOperations<T>UpdateOpsImpl. removeAll(java.lang.String field, java.util.List<?> values)UpdateOperations<T>UpdateOperations. removeFirst(java.lang.String field)removes the first value from the arrayUpdateOperations<T>UpdateOpsImpl. removeFirst(java.lang.String field)UpdateOperations<T>UpdateOperations. removeLast(java.lang.String field)removes the last value from the arrayUpdateOperations<T>UpdateOpsImpl. removeLast(java.lang.String field)UpdateOperations<T>UpdateOperations. set(java.lang.String field, java.lang.Object value)sets the field valueUpdateOperations<T>UpdateOpsImpl. set(java.lang.String field, java.lang.Object value)UpdateOperations<T>UpdateOperations. setOnInsert(java.lang.String field, java.lang.Object value)sets the field on insert.UpdateOperations<T>UpdateOpsImpl. setOnInsert(java.lang.String field, java.lang.Object value)UpdateOperations<T>UpdateOperations. unset(java.lang.String field)removes the fieldUpdateOperations<T>UpdateOpsImpl. unset(java.lang.String field)
-