Interface PanacheRepositoryBlockingQueries<Entity,Id>
- All Superinterfaces:
PanacheRepositoryQueries<Entity,List<Entity>, PanacheBlockingQuery<Entity>, Long, Boolean, Id>
- All Known Subinterfaces:
PanacheManagedBlockingRepository<Entity>,PanacheManagedBlockingRepositoryBase<Entity,,Id> PanacheManagedBlockingRepositoryQueries<Entity,,Id> PanacheRepository<Entity>,PanacheRepository.Managed<Entity,,Id> PanacheRepository.Stateless<Entity,,Id> PanacheStatelessBlockingRepository<Entity>,PanacheStatelessBlockingRepositoryBase<Entity,,Id> PanacheStatelessBlockingRepositoryQueries<Entity,Id>
public interface PanacheRepositoryBlockingQueries<Entity,Id>
extends PanacheRepositoryQueries<Entity,List<Entity>,PanacheBlockingQuery<Entity>,Long,Boolean,Id>
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdOptional(Id id) Find an entity of this type by ID.findByIdOptional(Id id, jakarta.persistence.LockModeType lockModeType) Find an entity of this type by ID.Find entities matching a query and the given sort options, with optional indexed parameters.Find entities matching a query and the given sort options, with named parameters.Find entities matching a query, with optional indexed parameters.Find entities matching a query, with named parameters.Find all entities of this type, in the given order.streamAll(io.quarkus.panache.common.Sort sort) Find all entities of this type.
-
Method Details
-
findByIdOptional
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().
-
findByIdOptional
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().
-
stream
Find entities matching a query, with optional indexed parameters. This method is a shortcut forfind(query, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.- Parameters:
query- aquery stringparams- optional sequence of indexed parameters- Returns:
- a
Streamcontaining all results, without paging - See Also:
-
stream
Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut forfind(query, sort, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.- Parameters:
query- aquery stringsort- the sort strategy to useparams- optional sequence of indexed parameters- Returns:
- a
Streamcontaining all results, without paging - See Also:
-
stream
Find entities matching a query, with named parameters. This method is a shortcut forfind(query, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.- Parameters:
query- aquery stringparams-Mapof named parameters- Returns:
- a
Streamcontaining all results, without paging - See Also:
-
stream
Find entities matching a query and the given sort options, with named parameters. This method is a shortcut forfind(query, sort, params).stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.- Parameters:
query- aquery stringsort- the sort strategy to useparams-Mapof indexed parameters- Returns:
- a
Streamcontaining all results, without paging - See Also:
-
streamAll
Find all entities of this type. This method is a shortcut forfindAll().stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.- Returns:
- a
Streamcontaining all results, without paging - See Also:
-
streamAll
Find all entities of this type, in the given order. This method is a shortcut forfindAll().stream(). It requires a transaction to work. Without a transaction, the underlying cursor can be closed before the end of the stream.- Returns:
- a
Streamcontaining all results, without paging - See Also:
-