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, ReactiveMongoCollection<?> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods 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, 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.Document query)
Execute the update query with the update document.
-
-
-
Constructor Detail
-
ReactivePanacheUpdateImpl
public ReactivePanacheUpdateImpl(ReactiveMongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, ReactiveMongoCollection<?> collection)
-
-
Method Detail
-
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 interfaceReactivePanacheUpdate
- Parameters:
query
- aquery 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 interfaceReactivePanacheUpdate
- Parameters:
query
- aquery string
params
-Map
of named parameters- Returns:
- the number of entities updated.
-
where
public io.smallrye.mutiny.Uni<Long> where(String query, Parameters params)
Description copied from interface:ReactivePanacheUpdate
Execute the update query with the update document.- Specified by:
where
in interfaceReactivePanacheUpdate
- Parameters:
query
- aquery string
params
-Parameters
of named parameters- Returns:
- the number of entities updated.
-
where
public io.smallrye.mutiny.Uni<Long> where(org.bson.Document query)
Description copied from interface:ReactivePanacheUpdate
Execute the update query with the update document.- Specified by:
where
in interfaceReactivePanacheUpdate
- Parameters:
query
- aDocument
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 interfaceReactivePanacheUpdate
- Returns:
- the number of entities updated.
-
-