Class AbstractCountConvertCompletionStageInterceptor
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<R>>
io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor<Object,Object>
io.micronaut.data.runtime.intercept.async.AbstractCountConvertCompletionStageInterceptor
- All Implemented Interfaces:
io.micronaut.data.intercept.DataInterceptor<Object,CompletionStage<Object>>
- Direct Known Subclasses:
DefaultDeleteAllAsyncInterceptor,DefaultDeleteOneAsyncInterceptor,DefaultSaveAllAsyncInterceptor,DefaultSaveEntityInterceptor,DefaultSaveOneAsyncInterceptor,DefaultUpdateAllAsyncEntitiesInterceptor,DefaultUpdateAsyncInterceptor,DefaultUpdateEntityAsyncInterceptor
@Internal
public abstract class AbstractCountConvertCompletionStageInterceptor
extends AbstractAsyncInterceptor<Object,Object>
Abstract asynchronous interceptor implementation with a result conversion.
- Since:
- 3.5.0
-
Field Summary
Fields inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor
asyncDatastoreOperations, LIST_OF_OBJECTSFields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCountConvertCompletionStageInterceptor(io.micronaut.data.operations.RepositoryOperations datastore) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) protected abstract CompletionStage<?>interceptCompletionStage(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) Intercept CompletionStage.Methods inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor
convertNumberToReturnType, findReturnType, getReturnTypeMethods 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, getPageable, getPagedQuery, getParameterValueMap, getRequiredEntity, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArguments
-
Constructor Details
-
AbstractCountConvertCompletionStageInterceptor
protected AbstractCountConvertCompletionStageInterceptor(io.micronaut.data.operations.RepositoryOperations datastore) Default constructor.- Parameters:
datastore- The operations
-
-
Method Details
-
interceptCompletionStage
protected abstract CompletionStage<?> interceptCompletionStage(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context) Intercept CompletionStage.- Parameters:
methodKey- The method keycontext- The context- Returns:
- the result publisher
-
intercept
public CompletionStage<Object> intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Object>> context)
-