Class PanacheUpdateImpl

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

public class PanacheUpdateImpl extends Object implements PanacheUpdate
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    long
    all()
    Execute an update on all documents with the update document.
    long
    where(String query, io.quarkus.panache.common.Parameters params)
    Execute the update query with the update document.
    long
    where(String query, Object... params)
    Execute the update query with the update document.
    long
    where(String query, Map<String,Object> params)
    Execute the update query with the update document.
    long
    where(org.bson.conversions.Bson query)
    Execute the update query with the update document.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
      invalid reference
      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
      invalid reference
      query string
      params - Map of named parameters
      Returns:
      the number of entities updated.
    • where

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

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