Class AbstractSpecificationInterceptor<T,R>

java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
io.micronaut.data.jpa.repository.intercept.AbstractSpecificationInterceptor<T,R>
Type Parameters:
T - The declaring type
R - The return type
All Implemented Interfaces:
DataInterceptor<T,R>
Direct Known Subclasses:
CountSpecificationInterceptor, DeleteSpecificationInterceptor, FindAllSpecificationInterceptor, FindOneSpecificationInterceptor, FindPageSpecificationInterceptor

public abstract class AbstractSpecificationInterceptor<T,R> extends AbstractQueryInterceptor<T,R>
Abstract specification interceptor.
Since:
3.1
Author:
Denis Stepanov
  • Constructor Details

    • AbstractSpecificationInterceptor

      protected AbstractSpecificationInterceptor(RepositoryOperations operations)
      Default constructor.
      Parameters:
      operations - The operations
  • Method Details

    • getSpecification

      protected Specification getSpecification(io.micronaut.aop.MethodInvocationContext<?,?> context, boolean nullable)
      Find Specification in context.
      Parameters:
      context - The context
      nullable - whether specification can be null
      Returns:
      found specification
    • getOrders

      protected final List<jakarta.persistence.criteria.Order> getOrders(Sort sort, jakarta.persistence.criteria.Root<?> root, jakarta.persistence.criteria.CriteriaBuilder cb)