Class FindAllSpecificationInterceptor

  • All Implemented Interfaces:
    DataInterceptor<java.lang.Object,​java.lang.Object>

    @Internal
    public class FindAllSpecificationInterceptor
    extends FindAllSpecificationInterceptor
    Implementation of the unpaged version of findAll(Specification).
    Since:
    1.0
    Author:
    graemerocher
    • Constructor Detail

      • FindAllSpecificationInterceptor

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

      • addSort

        protected void addSort​(java.lang.Object sortObject,
                               javax.persistence.criteria.CriteriaQuery<java.lang.Object> query,
                               javax.persistence.criteria.Root<java.lang.Object> root,
                               javax.persistence.criteria.CriteriaBuilder criteriaBuilder)
        Description copied from class: FindAllSpecificationInterceptor
        Add sort to the query.
        Overrides:
        addSort in class FindAllSpecificationInterceptor
        Parameters:
        sortObject - The sort object
        query - The query
        root - The root
        criteriaBuilder - The criteria builder