Class DefaultProcedureReturningManyAsyncInterceptor<T,R>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<? extends R>>
io.micronaut.data.runtime.intercept.async.DefaultProcedureReturningManyAsyncInterceptor<T,R>
- Type Parameters:
T- The return typeR- The result type
- All Implemented Interfaces:
io.micronaut.data.intercept.async.ProcedureReturningManyAsyncInterceptor<T,,R> io.micronaut.data.intercept.DataInterceptor<T,CompletionStage<? extends Iterable<R>>>
@Internal
public final class DefaultProcedureReturningManyAsyncInterceptor<T,R>
extends AbstractQueryInterceptor<T,CompletionStage<? extends R>>
implements io.micronaut.data.intercept.async.ProcedureReturningManyAsyncInterceptor<T,R>
The default implementation of
ProcedureReturningManyAsyncInterceptor.- Since:
- 4.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull io.micronaut.data.operations.async.AsyncRepositoryOperationsFields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Method Summary
Modifier and TypeMethodDescriptionprotected final io.micronaut.core.type.Argument<?>findReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context, io.micronaut.core.type.Argument<?> defaultArg) protected final io.micronaut.core.type.Argument<?>getReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context) Returns the return type.CompletionStage<? extends Iterable<R>>intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<? extends Iterable<R>>> context) Methods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageable, getPageableInRole, getPagedQuery, getParameterInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, validateNullArguments
-
Field Details
-
asyncDatastoreOperations
@NonNull protected final @NonNull io.micronaut.data.operations.async.AsyncRepositoryOperations asyncDatastoreOperations
-
-
Method Details
-
intercept
public CompletionStage<? extends Iterable<R>> intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<? extends Iterable<R>>> context) -
getReturnType
protected final io.micronaut.core.type.Argument<?> getReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context) Description copied from class:AbstractQueryInterceptorReturns the return type.- Overrides:
getReturnTypein classAbstractQueryInterceptor<T,CompletionStage<? extends R>> - Parameters:
context- The context- Returns:
- the return type
-
findReturnType
protected final io.micronaut.core.type.Argument<?> findReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context, io.micronaut.core.type.Argument<?> defaultArg)
-