T
- The declaring typeR
- The return typepublic abstract class AbstractSpecificationInterceptor<T,R> extends AbstractQueryInterceptor<T,R>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSpecificationInterceptor.Type |
operations, preparedQueryResolver
Modifier | Constructor and Description |
---|---|
protected |
AbstractSpecificationInterceptor(RepositoryOperations operations)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected DeleteSpecification<java.lang.Object> |
getDeleteSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
Find
DeleteSpecification in context. |
protected QuerySpecification<java.lang.Object> |
getQuerySpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
Find
QuerySpecification in context. |
protected UpdateSpecification<java.lang.Object> |
getUpdateSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
Find
UpdateSpecification in context. |
protected <E,QR> PreparedQuery<E,QR> |
preparedQueryForCriteria(RepositoryMethodKey methodKey,
io.micronaut.aop.MethodInvocationContext<T,R> context,
AbstractSpecificationInterceptor.Type type) |
convertNumberArgumentIfNecessary, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intercept
protected AbstractSpecificationInterceptor(RepositoryOperations operations)
operations
- The operationsprotected final <E,QR> PreparedQuery<E,QR> preparedQueryForCriteria(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,R> context, AbstractSpecificationInterceptor.Type type)
@Nullable protected QuerySpecification<java.lang.Object> getQuerySpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
QuerySpecification
in context.context
- The context@Nullable protected DeleteSpecification<java.lang.Object> getDeleteSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
DeleteSpecification
in context.context
- The context@Nullable protected UpdateSpecification<java.lang.Object> getUpdateSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
UpdateSpecification
in context.context
- The context