Interface BlockingReactorRepositoryOperations
- All Superinterfaces:
- io.micronaut.context.ApplicationContextProvider,- io.micronaut.core.convert.ConversionServiceProvider,- HintsCapableRepository,- ReactiveCapableRepository,- ReactorReactiveCapableRepository,- RepositoryOperations
public interface BlockingReactorRepositoryOperations
extends RepositoryOperations, ReactorReactiveCapableRepository
Implementation of 
RepositoryOperations that blocks every call from ReactorReactiveRepositoryOperations.- Since:
- 3.3.0
- Author:
- Denis Stepanov
- 
Method SummaryModifier and TypeMethodDescriptiondefault <T> longcount(PagedQuery<T> pagedQuery) Counts all results for the given query.default <T> intdelete(@NonNull DeleteOperation<T> operation) Deletes the entity.deleteAll(@NonNull DeleteBatchOperation<T> operation) Deletes all the entities of the given type.default <R> List<R>execute(PreparedQuery<?, R> preparedQuery) Executes the given query with parameter values returning a result.executeDelete(@NonNull PreparedQuery<?, Number> preparedQuery) Executes a delete for the given query and parameter values.executeUpdate(@NonNull PreparedQuery<?, Number> preparedQuery) Executes an update for the given query and parameter values.default <T> booleanexists(@NonNull PreparedQuery<T, Boolean> preparedQuery) Execute a query that checks for existence.default <T> @NonNull Iterable<T>findAll(@NonNull PagedQuery<T> query) Finds all results for the given query.default <T,R> @NonNull Iterable<R> findAll(@NonNull PreparedQuery<T, R> preparedQuery) Finds all results for the given query.default <T,R> R findOne(@NonNull PreparedQuery<T, R> preparedQuery) Find one by Query.default <T> TFind one by ID.default <R> Page<R>findPage(@NonNull PagedQuery<R> query) Find a page for the given entity and pageable.default <T> @NonNull Stream<T>findStream(@NonNull PagedQuery<T> query) Finds a stream for the given arguments.default <T,R> @NonNull Stream<R> findStream(@NonNull PreparedQuery<T, R> preparedQuery) Finds all results for the given query.default <T> Tpersist(@NonNull InsertOperation<T> operation) Persist the operation returning a possibly new entity.default <T> @NonNull Iterable<T>persistAll(@NonNull InsertBatchOperation<T> operation) Persist all the given entities.default <T> Tupdate(@NonNull UpdateOperation<T> operation) Updates the entity for the given operation.default <T> Iterable<T>updateAll(UpdateBatchOperation<T> operation) Updates the entities for the given operation.Methods inherited from interface io.micronaut.context.ApplicationContextProvidergetApplicationContextMethods inherited from interface io.micronaut.core.convert.ConversionServiceProvidergetConversionServiceMethods inherited from interface io.micronaut.data.operations.HintsCapableRepositorygetQueryHintsMethods inherited from interface io.micronaut.data.operations.reactive.ReactorReactiveCapableRepositoryreactiveMethods inherited from interface io.micronaut.data.operations.RepositoryOperationsgetEntity
- 
Method Details- 
findOneDescription copied from interface:RepositoryOperationsFind one by ID.- Specified by:
- findOnein interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- type- The type
- id- The id
- Returns:
- A result or null
 
- 
findOneDescription copied from interface:RepositoryOperationsFind one by Query.- Specified by:
- findOnein interface- RepositoryOperations
- Type Parameters:
- T- The generic resultType
- R- The result type
- Parameters:
- preparedQuery- The prepared query
- Returns:
- A result or null
 
- 
findAll@NonNull default <T,R> @NonNull Iterable<R> findAll(@NonNull @NonNull PreparedQuery<T, R> preparedQuery) Description copied from interface:RepositoryOperationsFinds all results for the given query.- Specified by:
- findAllin interface- RepositoryOperations
- Type Parameters:
- T- The entity type
- R- The result type
- Parameters:
- preparedQuery- The prepared query
- Returns:
- An iterable result
 
- 
findStream@NonNull default <T,R> @NonNull Stream<R> findStream(@NonNull @NonNull PreparedQuery<T, R> preparedQuery) Description copied from interface:RepositoryOperationsFinds all results for the given query.- Specified by:
- findStreamin interface- RepositoryOperations
- Type Parameters:
- T- The entity type
- R- The result type
- Parameters:
- preparedQuery- The prepared query
- Returns:
- An iterable result
 
- 
persistDescription copied from interface:RepositoryOperationsPersist the operation returning a possibly new entity.- Specified by:
- persistin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- operation- The operation
- Returns:
- The operation
 
- 
updateDescription copied from interface:RepositoryOperationsUpdates the entity for the given operation.- Specified by:
- updatein interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- operation- The operation
- Returns:
- The operation
 
- 
updateAllDescription copied from interface:RepositoryOperationsUpdates the entities for the given operation.- Specified by:
- updateAllin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- operation- The operation
- Returns:
- The updated entities
 
- 
persistAll@NonNull default <T> @NonNull Iterable<T> persistAll(@NonNull @NonNull InsertBatchOperation<T> operation) Description copied from interface:RepositoryOperationsPersist all the given entities.- Specified by:
- persistAllin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- operation- The operation
- Returns:
- The entities, possibly mutated
 
- 
executeUpdate@NonNull default @NonNull Optional<Number> executeUpdate(@NonNull @NonNull PreparedQuery<?, Number> preparedQuery) Description copied from interface:RepositoryOperationsExecutes an update for the given query and parameter values. If it is possible to return the number of objects updated, then do so.- Specified by:
- executeUpdatein interface- RepositoryOperations
- Parameters:
- preparedQuery- The prepared query
- Returns:
- An optional number with the count of the number of records updated
 
- 
executeDeleteDescription copied from interface:RepositoryOperationsExecutes a delete for the given query and parameter values. If it is possible to return the number of objects deleted, then do so.- Specified by:
- executeDeletein interface- RepositoryOperations
- Parameters:
- preparedQuery- The prepared query
- Returns:
- An optional number with the count of the number of records updated
 
- 
executeDescription copied from interface:RepositoryOperationsExecutes the given query with parameter values returning a result.- Specified by:
- executein interface- RepositoryOperations
- Type Parameters:
- R- The result type
- Parameters:
- preparedQuery- The prepared query
- Returns:
- The result
 
- 
deleteDescription copied from interface:RepositoryOperationsDeletes the entity.- Specified by:
- deletein interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- operation- The operation
- Returns:
- The number of entities deleted
 
- 
deleteAllDescription copied from interface:RepositoryOperationsDeletes all the entities of the given type.- Specified by:
- deleteAllin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- operation- The operation
- Returns:
- The number of entities deleted
 
- 
existsDescription copied from interface:RepositoryOperationsExecute a query that checks for existence.- Specified by:
- existsin interface- RepositoryOperations
- Type Parameters:
- T- The generic resultType
- Parameters:
- preparedQuery- The prepared query
- Returns:
- A result or null
 
- 
findPageDescription copied from interface:RepositoryOperationsFind a page for the given entity and pageable.- Specified by:
- findPagein interface- RepositoryOperations
- Type Parameters:
- R- The entity generic type
- Parameters:
- query- The query
- Returns:
- The page type
 
- 
findAllDescription copied from interface:RepositoryOperationsFinds all results for the given query.- Specified by:
- findAllin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- query- The root entity
- Returns:
- An iterable result
 
- 
countDescription copied from interface:RepositoryOperationsCounts all results for the given query.- Specified by:
- countin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- pagedQuery- The paged query
- Returns:
- An iterable result
 
- 
findStreamDescription copied from interface:RepositoryOperationsFinds a stream for the given arguments.- Specified by:
- findStreamin interface- RepositoryOperations
- Type Parameters:
- T- The generic type
- Parameters:
- query- The query
- Returns:
- The stream
 
 
-