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:
io.micronaut.data.intercept.async.ExistsByAsyncInterceptor<T>,io.micronaut.data.intercept.DataInterceptor<T,CompletionStage<Boolean>>
public class DefaultExistsByAsyncInterceptor<T>
extends AbstractAsyncInterceptor<T,Boolean>
implements io.micronaut.data.intercept.async.ExistsByAsyncInterceptor<T>
The default implementation of
ExistsByAsyncInterceptor.- Since:
- 1.0.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
ConstructorsModifierConstructorDescriptionprotectedDefaultExistsByAsyncInterceptor(@NonNull io.micronaut.data.operations.RepositoryOperations datastore) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Boolean>> context) 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
-
DefaultExistsByAsyncInterceptor
protected DefaultExistsByAsyncInterceptor(@NonNull @NonNull io.micronaut.data.operations.RepositoryOperations datastore) Default constructor.- Parameters:
datastore- The operations
-
-
Method Details
-
intercept
public CompletionStage<Boolean> intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, CompletionStage<Boolean>> context) - Specified by:
interceptin interfaceio.micronaut.data.intercept.DataInterceptor<T,CompletionStage<Boolean>>
-