Class AbstractSpecificationInterceptor
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor<Object,Object>
io.micronaut.data.runtime.intercept.reactive.AbstractPublisherInterceptor
io.micronaut.data.hibernate.reactive.repository.jpa.intercept.AbstractSpecificationInterceptor
- All Implemented Interfaces:
DataInterceptor<Object,
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 inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor
reactiveOperations
Fields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, preparedQueryResolver
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSpecificationInterceptor
(RepositoryOperations operations) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final List<jakarta.persistence.criteria.Order>
getOrders
(Sort sort, jakarta.persistence.criteria.Root<?> root, jakarta.persistence.criteria.CriteriaBuilder cb) protected Specification<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
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getParameterValueMap, getRequiredEntity, getRequiredRootEntity, getReturnType, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArguments
-
Field Details
-
operations
-
-
Constructor Details
-
AbstractSpecificationInterceptor
Default constructor.- Parameters:
operations
- The operations
-
-
Method Details
-
getSpecification
protected Specification<Object> getSpecification(io.micronaut.aop.MethodInvocationContext<?, ?> context) FindSpecification
in context.- Parameters:
context
- The context- Returns:
- found specification
-
getOrders
-