Class AbstractSpecificationInterceptor
- java.lang.Object
-
- io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
-
- io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor<java.lang.Object,java.lang.Object>
-
- io.micronaut.data.runtime.intercept.reactive.AbstractPublisherInterceptor
-
- io.micronaut.data.hibernate.reactive.repository.jpa.intercept.AbstractSpecificationInterceptor
-
- All Implemented Interfaces:
DataInterceptor<java.lang.Object,java.lang.Object>
- Direct Known Subclasses:
ReactiveCountSpecificationInterceptor
,ReactiveFindAllSpecificationInterceptor
,ReactiveFindOneSpecificationInterceptor
,ReactiveFindPageSpecificationInterceptor
@Internal public abstract class AbstractSpecificationInterceptor extends AbstractPublisherInterceptor
Abstract specification interceptor.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
-
Field Summary
Fields Modifier and Type Field Description protected HibernateReactorRepositoryOperations
operations
-
Fields inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor
reactiveOperations
-
Fields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
preparedQueryResolver
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSpecificationInterceptor(RepositoryOperations operations)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<javax.persistence.criteria.Order>
getOrders(Sort sort, javax.persistence.criteria.Root<?> root, javax.persistence.criteria.CriteriaBuilder cb)
protected Specification<java.lang.Object>
getSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
FindSpecification
in context.-
Methods inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractPublisherInterceptor
intercept, interceptPublisher
-
Methods inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor
count
-
Methods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
convertNumberArgumentIfNecessary, 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
-
-
-
-
Field Detail
-
operations
protected final HibernateReactorRepositoryOperations operations
-
-
Constructor Detail
-
AbstractSpecificationInterceptor
protected AbstractSpecificationInterceptor(RepositoryOperations operations)
Default constructor.- Parameters:
operations
- The operations
-
-
Method Detail
-
getSpecification
protected Specification<java.lang.Object> getSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context)
FindSpecification
in context.- Parameters:
context
- The context- Returns:
- found specification
-
getOrders
protected final java.util.List<javax.persistence.criteria.Order> getOrders(Sort sort, javax.persistence.criteria.Root<?> root, javax.persistence.criteria.CriteriaBuilder cb)
-
-