Package dev.morphia.query
Class UpdateBase<T>
- java.lang.Object
-
- dev.morphia.query.UpdateBase<T>
-
- Type Parameters:
T-
- Direct Known Subclasses:
Modify,Update,UpdateOpsImpl
@MorphiaInternal public abstract class UpdateBase<T> extends Object
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(UpdateOperator operator)Adds a new operator to this update operation.protected MongoCollection<T>getCollection()protected DatastoreImplgetDatastore()protected Query<T>getQuery()protected List<UpdateOperator>getUpdates()DocumenttoDocument()StringtoString()
-
-
-
Method Detail
-
add
@MorphiaInternal public void add(UpdateOperator operator)
Adds a new operator to this update operation.- Parameters:
operator- the new operator- Since:
- 2.2
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
toDocument
public Document toDocument()
- Returns:
- the operations listed
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getCollection
protected MongoCollection<T> getCollection()
-
getDatastore
protected DatastoreImpl getDatastore()
-
getUpdates
@MorphiaInternal protected List<UpdateOperator> getUpdates()
- Returns:
- the updates
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-