public abstract class ReactivePanacheMongoEntityBase extends Object
ReactivePanacheMongoEntity
instead.ReactivePanacheMongoEntity
Constructor and Description |
---|
ReactivePanacheMongoEntityBase() |
Modifier and Type | Method and Description |
---|---|
static io.smallrye.mutiny.Uni<Long> |
count()
Counts the number of this type of entity in the database.
|
static io.smallrye.mutiny.Uni<Long> |
count(org.bson.Document query)
Counts the number of this type of entity matching the given query
|
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.
|
static io.smallrye.mutiny.Uni<Long> |
count(String query,
Object... params)
Counts the number of this type of entity matching the given query, with optional indexed parameters.
|
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.
|
io.smallrye.mutiny.Uni<Void> |
delete()
Delete this entity from the database, if it is already persisted.
|
static io.smallrye.mutiny.Uni<Long> |
delete(org.bson.Document query)
Delete all entities of this type matching the given query
|
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.
|
static io.smallrye.mutiny.Uni<Long> |
delete(String query,
Object... params)
Delete all entities of this type matching the given query, with optional indexed parameters.
|
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> |
deleteAll()
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> |
find(org.bson.Document query)
Find entities using a BSON query.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(org.bson.Document query,
org.bson.Document sort)
Find entities using a a BSON query and a BSON sort.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(String query,
Map<String,Object> params)
Find entities using a query, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(String query,
Object... params)
Find entities using a query, with optional indexed parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(String query,
Parameters params)
Find entities using a query, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(String query,
Sort sort,
Map<String,Object> params)
Find entities using a query and the given sort options, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(String query,
Sort sort,
Object... params)
Find entities using a query and the given sort options, with optional indexed parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
find(String query,
Sort sort,
Parameters params)
Find entities using a query and the given sort options, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
findAll()
Find all entities of this type.
|
static <T extends ReactivePanacheMongoEntityBase> |
findAll(Sort sort)
Find all entities of this type, in the given order.
|
static <T extends ReactivePanacheMongoEntityBase> |
findById(Object id)
Find an entity of this type by ID.
|
static <T extends ReactivePanacheMongoEntityBase> |
findByIdOptional(Object id)
Find an entity of this type by ID.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(org.bson.Document query)
Find entities using a BSON query.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(org.bson.Document query,
org.bson.Document sort)
Find entities using a a BSON query and a BSON sort.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(String query,
Map<String,Object> params)
Find entities matching a query, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(String query,
Object... params)
Find entities matching a query, with optional indexed parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(String query,
Parameters params)
Find entities matching a query, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(String query,
Sort sort,
Map<String,Object> params)
Find entities matching a query and the given sort options, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(String query,
Sort sort,
Object... params)
Find entities matching a query and the given sort options, with optional indexed parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
list(String query,
Sort sort,
Parameters params)
Find entities matching a query and the given sort options, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
listAll()
Find all entities of this type.
|
static <T extends ReactivePanacheMongoEntityBase> |
listAll(Sort sort)
Find all entities of this type, in the given order.
|
static <T extends ReactivePanacheMongoEntityBase> |
mongoCollection()
Allow to access the underlying Mongo Collection.
|
static io.quarkus.mongodb.reactive.ReactiveMongoDatabase |
mongoDatabase()
Allow to access the underlying Mongo Database.
|
io.smallrye.mutiny.Uni<Void> |
persist()
Persist this entity in the database.
|
static io.smallrye.mutiny.Uni<Void> |
persist(Iterable<?> entities)
Insert all given entities.
|
static io.smallrye.mutiny.Uni<Void> |
persist(Object firstEntity,
Object... entities)
Insert all given entities.
|
static io.smallrye.mutiny.Uni<Void> |
persist(Stream<?> entities)
Insert all given entities.
|
io.smallrye.mutiny.Uni<Void> |
persistOrUpdate()
Persist this entity in the database or update it if it already exist.
|
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> |
stream(org.bson.Document query)
Find entities using a BSON query.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(org.bson.Document query,
org.bson.Document sort)
Find entities using a a BSON query and a BSON sort.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(String query,
Map<String,Object> params)
Find entities matching a query, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(String query,
Object... params)
Find entities matching a query, with optional indexed parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(String query,
Parameters params)
Find entities matching a query, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(String query,
Sort sort,
Map<String,Object> params)
Find entities matching a query and the given sort options, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(String query,
Sort sort,
Object... params)
Find entities matching a query and the given sort options, with optional indexed parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
stream(String query,
Sort sort,
Parameters params)
Find entities matching a query and the given sort options, with named parameters.
|
static <T extends ReactivePanacheMongoEntityBase> |
streamAll()
Find all entities of this type.
|
static <T extends ReactivePanacheMongoEntityBase> |
streamAll(Sort sort)
Find all entities of this type, in the given order.
|
io.smallrye.mutiny.Uni<Void> |
update()
Update this entity in the database.
|
static io.smallrye.mutiny.Uni<Void> |
update(Iterable<?> entities)
Update all given entities.
|
static io.smallrye.mutiny.Uni<Void> |
update(Object firstEntity,
Object... entities)
Update all given entities.
|
static io.smallrye.mutiny.Uni<Void> |
update(Stream<?> entities)
Update all given entities.
|
static ReactivePanacheUpdate |
update(String update,
Map<String,Object> params)
Update all entities of this type by the given update document, with named parameters.
|
static ReactivePanacheUpdate |
update(String update,
Object... params)
Update all entities of this type by the given update document, with optional indexed parameters.
|
static ReactivePanacheUpdate |
update(String update,
Parameters params)
Update all entities of this type by the given update document, with named parameters.
|
public io.smallrye.mutiny.Uni<Void> persist()
public io.smallrye.mutiny.Uni<Void> update()
update(Iterable)
,
update(Stream)
,
update(Object, Object...)
public io.smallrye.mutiny.Uni<Void> persistOrUpdate()
public io.smallrye.mutiny.Uni<Void> delete()
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<T> findById(Object id)
id
- the ID of the entity to find.null
if not found.@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<Optional<T>> findByIdOptional(Object id)
id
- the ID of the entity to find.Optional.empty()
.@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Object... params)
query
- a query string
params
- optional sequence of indexed parametersReactivePanacheQuery
instance for the given queryfind(String, Sort, Object...)
,
find(String, Map)
,
find(String, Parameters)
,
list(String, Object...)
,
stream(String, Object...)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Sort sort, Object... params)
query
- a query string
sort
- the sort strategy to useparams
- optional sequence of indexed parametersReactivePanacheQuery
instance for the given queryfind(String, Object...)
,
find(String, Sort, Map)
,
find(String, Sort, Parameters)
,
list(String, Sort, Object...)
,
stream(String, Sort, Object...)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Map<String,Object> params)
query
- a query string
params
- Map
of named parametersReactivePanacheQuery
instance for the given queryfind(String, Sort, Map)
,
find(String, Object...)
,
find(String, Parameters)
,
list(String, Map)
,
stream(String, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Sort sort, Map<String,Object> params)
query
- a query string
sort
- the sort strategy to useparams
- Map
of indexed parametersReactivePanacheQuery
instance for the given queryfind(String, Map)
,
find(String, Sort, Object...)
,
find(String, Sort, Parameters)
,
list(String, Sort, Map)
,
stream(String, Sort, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Parameters params)
query
- a query string
params
- Parameters
of named parametersReactivePanacheQuery
instance for the given queryfind(String, Sort, Parameters)
,
find(String, Map)
,
find(String, Parameters)
,
list(String, Parameters)
,
stream(String, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(String query, Sort sort, Parameters params)
query
- a query string
sort
- the sort strategy to useparams
- Parameters
of indexed parametersReactivePanacheQuery
instance for the given queryfind(String, Parameters)
,
find(String, Sort, Map)
,
find(String, Sort, Parameters)
,
list(String, Sort, Parameters)
,
stream(String, Sort, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(org.bson.Document query)
query
- a Document
queryReactivePanacheQuery
instance for the given queryfind(Document, Document)
,
list(Document)
,
list(Document, Document)
,
stream(Document)
,
stream(Document, Document)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> find(org.bson.Document query, org.bson.Document sort)
query
- a Document
querysort
- the Document
sortReactivePanacheQuery
instance for the given queryfind(Document)
,
list(Document)
,
list(Document, Document)
,
stream(Document)
,
stream(Document, Document)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> findAll()
ReactivePanacheQuery
instance to find all entities of this type.findAll(Sort)
,
listAll()
,
streamAll()
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> ReactivePanacheQuery<T> findAll(Sort sort)
sort
- the sort order to useReactivePanacheQuery
instance to find all entities of this type.findAll()
,
listAll(Sort)
,
streamAll(Sort)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Object... params)
find(query, params).list()
.query
- a query string
params
- optional sequence of indexed parametersList
containing all results, without paginglist(String, Sort, Object...)
,
list(String, Map)
,
list(String, Parameters)
,
find(String, Object...)
,
stream(String, Object...)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Sort sort, Object... params)
find(query, sort, params).list()
.query
- a query string
sort
- the sort strategy to useparams
- optional sequence of indexed parametersList
containing all results, without paginglist(String, Object...)
,
list(String, Sort, Map)
,
list(String, Sort, Parameters)
,
find(String, Sort, Object...)
,
stream(String, Sort, Object...)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Map<String,Object> params)
find(query, params).list()
.query
- a query string
params
- Map
of named parametersList
containing all results, without paginglist(String, Sort, Map)
,
list(String, Object...)
,
list(String, Parameters)
,
find(String, Map)
,
stream(String, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Sort sort, Map<String,Object> params)
find(query, sort, params).list()
.query
- a query string
sort
- the sort strategy to useparams
- Map
of indexed parametersList
containing all results, without paginglist(String, Map)
,
list(String, Sort, Object...)
,
list(String, Sort, Parameters)
,
find(String, Sort, Map)
,
stream(String, Sort, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Parameters params)
find(query, params).list()
.query
- a query string
params
- Parameters
of named parametersList
containing all results, without paginglist(String, Sort, Parameters)
,
list(String, Object...)
,
list(String, Map)
,
find(String, Parameters)
,
stream(String, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(String query, Sort sort, Parameters params)
find(query, sort, params).list()
.query
- a query string
sort
- the sort strategy to useparams
- Parameters
of indexed parametersList
containing all results, without paginglist(String, Parameters)
,
list(String, Sort, Object...)
,
list(String, Sort, Map)
,
find(String, Sort, Parameters)
,
stream(String, Sort, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(org.bson.Document query)
find(query).list()
.query
- a Document
queryList
containing all results, without pagingfind(Document)
,
find(Document, Document)
,
list(Document, Document)
,
stream(Document)
,
stream(Document, Document)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> list(org.bson.Document query, org.bson.Document sort)
find(query, sort).list()
.query
- a Document
querysort
- the Document
sortList
containing all results, without pagingfind(Document)
,
find(Document, Document)
,
list(Document, Document)
,
stream(Document)
,
stream(Document, Document)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> listAll()
findAll().list()
.List
containing all results, without paginglistAll(Sort)
,
findAll()
,
streamAll()
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Uni<List<T>> listAll(Sort sort)
findAll(sort).list()
.sort
- the sort order to useList
containing all results, without paginglistAll()
,
findAll(Sort)
,
streamAll(Sort)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Object... params)
find(query, params).stream()
.query
- a query string
params
- optional sequence of indexed parametersMulti
containing all results, without pagingstream(String, Sort, Object...)
,
stream(String, Map)
,
stream(String, Parameters)
,
find(String, Object...)
,
list(String, Object...)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Sort sort, Object... params)
find(query, sort, params).stream()
.query
- a query string
sort
- the sort strategy to useparams
- optional sequence of indexed parametersMulti
containing all results, without pagingstream(String, Object...)
,
stream(String, Sort, Map)
,
stream(String, Sort, Parameters)
,
find(String, Sort, Object...)
,
list(String, Sort, Object...)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Map<String,Object> params)
find(query, params).stream()
.query
- a query string
params
- Map
of named parametersMulti
containing all results, without pagingstream(String, Sort, Map)
,
stream(String, Object...)
,
stream(String, Parameters)
,
find(String, Map)
,
list(String, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Sort sort, Map<String,Object> params)
find(query, sort, params).stream()
.query
- a query string
sort
- the sort strategy to useparams
- Map
of indexed parametersMulti
containing all results, without pagingstream(String, Map)
,
stream(String, Sort, Object...)
,
stream(String, Sort, Parameters)
,
find(String, Sort, Map)
,
list(String, Sort, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Parameters params)
find(query, params).stream()
.query
- a query string
params
- Parameters
of named parametersMulti
containing all results, without pagingstream(String, Sort, Parameters)
,
stream(String, Object...)
,
stream(String, Map)
,
find(String, Parameters)
,
list(String, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(String query, Sort sort, Parameters params)
find(query, sort, params).stream()
.query
- a query string
sort
- the sort strategy to useparams
- Parameters
of indexed parametersMulti
containing all results, without pagingstream(String, Parameters)
,
stream(String, Sort, Object...)
,
stream(String, Sort, Map)
,
find(String, Sort, Parameters)
,
list(String, Sort, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(org.bson.Document query)
find(query).stream()
.query
- a Document
queryMulti
containing all results, without pagingfind(String, Parameters)
,
find(String, Sort, Map)
,
find(String, Sort, Parameters)
,
list(String, Sort, Parameters)
,
stream(String, Sort, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> stream(org.bson.Document query, org.bson.Document sort)
find(query, sort).stream()
.query
- a Document
querysort
- the Document
sortMulti
containing all results, without pagingfind(String, Parameters)
,
find(String, Sort, Map)
,
find(String, Sort, Parameters)
,
list(String, Sort, Parameters)
,
stream(String, Sort, Parameters)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> streamAll()
findAll().stream()
.Multi
containing all results, without pagingstreamAll(Sort)
,
findAll()
,
listAll()
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.smallrye.mutiny.Multi<T> streamAll(Sort sort)
findAll(sort).stream()
.sort
- the sort order to useMulti
containing all results, without pagingstreamAll()
,
findAll(Sort)
,
listAll(Sort)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> count()
count(String, Object...)
,
count(String, Map)
,
count(String, Parameters)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> count(String query, Object... params)
query
- a query string
params
- optional sequence of indexed parameterscount()
,
count(String, Map)
,
count(String, Parameters)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> count(String query, Map<String,Object> params)
query
- a query string
params
- Map
of named parameterscount()
,
count(String, Object...)
,
count(String, Parameters)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> count(String query, Parameters params)
query
- a query string
params
- Parameters
of named parameterscount()
,
count(String, Object...)
,
count(String, Map)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> count(org.bson.Document query)
query
- a Document
querycount()
,
count(String, Object...)
,
count(String, Map)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> deleteAll()
delete(String, Object...)
,
delete(String, Map)
,
delete(String, Parameters)
@GenerateBridge public static io.smallrye.mutiny.Uni<Boolean> deleteById(Object id)
id
- the ID of the entity to delete.@GenerateBridge public static io.smallrye.mutiny.Uni<Long> delete(String query, Object... params)
query
- a query string
params
- optional sequence of indexed parametersdeleteAll()
,
delete(String, Map)
,
delete(String, Parameters)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> delete(String query, Map<String,Object> params)
query
- a query string
params
- Map
of named parametersdeleteAll()
,
delete(String, Object...)
,
delete(String, Parameters)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> delete(String query, Parameters params)
query
- a query string
params
- Parameters
of named parametersdeleteAll()
,
delete(String, Object...)
,
delete(String, Map)
@GenerateBridge public static io.smallrye.mutiny.Uni<Long> delete(org.bson.Document query)
query
- a Document
querycount()
,
count(String, Object...)
,
count(String, Map)
public static io.smallrye.mutiny.Uni<Void> persist(Iterable<?> entities)
entities
- the entities to insertpersist()
,
persist(Stream)
,
persist(Object,Object...)
public static io.smallrye.mutiny.Uni<Void> persist(Stream<?> entities)
entities
- the entities to insertpersist()
,
persist(Iterable)
,
persist(Object,Object...)
public static io.smallrye.mutiny.Uni<Void> persist(Object firstEntity, Object... entities)
entities
- the entities to updatepersist()
,
persist(Stream)
,
persist(Iterable)
public static io.smallrye.mutiny.Uni<Void> update(Iterable<?> entities)
entities
- the entities to updateupdate()
,
update(Stream)
,
update(Object,Object...)
public static io.smallrye.mutiny.Uni<Void> update(Stream<?> entities)
entities
- the entities to insertupdate()
,
update(Iterable)
,
update(Object,Object...)
public static io.smallrye.mutiny.Uni<Void> update(Object firstEntity, Object... entities)
entities
- the entities to updateupdate()
,
update(Stream)
,
update(Iterable)
public static io.smallrye.mutiny.Uni<Void> persistOrUpdate(Iterable<?> entities)
entities
- the entities to updatepersistOrUpdate()
,
persistOrUpdate(Stream)
,
persistOrUpdate(Object,Object...)
public static io.smallrye.mutiny.Uni<Void> persistOrUpdate(Stream<?> entities)
entities
- the entities to insertpersistOrUpdate()
,
persistOrUpdate(Iterable)
,
persistOrUpdate(Object,Object...)
public static io.smallrye.mutiny.Uni<Void> persistOrUpdate(Object firstEntity, Object... entities)
entities
- the entities to updatepersistOrUpdate()
,
persistOrUpdate(Stream)
,
persistOrUpdate(Iterable)
@GenerateBridge public static ReactivePanacheUpdate update(String update, Object... params)
PanacheUpdate
object will allow to restrict on which document the update should be applied.update
- the update document, if it didn't contain $set
we add it.
It can also be expressed as a query string
.params
- optional sequence of indexed parametersReactivePanacheUpdate
instance for the given update documentupdate(String, Map)
,
update(String, Parameters)
@GenerateBridge public static ReactivePanacheUpdate update(String update, Map<String,Object> params)
PanacheUpdate
object will allow to restrict on which document the update should be applied.update
- the update document, if it didn't contain $set
we add it.
It can also be expressed as a query string
.params
- Map
of named parametersReactivePanacheUpdate
instance for the given update documentupdate(String, Object...)
,
update(String, Parameters)
@GenerateBridge public static ReactivePanacheUpdate update(String update, Parameters params)
PanacheUpdate
object will allow to restrict on which document the update should be applied.update
- the update document, if it didn't contain $set
we add it.
It can also be expressed as a query string
.params
- Parameters
of named parametersReactivePanacheUpdate
instance for the given update documentupdate(String, Object...)
,
update(String, Map)
@GenerateBridge public static <T extends ReactivePanacheMongoEntityBase> io.quarkus.mongodb.reactive.ReactiveMongoCollection<T> mongoCollection()
@GenerateBridge public static io.quarkus.mongodb.reactive.ReactiveMongoDatabase mongoDatabase()
Copyright © 2021 JBoss by Red Hat. All rights reserved.