Interface ReactivePanacheMongoRepositoryBase<Entity,​Id>

  • Type Parameters:
    Entity - The type of entity to operate on
    Id - The ID type of the entity
    All Known Subinterfaces:
    ReactivePanacheMongoRepository<Entity>

    public interface ReactivePanacheMongoRepositoryBase<Entity,​Id>
    Represents a Repository for a specific type of entity Entity, with an ID type of Id. Implementing this repository will gain you the exact same useful methods that are on ReactivePanacheMongoEntityBase. Unless you have a custom ID strategy, you should not implement this interface directly but implement ReactivePanacheMongoRepository instead.
    See Also:
    ReactivePanacheMongoRepository
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default io.smallrye.mutiny.Uni<Long> count()
      Counts the number of this type of entity in the database.
      default 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.
      default 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.
      default 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.
      default io.smallrye.mutiny.Uni<Long> count​(org.bson.Document query)
      Counts the number of this type of entity matching the given query
      default io.smallrye.mutiny.Uni<Void> delete​(Entity entity)
      Delete the given entity from the database, if it is already persisted.
      default io.smallrye.mutiny.Uni<Long> delete​(String query, Parameters params)
      Delete all entities of this type matching the given query, with named parameters.
      default io.smallrye.mutiny.Uni<Long> delete​(String query, Object... params)
      Delete all entities of this type matching the given query, with optional indexed parameters.
      default 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.
      default io.smallrye.mutiny.Uni<Long> delete​(org.bson.Document query)
      Delete all entities of this type matching the given query
      default io.smallrye.mutiny.Uni<Long> deleteAll()
      Delete all entities of this type from the database.
      default io.smallrye.mutiny.Uni<Boolean> deleteById​(Id id)
      Delete an entity of this type by ID.
      default ReactivePanacheQuery<Entity> find​(String query, Parameters params)
      Find entities using a query, with named parameters.
      default ReactivePanacheQuery<Entity> find​(String query, Sort sort, Parameters params)
      Find entities using a query and the given sort options, with named parameters.
      default ReactivePanacheQuery<Entity> find​(String query, Sort sort, Object... params)
      Find entities using a query and the given sort options, with optional indexed parameters.
      default ReactivePanacheQuery<Entity> find​(String query, Sort sort, Map<String,​Object> params)
      Find entities using a query and the given sort options, with named parameters.
      default ReactivePanacheQuery<Entity> find​(String query, Object... params)
      Find entities using a query, with optional indexed parameters.
      default ReactivePanacheQuery<Entity> find​(String query, Map<String,​Object> params)
      Find entities using a query, with named parameters.
      default ReactivePanacheQuery<Entity> find​(org.bson.Document query)
      Find entities using a BSON query.
      default ReactivePanacheQuery<Entity> find​(org.bson.Document query, org.bson.Document sort)
      Find entities using a a BSON query and a BSON sort.
      default ReactivePanacheQuery<Entity> findAll()
      Find all entities of this type.
      default ReactivePanacheQuery<Entity> findAll​(Sort sort)
      Find all entities of this type, in the given order.
      default io.smallrye.mutiny.Uni<Entity> findById​(Id id)
      Find an entity of this type by ID.
      default io.smallrye.mutiny.Uni<Optional<Entity>> findByIdOptional​(Object id)
      Find an entity of this type by ID.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(String query, Parameters params)
      Find entities matching a query, with named parameters.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(String query, Sort sort, Parameters params)
      Find entities matching a query and the given sort options, with named parameters.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(String query, Sort sort, Object... params)
      Find entities matching a query and the given sort options, with optional indexed parameters.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(String query, Sort sort, Map<String,​Object> params)
      Find entities matching a query and the given sort options, with named parameters.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(String query, Object... params)
      Find entities matching a query, with optional indexed parameters.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(String query, Map<String,​Object> params)
      Find entities matching a query, with named parameters.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(org.bson.Document query)
      Find entities using a BSON query.
      default io.smallrye.mutiny.Uni<List<Entity>> list​(org.bson.Document query, org.bson.Document sort)
      Find entities using a a BSON query and a BSON sort.
      default io.smallrye.mutiny.Uni<List<Entity>> listAll()
      Find all entities of this type.
      default io.smallrye.mutiny.Uni<List<Entity>> listAll​(Sort sort)
      Find all entities of this type, in the given order.
      default io.quarkus.mongodb.reactive.ReactiveMongoCollection<Entity> mongoCollection()
      Allow to access the underlying Mongo Collection
      default io.quarkus.mongodb.reactive.ReactiveMongoDatabase mongoDatabase()
      Allow to access the underlying Mongo Database.
      default io.smallrye.mutiny.Uni<Entity> persist​(Entity entity)
      Persist the given entity in the database.
      default io.smallrye.mutiny.Uni<Void> persist​(Entity firstEntity, Entity... entities)
      Persist all given entities.
      default io.smallrye.mutiny.Uni<Void> persist​(Iterable<Entity> entities)
      Persist all given entities.
      default io.smallrye.mutiny.Uni<Void> persist​(Stream<Entity> entities)
      Persist all given entities.
      default io.smallrye.mutiny.Uni<Entity> persistOrUpdate​(Entity entity)
      Persist the given entity in the database or update it if it already exist.
      default io.smallrye.mutiny.Uni<Void> persistOrUpdate​(Entity firstEntity, Entity... entities)
      Persist all given entities or update them if they already exist.
      default io.smallrye.mutiny.Uni<Void> persistOrUpdate​(Iterable<Entity> entities)
      Persist all given entities or update them if they already exist.
      default io.smallrye.mutiny.Uni<Void> persistOrUpdate​(Stream<Entity> entities)
      Persist all given entities or update them if they already exist.
      default io.smallrye.mutiny.Multi<Entity> stream​(String query, Parameters params)
      Find entities matching a query, with named parameters.
      default io.smallrye.mutiny.Multi<Entity> stream​(String query, Sort sort, Parameters params)
      Find entities matching a query and the given sort options, with named parameters.
      default io.smallrye.mutiny.Multi<Entity> stream​(String query, Sort sort, Object... params)
      Find entities matching a query and the given sort options, with optional indexed parameters.
      default io.smallrye.mutiny.Multi<Entity> stream​(String query, Sort sort, Map<String,​Object> params)
      Find entities matching a query and the given sort options, with named parameters.
      default io.smallrye.mutiny.Multi<Entity> stream​(String query, Object... params)
      Find entities matching a query, with optional indexed parameters.
      default io.smallrye.mutiny.Multi<Entity> stream​(String query, Map<String,​Object> params)
      Find entities matching a query, with named parameters.
      default io.smallrye.mutiny.Multi<Entity> stream​(org.bson.Document query)
      Find entities using a BSON query.
      default io.smallrye.mutiny.Multi<Entity> stream​(org.bson.Document query, org.bson.Document sort)
      Find entities using a a BSON query and a BSON sort.
      default io.smallrye.mutiny.Multi<Entity> streamAll()
      Find all entities of this type, in the given order.
      default io.smallrye.mutiny.Multi<Entity> streamAll​(Sort sort)
      Find all entities of this type.
      default io.smallrye.mutiny.Uni<Entity> update​(Entity entity)
      Update the given entity in the database.
      default io.smallrye.mutiny.Uni<Void> update​(Entity firstEntity, Entity... entities)
      Update all given entities.
      default io.smallrye.mutiny.Uni<Void> update​(Iterable<Entity> entities)
      Update all given entities.
      default ReactivePanacheUpdate update​(String update, Parameters params)
      Update all entities of this type by the given update document, with named parameters.
      default ReactivePanacheUpdate update​(String update, Object... params)
      Update all entities of this type by the given update document, with optional indexed parameters.
      default ReactivePanacheUpdate update​(String update, Map<String,​Object> params)
      Update all entities of this type by the given update document, with named parameters.
      default io.smallrye.mutiny.Uni<Void> update​(Stream<Entity> entities)
      Update all given entities.