Class AbstractAsyncSpecificationInterceptor<T,R>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
io.micronaut.data.runtime.intercept.criteria.AbstractSpecificationInterceptor<T,R>
io.micronaut.data.runtime.intercept.criteria.async.AbstractAsyncSpecificationInterceptor<T,R>
- Type Parameters:
T- The declaring typeR- The return type
- All Implemented Interfaces:
DataInterceptor<T,R>
- Direct Known Subclasses:
CountAsyncSpecificationInterceptor, DeleteAllAsyncSpecificationInterceptor, ExistsAsyncSpecificationInterceptor, FindAllAsyncSpecificationInterceptor, FindOneAsyncSpecificationInterceptor, FindPageAsyncSpecificationInterceptor, UpdateAllAsyncSpecificationInterceptor
@Internal
public abstract class AbstractAsyncSpecificationInterceptor<T,R>
extends AbstractSpecificationInterceptor<T,R>
Abstract async specification interceptor.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @Nullable AsyncCriteriaRepositoryOperationsprotected final AsyncRepositoryOperationsFields inherited from class AbstractSpecificationInterceptor
criteriaBuilder, criteriaRepositoryOperations, PREPARED_QUERY_KEYFields inherited from class AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable NumberconvertNumberToReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context, Number number) Convert a number argument if necessary.protected final @NonNull CompletionStage<Iterable<Object>> findAllAsync(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, R> context) protected final io.micronaut.core.type.Argument<?> findReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context, io.micronaut.core.type.Argument<?> defaultArg) protected final io.micronaut.core.type.Argument<?> getReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context) Returns the return type.Methods 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, validateNullArgumentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataInterceptor
intercept
-
Field Details
-
LIST_OF_OBJECTS
-
asyncOperations
-
asyncCriteriaOperations
-
-
Constructor Details
-
AbstractAsyncSpecificationInterceptor
Default constructor.- Parameters:
operations- The operations
-
-
Method Details
-
findAllAsync
protected final @NonNull CompletionStage<Iterable<Object>> findAllAsync(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, R> context) -
getReturnType
protected final io.micronaut.core.type.Argument<?> getReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context) Description copied from class:AbstractQueryInterceptorReturns the return type.- Overrides:
getReturnTypein classAbstractQueryInterceptor<T,R> - Parameters:
context- The context- Returns:
- the return type
-
findReturnType
protected final io.micronaut.core.type.Argument<?> findReturnType(io.micronaut.aop.MethodInvocationContext<?, ?> context, io.micronaut.core.type.Argument<?> defaultArg) -
convertNumberToReturnType
-