Class PanacheUpdateImpl

    • Constructor Detail

      • PanacheUpdateImpl

        public PanacheUpdateImpl​(MongoOperations operations,
                                 Class<?> entityClass,
                                 org.bson.conversions.Bson update,
                                 com.mongodb.client.MongoCollection collection)
    • Method Detail

      • where

        public long where​(String query,
                          Object... params)
        Description copied from interface: PanacheUpdate
        Execute the update query with the update document.
        Specified by:
        where in interface PanacheUpdate
        Parameters:
        query - a query string
        params - params optional sequence of indexed parameters
        Returns:
        the number of entities updated.
      • where

        public long where​(String query,
                          Map<String,​Object> params)
        Description copied from interface: PanacheUpdate
        Execute the update query with the update document.
        Specified by:
        where in interface PanacheUpdate
        Parameters:
        query - a query string
        params - Map of named parameters
        Returns:
        the number of entities updated.
      • where

        public long where​(String query,
                          Parameters params)
        Description copied from interface: PanacheUpdate
        Execute the update query with the update document.
        Specified by:
        where in interface PanacheUpdate
        Parameters:
        query - a query string
        params - Parameters of named parameters
        Returns:
        the number of entities updated.
      • all

        public long all()
        Description copied from interface: PanacheUpdate
        Execute an update on all documents with the update document.
        Specified by:
        all in interface PanacheUpdate
        Returns:
        the number of entities updated.