Package dev.morphia.query
Class UpdateBase<T>
- java.lang.Object
-
- dev.morphia.query.UpdateBase<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
Modify
,Update
,UpdateOpsImpl
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 void
add(UpdateOperator operator)
Adds a new operator to this update operation.protected com.mongodb.client.MongoCollection<T>
getCollection()
protected Datastore
getDatastore()
protected Query<T>
getQuery()
protected List<UpdateOperator>
getUpdates()
org.bson.Document
toDocument()
String
toString()
-
-
-
Method Detail
-
add
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 org.bson.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 com.mongodb.client.MongoCollection<T> getCollection()
-
getDatastore
protected Datastore getDatastore()
-
getUpdates
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.
-
-