Panache Mongo Companion Base
Define persistence and query methods for an Entity with a type of Id
Parameters
the entity type
the ID type
Inheritors
Functions
Counts the number of this type of entity in the database.
Counts the number of this type of entity matching the given query
Counts the number of this type of entity matching the given query with named parameters.
Counts the number of this type of entity matching the given query, with optional indexed parameters.
Counts the number of this type of entity matching the given query, with named parameters.
Delete all entities of this type matching the given query
Delete all entities of this type matching the given query, with named parameters.
Delete all entities of this type matching the given query, with optional indexed parameters.
Delete an entity of this type by ID.
Find entities using a BSON query.
Find entities using a query, with named parameters.
Find entities using a query, with optional indexed parameters.
Find entities using a BSON query and a BSON sort.
Find entities using a query and the given sort options with named parameters.
Find entities using a query and the given sort options with optional indexed parameters.
Find entities using a query and the given sort options, with named parameters.
Find all entities of this type.
Find all entities of this type, in the given order.
Find entities using a BSON query. This method is a shortcut for find(query).list().
Find entities matching a query, with named parameters. This method is a shortcut for find(query, params).list().
Find entities matching a query, with optional indexed parameters. This method is a shortcut for find(query, params).list().
Find entities using a BSON query and a BSON sort. This method is a shortcut for find(query, sort).list().
Find entities matching a query and the given sort options, with named parameters. This method is a shortcut for find(query, sort, params).list().
Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut for find(query, sort, params).list().
Allow to access the underlying Mongo Collection.
Allow to access the underlying Mongo Database.
Persist all given entities.
Persist all given entities or update them if they already exist.
Find entities using a BSON query. This method is a shortcut for find(query).stream().
Find entities matching a query, with named parameters. This method is a shortcut for find(query, params).stream().
Find entities matching a query, with optional indexed parameters. This method is a shortcut for find(query, params).stream().
Find entities using a BSON query and a BSON sort. This method is a shortcut for find(query, sort).stream().
Find entities matching a query and the given sort options, with named parameters. This method is a shortcut for find(query, sort, params).stream().
Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut for find(query, sort, params).stream().
Update all given entities.
Update all entities of this type by the given update BSON document. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.
Update all entities of this type by the given update document, with named parameters. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.
Update all entities of this type using the given update document with optional indexed parameters. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.
Update all entities of this type by the given update document with named parameters. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.