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
FieldsFields inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor
reactiveOperationsFields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpecificationInterceptor(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) FindSpecificationin context.Methods inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractPublisherInterceptor
intercept, interceptPublisherMethods inherited from class io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor
countMethods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
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 Details
-
operations
-
-
Constructor Details
-
AbstractSpecificationInterceptor
Default constructor.- Parameters:
operations- The operations
-
-
Method Details
-
getSpecification
protected Specification<Object> getSpecification(io.micronaut.aop.MethodInvocationContext<?, ?> context) FindSpecificationin context.- Parameters:
context- The context- Returns:
- found specification
-
getOrders
-