Class DefaultInsertReturningManyAsyncInterceptor<T,R>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T, CompletionStage<? extends Iterable<R>>>
io.micronaut.data.runtime.intercept.async.DefaultInsertReturningManyAsyncInterceptor<T,R>
- Type Parameters:
T- The return typeR- The result type
- All Implemented Interfaces:
InsertReturningManyAsyncInterceptor<T,R>, DataInterceptor<T, CompletionStage<? extends Iterable<R>>>
@Internal
public final class DefaultInsertReturningManyAsyncInterceptor<T,R>
extends AbstractQueryInterceptor<T, CompletionStage<? extends Iterable<R>>>
implements InsertReturningManyAsyncInterceptor<T,R>
The default implementation of
InsertReturningManyAsyncInterceptor.- Since:
- 5.0.0
- Author:
- radovanradic
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractQueryInterceptor
AbstractQueryInterceptor.SaveOperation -
Field Summary
FieldsFields inherited from class 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(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<? extends Iterable<R>>> context) Intercepts a data method execution.Methods inherited from class AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, findRepositoryOperations, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageable, getPageableInRole, getPagedQuery, getParameterInRole, getParameterInRole, getParametersInRole, getParametersInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, hasEntityId, hasReturnTypeInRole, instantiateEntity, isEntityExistsException, isEntityUpdateCandidate, isNumber, isSaveAsInsert, isSaveAssignedIdFallbackToUpdate, persistOrUpdate, persistWithUpdateFallback, prepareCountQuery, prepareQuery, propagate, resolveSaveOperation, unwrapCompletionException, validateNullArguments
-
Field Details
-
asyncDatastoreOperations
-
-
Method Details
-
intercept
public CompletionStage<? extends Iterable<R>> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<? extends Iterable<R>>> context) Description copied from interface:DataInterceptorIntercepts a data method execution.- Specified by:
interceptin interfaceDataInterceptor<T,R> - Parameters:
methodKey- The method keycontext- The context- Returns:
- The result
-
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)
-