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 SummaryFields inherited from class io.micronaut.data.runtime.intercept.async.AbstractAsyncInterceptorasyncDatastoreOperations, LIST_OF_OBJECTSFields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptorconversionService, operations, preparedQueryResolver
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefaultExistsByAsyncInterceptor(@NonNull RepositoryOperations datastore) Default constructor.
- 
Method SummaryModifier 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.AbstractAsyncInterceptorconvertNumberToReturnType, findReturnType, getReturnTypeMethods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptorconvertOne, 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- 
DefaultExistsByAsyncInterceptorDefault constructor.- Parameters:
- datastore- The operations
 
 
- 
- 
Method Details- 
interceptpublic 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 interface- DataInterceptor<T,- CompletionStage<Boolean>> 
- Parameters:
- methodKey- The method key
- context- The context
- Returns:
- The result
 
 
-