Class SetOnInsertOperator

  • All Implemented Interfaces:
    dev.morphia.query.internal.DatastoreAware

    @MorphiaInternal
    public class SetOnInsertOperator
    extends UpdateOperator
    implements dev.morphia.query.internal.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 Detail

      • SetOnInsertOperator

        @MorphiaInternal
        public SetOnInsertOperator​(Map<String,​Object> values)
        Parameters:
        values - the values
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • setDatastore

        public void setDatastore​(DatastoreImpl datastore)
        Specified by:
        setDatastore in interface dev.morphia.query.internal.DatastoreAware
        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​(dev.morphia.internal.PathTarget pathTarget)
        Description copied from class: UpdateOperator
        Creates the OperationTarget for serialization
        Overrides:
        toTarget in class UpdateOperator
        Parameters:
        pathTarget - the PathTarget
        Returns:
        the OperationTarget