Class ReactivePanacheUpdateImpl

java.lang.Object
io.quarkus.mongodb.panache.common.reactive.runtime.ReactivePanacheUpdateImpl
All Implemented Interfaces:
ReactivePanacheUpdate

public class ReactivePanacheUpdateImpl extends Object implements ReactivePanacheUpdate
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReactivePanacheUpdateImpl(ReactiveMongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, io.quarkus.mongodb.reactive.ReactiveMongoCollection<?> collection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<Long>
    all()
    Execute an update on all documents with the update document.
    io.smallrye.mutiny.Uni<Long>
    where(String query, io.quarkus.panache.common.Parameters params)
    Execute the update query with the update document.
    io.smallrye.mutiny.Uni<Long>
    where(String query, Object... params)
    Execute the update query with the update document.
    io.smallrye.mutiny.Uni<Long>
    where(String query, Map<String,Object> params)
    Execute the update query with the update document.
    io.smallrye.mutiny.Uni<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

    • ReactivePanacheUpdateImpl

      public ReactivePanacheUpdateImpl(ReactiveMongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, io.quarkus.mongodb.reactive.ReactiveMongoCollection<?> collection)
  • Method Details

    • where

      public io.smallrye.mutiny.Uni<Long> where(String query, Object... params)
      Description copied from interface: ReactivePanacheUpdate
      Execute the update query with the update document.
      Specified by:
      where in interface ReactivePanacheUpdate
      Parameters:
      query - a
      invalid reference
      query string
      params - params optional sequence of indexed parameters
      Returns:
      the number of entities updated.
    • where

      public io.smallrye.mutiny.Uni<Long> where(String query, Map<String,Object> params)
      Description copied from interface: ReactivePanacheUpdate
      Execute the update query with the update document.
      Specified by:
      where in interface ReactivePanacheUpdate
      Parameters:
      query - a
      invalid reference
      query string
      params - Map of named parameters
      Returns:
      the number of entities updated.
    • where

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

      public io.smallrye.mutiny.Uni<Long> where(org.bson.conversions.Bson query)
      Description copied from interface: ReactivePanacheUpdate
      Execute the update query with the update document.
      Specified by:
      where in interface ReactivePanacheUpdate
      Parameters:
      query - a Bson query
      Returns:
      the number of entities updated.
    • all

      public io.smallrye.mutiny.Uni<Long> all()
      Description copied from interface: ReactivePanacheUpdate
      Execute an update on all documents with the update document.
      Specified by:
      all in interface ReactivePanacheUpdate
      Returns:
      the number of entities updated.