Class DefaultExistsByAsyncInterceptor<T>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T, CompletionStage<Boolean>>
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 AbstractAsyncInterceptor
asyncDatastoreOperations, LIST_OF_OBJECTSFields inherited from class AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultExistsByAsyncInterceptor(@NonNull RepositoryOperations datastore) Default 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 AbstractAsyncInterceptor
convertNumberToReturnType, findReturnType, getReturnTypeMethods inherited from class AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, 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, hasReturnTypeInRole, instantiateEntity, isNumber, prepareCountQuery, 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
-