Class SetOnInsertOperator
- java.lang.Object
-
- dev.morphia.query.experimental.updates.UpdateOperator
-
- dev.morphia.query.experimental.updates.SetOnInsertOperator
-
- All Implemented Interfaces:
DatastoreAware
public class SetOnInsertOperator extends UpdateOperator implements DatastoreAware
- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description SetOnInsertOperator(Map<String,Object> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDatastore(DatastoreImpl datastore)
OperationTarget
toTarget(PathTarget pathTarget)
Creates the OperationTarget for serialization-
Methods inherited from class dev.morphia.query.experimental.updates.UpdateOperator
field, operator, value, value
-
-
-
-
Method Detail
-
setDatastore
public void setDatastore(DatastoreImpl datastore)
- Specified by:
setDatastore
in interfaceDatastoreAware
- Parameters:
datastore
- the datastore
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
toTarget
public OperationTarget toTarget(PathTarget pathTarget)
Description copied from class:UpdateOperator
Creates the OperationTarget for serialization- Overrides:
toTarget
in classUpdateOperator
- Parameters:
pathTarget
- the PathTarget- Returns:
- the OperationTarget
-
-