Class DefaultExistsByAsyncInterceptor<T>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,CompletionStage<R>>
io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptor<T,Boolean>
io.micronaut.data.runtime.intercept.async.DefaultExistsByAsyncInterceptor<T>
- Type Parameters:
T- The declaring type
- All Implemented Interfaces:
ExistsByAsyncInterceptor<T>,DataInterceptor<T,CompletionStage<Boolean>>
public class DefaultExistsByAsyncInterceptor<T>
extends AbstractAsyncInterceptor<T,Boolean>
implements ExistsByAsyncInterceptor<T>
The default implementation of
ExistsByAsyncInterceptor.- Since:
- 1.0.0
- Author:
- graemerocher
-
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
ConstructorsModifierConstructorDescriptionprotectedDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Boolean>> context) Intercepts a data method execution.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, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getParameterValueMap, getRequiredEntity, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArguments
-
Constructor Details
-
DefaultExistsByAsyncInterceptor
Default constructor.- Parameters:
datastore- The operations
-
-
Method Details
-
intercept
public CompletionStage<Boolean> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Boolean>> context) Description copied from interface:DataInterceptorIntercepts a data method execution.- Specified by:
interceptin interfaceDataInterceptor<T,CompletionStage<Boolean>> - Parameters:
methodKey- The method keycontext- The context- Returns:
- The result
-