Class ReactivePanacheMongoEntityBase
java.lang.Object
io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoEntityBase
- Direct Known Subclasses:
ReactivePanacheMongoEntity
Represents an entity. If your Mongo entities extend this class they gain auto-generated accessors
to all their public fields, as well as a lot of useful
methods. Unless you have a custom ID strategy, you should not extend this class directly but extend
ReactivePanacheMongoEntity instead.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.smallrye.mutiny.Uni<Long>count()Counts the number of this type of entity in the database.static io.smallrye.mutiny.Uni<Long>count(String query, Parameters params) Counts the number of this type of entity matching the given query, with named parameters.static io.smallrye.mutiny.Uni<Long>Counts the number of this type of entity matching the given query, with optional indexed parameters.static io.smallrye.mutiny.Uni<Long>Counts the number of this type of entity matching the given query, with named parameters.static io.smallrye.mutiny.Uni<Long>count(org.bson.Document query) Counts the number of this type of entity matching the given queryio.smallrye.mutiny.Uni<Void>delete()Delete this entity from the database, if it is already persisted.static io.smallrye.mutiny.Uni<Long>delete(String query, Parameters params) Delete all entities of this type matching the given query, with named parameters.static io.smallrye.mutiny.Uni<Long>Delete all entities of this type matching the given query, with optional indexed parameters.static io.smallrye.mutiny.Uni<Long>Delete all entities of this type matching the given query, with named parameters.static io.smallrye.mutiny.Uni<Long>delete(org.bson.Document query) Delete all entities of this type matching the given querystatic io.smallrye.mutiny.Uni<Long>Delete all entities of this type from the database.static io.smallrye.mutiny.Uni<Boolean>deleteById(Object id) Delete an entity of this type by ID.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>find(String query, Parameters params) Find entities using a query, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>find(String query, Sort sort, Parameters params) Find entities using a query and the given sort options, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>Find entities using a query and the given sort options, with optional indexed parameters.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>Find entities using a query and the given sort options, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>Find entities using a query, with optional indexed parameters.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>Find entities using a query, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>find(org.bson.Document query) Find entities using a BSON query.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>find(org.bson.Document query, org.bson.Document sort) Find entities using a BSON query and a BSON sort.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>findAll()Find all entities of this type.static <T extends ReactivePanacheMongoEntityBase>
ReactivePanacheQuery<T>Find all entities of this type, in the given order.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<T>Find an entity of this type by ID.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<Optional<T>>Find an entity of this type by ID.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>list(String query, Parameters params) Find entities matching a query, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>list(String query, Sort sort, Parameters params) Find entities matching a query and the given sort options, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>Find entities matching a query and the given sort options, with optional indexed parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>Find entities matching a query and the given sort options, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>Find entities matching a query, with optional indexed parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>Find entities matching a query, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>list(org.bson.Document query) Find entities using a BSON query.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>list(org.bson.Document query, org.bson.Document sort) Find entities using a BSON query and a BSON sort.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>listAll()Find all entities of this type.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<List<T>>Find all entities of this type, in the given order.static <T extends ReactivePanacheMongoEntityBase>
io.quarkus.mongodb.reactive.ReactiveMongoCollection<T>Allow to access the underlying Mongo Collection.static io.quarkus.mongodb.reactive.ReactiveMongoDatabaseAllow to access the underlying Mongo Database.<T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<T>persist()Persist this entity in the database.static io.smallrye.mutiny.Uni<Void>Insert all given entities.static io.smallrye.mutiny.Uni<Void>Insert all given entities.static io.smallrye.mutiny.Uni<Void>Insert all given entities.<T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<T>Persist this entity in the database or update it if it already exists.static io.smallrye.mutiny.Uni<Void>persistOrUpdate(Iterable<?> entities) Persist all given entities or update them if they already exist.static io.smallrye.mutiny.Uni<Void>persistOrUpdate(Object firstEntity, Object... entities) Persist all given entities.static io.smallrye.mutiny.Uni<Void>persistOrUpdate(Stream<?> entities) Persist all given entities.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>stream(String query, Parameters params) Find entities matching a query, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>stream(String query, Sort sort, Parameters params) Find entities matching a query and the given sort options, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>Find entities matching a query and the given sort options, with optional indexed parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>Find entities matching a query and the given sort options, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>Find entities matching a query, with optional indexed parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>Find entities matching a query, with named parameters.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>stream(org.bson.Document query) Find entities using a BSON query.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>stream(org.bson.Document query, org.bson.Document sort) Find entities using a BSON query and a BSON sort.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>Find all entities of this type.static <T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Multi<T>Find all entities of this type, in the given order.<T extends ReactivePanacheMongoEntityBase>
io.smallrye.mutiny.Uni<T>update()Update this entity in the database.static io.smallrye.mutiny.Uni<Void>Update all given entities.static io.smallrye.mutiny.Uni<Void>Update all given entities.static ReactivePanacheUpdateupdate(String update, Parameters params) Update all entities of this type by the given update document, with named parameters.static ReactivePanacheUpdateUpdate all entities of this type by the given update document, with optional indexed parameters.static ReactivePanacheUpdateUpdate all entities of this type by the given update document, with named parameters.static io.smallrye.mutiny.Uni<Void>Update all given entities.static ReactivePanacheUpdateupdate(org.bson.Document update) Update all entities of this type by the given update BSON document.
-
Constructor Details
-
ReactivePanacheMongoEntityBase
public ReactivePanacheMongoEntityBase()
-
-
Method Details
-
persist
Persist this entity in the database. This will set its ID field if not already set. -
update
Update this entity in the database. -
persistOrUpdate
Persist this entity in the database or update it if it already exists. -
delete
Delete this entity from the database, if it is already persisted. -
findById
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<T> findById(Object id) Find an entity of this type by ID.- Parameters:
id- the ID of the entity to find.- Returns:
- the entity found, or
nullif not found.
-
findByIdOptional
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<Optional<T>> findByIdOptional(Object id) Find an entity of this type by ID.- Parameters:
id- the ID of the entity to find.- Returns:
- if found, an optional containing the entity, else
Optional.empty().
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Object... params) Find entities using a query, with optional indexed parameters.- Parameters:
query- aquery stringparams- optional sequence of indexed parameters- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Sort sort, Object... params) Find entities using a query and the given sort options, with optional indexed parameters.- Parameters:
query- aquery stringsort- the sort strategy to useparams- optional sequence of indexed parameters- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Map<String, Object> params) Find entities using a query, with named parameters.- Parameters:
query- aquery stringparams-Mapof named parameters- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Sort sort, Map<String, Object> params) Find entities using a query and the given sort options, with named parameters.- Parameters:
query- aquery stringsort- the sort strategy to useparams-Mapof indexed parameters- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Parameters params) Find entities using a query, with named parameters.- Parameters:
query- aquery stringparams-Parametersof named parameters- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Sort sort, Parameters params) Find entities using a query and the given sort options, with named parameters.- Parameters:
query- aquery stringsort- the sort strategy to useparams-Parametersof indexed parameters- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(org.bson.Document query) Find entities using a BSON query.- Parameters:
query- aDocumentquery- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
find
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(org.bson.Document query, org.bson.Document sort) Find entities using a BSON query and a BSON sort.- Parameters:
query- aDocumentquerysort- theDocumentsort- Returns:
- a new
ReactivePanacheQueryinstance for the given query - See Also:
-
findAll
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> findAll()Find all entities of this type.- Returns:
- a new
ReactivePanacheQueryinstance to find all entities of this type. - See Also:
-
findAll
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> findAll(Sort sort) Find all entities of this type, in the given order.- Parameters:
sort- the sort order to use- Returns:
- a new
ReactivePanacheQueryinstance to find all entities of this type. - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Object... params) Find entities matching a query, with optional indexed parameters. This method is a shortcut forfind(query, params).list().- Parameters:
query- aquery stringparams- optional sequence of indexed parameters- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Sort sort, Object... params) Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut forfind(query, sort, params).list().- Parameters:
query- aquery stringsort- the sort strategy to useparams- optional sequence of indexed parameters- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Map<String, Object> params) Find entities matching a query, with named parameters. This method is a shortcut forfind(query, params).list().- Parameters:
query- aquery stringparams-Mapof named parameters- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Sort sort, Map<String, Object> params) Find entities matching a query and the given sort options, with named parameters. This method is a shortcut forfind(query, sort, params).list().- Parameters:
query- aquery stringsort- the sort strategy to useparams-Mapof indexed parameters- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Parameters params) Find entities matching a query, with named parameters. This method is a shortcut forfind(query, params).list().- Parameters:
query- aquery stringparams-Parametersof named parameters- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Sort sort, Parameters params) Find entities matching a query and the given sort options, with named parameters. This method is a shortcut forfind(query, sort, params).list().- Parameters:
query- aquery stringsort- the sort strategy to useparams-Parametersof indexed parameters- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(org.bson.Document query) Find entities using a BSON query. This method is a shortcut forfind(query).list().- Parameters:
query- aDocumentquery- Returns:
- a
Listcontaining all results, without paging - See Also:
-
list
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(org.bson.Document query, org.bson.Document sort) Find entities using a BSON query and a BSON sort. This method is a shortcut forfind(query, sort).list().- Parameters:
query- aDocumentquerysort- theDocumentsort- Returns:
- a
Listcontaining all results, without paging - See Also:
-
listAll
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> listAll()Find all entities of this type. This method is a shortcut forfindAll().list().- Returns:
- a
Listcontaining all results, without paging - See Also:
-
listAll
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> listAll(Sort sort) Find all entities of this type, in the given order. This method is a shortcut forfindAll(sort).list().- Parameters:
sort- the sort order to use- Returns:
- a
Listcontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Object... params) Find entities matching a query, with optional indexed parameters. This method is a shortcut forfind(query, params).stream().- Parameters:
query- aquery stringparams- optional sequence of indexed parameters- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Sort sort, Object... params) Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut forfind(query, sort, params).stream().- Parameters:
query- aquery stringsort- the sort strategy to useparams- optional sequence of indexed parameters- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Map<String, Object> params) Find entities matching a query, with named parameters. This method is a shortcut forfind(query, params).stream().- Parameters:
query- aquery stringparams-Mapof named parameters- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Sort sort, Map<String, Object> params) Find entities matching a query and the given sort options, with named parameters. This method is a shortcut forfind(query, sort, params).stream().- Parameters:
query- aquery stringsort- the sort strategy to useparams-Mapof indexed parameters- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Parameters params) Find entities matching a query, with named parameters. This method is a shortcut forfind(query, params).stream().- Parameters:
query- aquery stringparams-Parametersof named parameters- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Sort sort, Parameters params) Find entities matching a query and the given sort options, with named parameters. This method is a shortcut forfind(query, sort, params).stream().- Parameters:
query- aquery stringsort- the sort strategy to useparams-Parametersof indexed parameters- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(org.bson.Document query) Find entities using a BSON query. This method is a shortcut forfind(query).stream().- Parameters:
query- aDocumentquery- Returns:
- a
Multicontaining all results, without paging - See Also:
-
stream
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(org.bson.Document query, org.bson.Document sort) Find entities using a BSON query and a BSON sort. This method is a shortcut forfind(query, sort).stream().- Parameters:
query- aDocumentquerysort- theDocumentsort- Returns:
- a
Multicontaining all results, without paging - See Also:
-
streamAll
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> streamAll()Find all entities of this type. This method is a shortcut forfindAll().stream().- Returns:
- a
Multicontaining all results, without paging - See Also:
-
streamAll
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> streamAll(Sort sort) Find all entities of this type, in the given order. This method is a shortcut forfindAll(sort).stream().- Parameters:
sort- the sort order to use- Returns:
- a
Multicontaining all results, without paging - See Also:
-
count
Counts the number of this type of entity in the database.- Returns:
- the number of this type of entity in the database.
- See Also:
-
count
Counts the number of this type of entity matching the given query, with optional indexed parameters.- Parameters:
query- aquery stringparams- optional sequence of indexed parameters- Returns:
- the number of entities counted.
- See Also:
-
count
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> count(String query, Map<String, Object> params) Counts the number of this type of entity matching the given query, with named parameters.- Parameters:
query- aquery stringparams-Mapof named parameters- Returns:
- the number of entities counted.
- See Also:
-
count
Counts the number of this type of entity matching the given query, with named parameters.- Parameters:
query- aquery stringparams-Parametersof named parameters- Returns:
- the number of entities counted.
- See Also:
-
count
Counts the number of this type of entity matching the given query- Parameters:
query- aDocumentquery- Returns:
- he number of entities counted.
- See Also:
-
deleteAll
Delete all entities of this type from the database.- Returns:
- the number of entities deleted.
- See Also:
-
deleteById
Delete an entity of this type by ID.- Parameters:
id- the ID of the entity to delete.- Returns:
- false if the entity was not deleted (not found).
-
delete
Delete all entities of this type matching the given query, with optional indexed parameters.- Parameters:
query- aquery stringparams- optional sequence of indexed parameters- Returns:
- the number of entities deleted.
- See Also:
-
delete
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> delete(String query, Map<String, Object> params) Delete all entities of this type matching the given query, with named parameters.- Parameters:
query- aquery stringparams-Mapof named parameters- Returns:
- the number of entities deleted.
- See Also:
-
delete
Delete all entities of this type matching the given query, with named parameters.- Parameters:
query- aquery stringparams-Parametersof named parameters- Returns:
- the number of entities deleted.
- See Also:
-
delete
Delete all entities of this type matching the given query- Parameters:
query- aDocumentquery- Returns:
- he number of entities counted.
- See Also:
-
persist
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> persist(Iterable<?> entities) Insert all given entities.- Parameters:
entities- the entities to insert- See Also:
-
persist
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> persist(Stream<?> entities) Insert all given entities.- Parameters:
entities- the entities to insert- See Also:
-
persist
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> persist(Object firstEntity, Object... entities) Insert all given entities.- Parameters:
entities- the entities to update- See Also:
-
update
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> update(Iterable<?> entities) Update all given entities.- Parameters:
entities- the entities to update- See Also:
-
update
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> update(Stream<?> entities) Update all given entities.- Parameters:
entities- the entities to insert- See Also:
-
update
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> update(Object firstEntity, Object... entities) Update all given entities.- Parameters:
entities- the entities to update- See Also:
-
persistOrUpdate
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> persistOrUpdate(Iterable<?> entities) Persist all given entities or update them if they already exist.- Parameters:
entities- the entities to update- See Also:
-
persistOrUpdate
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> persistOrUpdate(Stream<?> entities) Persist all given entities.- Parameters:
entities- the entities to insert- See Also:
-
persistOrUpdate
@GenerateBridge(callSuperMethod=true) public static io.smallrye.mutiny.Uni<Void> persistOrUpdate(Object firstEntity, Object... entities) Persist all given entities.- Parameters:
entities- the entities to update- See Also:
-
update
Update all entities of this type by the given update document, with optional indexed parameters. The returnedReactivePanacheUpdateobject will allow to restrict on which document the update should be applied.- Parameters:
update- the update document, if it didn't contain any update operator, we add$set. It can also be expressed as aquery string.params- optional sequence of indexed parameters- Returns:
- a new
ReactivePanacheUpdateinstance for the given update document - See Also:
-
update
@GenerateBridge public static ReactivePanacheUpdate update(String update, Map<String, Object> params) Update all entities of this type by the given update document, with named parameters. The returnedReactivePanacheUpdateobject will allow to restrict on which document the update should be applied.- Parameters:
update- the update document, if it didn't contain any update operator, we add$set. It can also be expressed as aquery string.params-Mapof named parameters- Returns:
- a new
ReactivePanacheUpdateinstance for the given update document - See Also:
-
update
Update all entities of this type by the given update document, with named parameters. The returnedReactivePanacheUpdateobject will allow to restrict on which document the update should be applied.- Parameters:
update- the update document, if it didn't contain any update operator, we add$set. It can also be expressed as aquery string.params-Parametersof named parameters- Returns:
- a new
ReactivePanacheUpdateinstance for the given update document - See Also:
-
update
Update all entities of this type by the given update BSON document. The returnedPanacheUpdateobject will allow to restrict on which document the update should be applied.- Parameters:
update- the update document, as aDocument.- Returns:
- a new
ReactivePanacheUpdateinstance for the given update document - See Also:
-
mongoCollection
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.quarkus.mongodb.reactive.ReactiveMongoCollection<T> mongoCollection()Allow to access the underlying Mongo Collection. -
mongoDatabase
Allow to access the underlying Mongo Database.
-