Class FindAllSpecificationInterceptor

All Implemented Interfaces:
DataInterceptor<Object,Object>
Direct Known Subclasses:
FindAllSpecificationInterceptor

@Internal public class FindAllSpecificationInterceptor extends AbstractSpecificationInterceptor<Object,Object>
Implementation of the unpaged version of findAll(Specification).
Since:
3.1
Author:
graemerocher, Denis Stepanov
  • Constructor Details

    • FindAllSpecificationInterceptor

      protected FindAllSpecificationInterceptor(@NonNull @NonNull RepositoryOperations operations)
      Default constructor.
      Parameters:
      operations - The operations
  • Method Details

    • intercept

      public Object intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object,Object> context)
      Description copied from interface: DataInterceptor
      Intercepts a data method execution.
      Parameters:
      methodKey - The method key
      context - The context
      Returns:
      The result
    • addSort

      protected void addSort(Object sortObject, jakarta.persistence.criteria.CriteriaQuery<Object> query, jakarta.persistence.criteria.Root<Object> root, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
      Add sort to the query.
      Parameters:
      sortObject - The sort object
      query - The query
      root - The root
      criteriaBuilder - The criteria builder