Class ExistsAsyncSpecificationInterceptor
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<Object, CompletionStage<Boolean>>
io.micronaut.data.runtime.intercept.criteria.AbstractSpecificationInterceptor<Object, CompletionStage<Boolean>>
io.micronaut.data.runtime.intercept.criteria.async.AbstractAsyncSpecificationInterceptor<Object, CompletionStage<Boolean>>
io.micronaut.data.runtime.intercept.criteria.async.ExistsAsyncSpecificationInterceptor
- All Implemented Interfaces:
DataInterceptor<Object, CompletionStage<Boolean>>
@Internal
public class ExistsAsyncSpecificationInterceptor
extends AbstractAsyncSpecificationInterceptor<Object, CompletionStage<Boolean>>
Interceptor that supports async exists specifications.
- Since:
- 3.8
- Author:
- Nick Hensel
-
Field Summary
Fields inherited from class AbstractAsyncSpecificationInterceptor
asyncCriteriaOperations, asyncOperations, LIST_OF_OBJECTSFields inherited from class AbstractSpecificationInterceptor
criteriaBuilder, criteriaRepositoryOperations, PREPARED_QUERY_KEYFields inherited from class AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptionintercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Boolean>> context) Intercepts a data method execution.Methods inherited from class AbstractAsyncSpecificationInterceptor
convertNumberToReturnType, findAllAsync, findReturnType, getReturnTypeMethods inherited from class AbstractSpecificationInterceptor
applyPaginationAndSort, buildCountQuery, buildDeleteQuery, buildExistsQuery, buildIdsQuery, buildQuery, buildUpdateQuery, findAll, getCountCriteriaQueryBuilder, getCriteriaDeleteBuilder, getCriteriaQueryBuilder, getCriteriaUpdateBuilder, getDeleteSpecification, getIdExpression, getIdsCriteriaQueryBuilder, getMethodJoinPaths, getPageable, getQueryBuilder, getQuerySpecification, getUpdateSpecificationMethods inherited from class AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageableInRole, getPagedQuery, getParameterInRole, getParameterInRole, getParametersInRole, getParametersInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, hasReturnTypeInRole, instantiateEntity, isNumber, prepareCountQuery, prepareQuery, validateNullArguments
-
Constructor Details
-
ExistsAsyncSpecificationInterceptor
Default constructor.- Parameters:
operations- The operations
-
-
Method Details
-
intercept
public CompletionStage<Boolean> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, CompletionStage<Boolean>> context) Description copied from interface:DataInterceptorIntercepts a data method execution.- Parameters:
methodKey- The method keycontext- The context- Returns:
- The result
-