Class PanacheUpdateImpl

java.lang.Object
io.quarkus.mongodb.panache.common.runtime.PanacheUpdateImpl
All Implemented Interfaces:
PanacheUpdate

public class PanacheUpdateImpl extends Object implements PanacheUpdate
  • Constructor Details

    • PanacheUpdateImpl

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

    • 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.
    • where

      public long where(org.bson.Document query)
      Description copied from interface: PanacheUpdate
      Execute the update query with the update document.
      Specified by:
      where in interface PanacheUpdate
      Parameters:
      query - a Document query
      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.