Class AbstractSpecificationInterceptor<T,R>
- java.lang.Object
- 
- io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
- 
- io.micronaut.data.runtime.intercept.criteria.AbstractSpecificationInterceptor<T,R>
 
 
- 
- Type Parameters:
- T- The declaring type
- R- The return type
 - All Implemented Interfaces:
- DataInterceptor<T,R>
 - Direct Known Subclasses:
- AbstractAsyncSpecificationInterceptor,- AbstractReactiveSpecificationInterceptor,- CountSpecificationInterceptor,- DeleteAllSpecificationInterceptor,- FindAllSpecificationInterceptor,- FindOneSpecificationInterceptor,- FindPageSpecificationInterceptor,- UpdateAllSpecificationInterceptor
 
 @Internal public abstract class AbstractSpecificationInterceptor<T,R> extends AbstractQueryInterceptor<T,R> Abstract specification interceptor.- Since:
- 3.2
- Author:
- Denis Stepanov
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classAbstractSpecificationInterceptor.Type
 - 
Field Summary- 
Fields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptoroperations, preparedQueryResolver
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractSpecificationInterceptor(RepositoryOperations operations)Default constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <K> CriteriaDeleteBuilder<K>getCriteriaDeleteBuilder(io.micronaut.aop.MethodInvocationContext<?,?> context)FindCriteriaDeleteBuilderorQuerySpecificationin context.protected <K> CriteriaQueryBuilder<K>getCriteriaQueryBuilder(io.micronaut.aop.MethodInvocationContext<?,?> context, java.util.Set<JoinPath> joinPaths)FindCriteriaQueryBuilderorQuerySpecificationin context.protected <K> CriteriaUpdateBuilder<K>getCriteriaUpdateBuilder(io.micronaut.aop.MethodInvocationContext<?,?> context)FindCriteriaUpdateBuilderorQuerySpecificationin context.protected <K> DeleteSpecification<K>getDeleteSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)FindDeleteSpecificationin context.protected <K> QuerySpecification<K>getQuerySpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)FindQuerySpecificationin context.protected <K> UpdateSpecification<K>getUpdateSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)FindUpdateSpecificationin context.protected <E,QR>
 PreparedQuery<E,QR>preparedQueryForCriteria(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,R> context, AbstractSpecificationInterceptor.Type type)- 
Methods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptorconvertNumberArgumentIfNecessary, convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getParameterValueMap, getRequiredEntity, getRequiredRootEntity, getReturnType, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArguments
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface io.micronaut.data.intercept.DataInterceptorintercept
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractSpecificationInterceptorprotected AbstractSpecificationInterceptor(RepositoryOperations operations) Default constructor.- Parameters:
- operations- The operations
 
 
- 
 - 
Method Detail- 
preparedQueryForCriteria@NonNull protected final <E,QR> PreparedQuery<E,QR> preparedQueryForCriteria(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,R> context, AbstractSpecificationInterceptor.Type type) 
 - 
getQuerySpecification@Nullable protected <K> QuerySpecification<K> getQuerySpecification(io.micronaut.aop.MethodInvocationContext<?,?> context) FindQuerySpecificationin context.- Type Parameters:
- K- the specification entity root type
- Parameters:
- context- The context
- Returns:
- found specification
 
 - 
getCriteriaQueryBuilder@NonNull protected <K> CriteriaQueryBuilder<K> getCriteriaQueryBuilder(io.micronaut.aop.MethodInvocationContext<?,?> context, java.util.Set<JoinPath> joinPaths) FindCriteriaQueryBuilderorQuerySpecificationin context.- Type Parameters:
- K- the result type
- Parameters:
- context- The context
- joinPaths- The join fetch paths
- Returns:
- found specification
 
 - 
getDeleteSpecification@Nullable protected <K> DeleteSpecification<K> getDeleteSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context) FindDeleteSpecificationin context.- Type Parameters:
- K- the specification entity root type
- Parameters:
- context- The context
- Returns:
- found specification
 
 - 
getCriteriaDeleteBuilder@NonNull protected <K> CriteriaDeleteBuilder<K> getCriteriaDeleteBuilder(io.micronaut.aop.MethodInvocationContext<?,?> context) FindCriteriaDeleteBuilderorQuerySpecificationin context.- Type Parameters:
- K- the result type
- Parameters:
- context- The context
- Returns:
- found specification
 
 - 
getUpdateSpecification@Nullable protected <K> UpdateSpecification<K> getUpdateSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context) FindUpdateSpecificationin context.- Type Parameters:
- K- the specification entity root type
- Parameters:
- context- The context
- Returns:
- found specification
 
 - 
getCriteriaUpdateBuilder@NonNull protected <K> CriteriaUpdateBuilder<K> getCriteriaUpdateBuilder(io.micronaut.aop.MethodInvocationContext<?,?> context) FindCriteriaUpdateBuilderorQuerySpecificationin context.- Type Parameters:
- K- the result type
- Parameters:
- context- The context
- Returns:
- found specification
 
 
- 
 
-