Class 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 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.
      • getQuery

        protected Query<T> getQuery()
      • 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.