Class 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 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()
      • getQuery

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