Interface PaginatedQueryProvider<R>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.Optional<org.hibernate.query.Query<java.lang.Number>> getCountQuery​(org.hibernate.Session session)
      Returns count query to fetch the count from the underlying data source.
      default java.util.Optional<org.hibernate.query.Query<java.lang.Number>> getCountQuery​(org.hibernate.Session session, ParametersProvider provider)  
      org.hibernate.query.Query<R> getQuery​(org.hibernate.Session session, org.springframework.data.domain.Pageable pageable)
      Returns or creates query from underlying data source with given pagination info.
      default org.hibernate.query.Query<R> getQuery​(org.hibernate.Session session, org.springframework.data.domain.Pageable pageable, ParametersProvider provider)  
    • Method Detail

      • getQuery

        org.hibernate.query.Query<R> getQuery​(org.hibernate.Session session,
                                              org.springframework.data.domain.Pageable pageable)
        Returns or creates query from underlying data source with given pagination info.
        Parameters:
        session - active hibernate session.
        pageable - pagination info
        Returns:
        query
      • getCountQuery

        java.util.Optional<org.hibernate.query.Query<java.lang.Number>> getCountQuery​(org.hibernate.Session session)
        Returns count query to fetch the count from the underlying data source.
        Parameters:
        session - active hibernate session
        Returns:
        count query.
      • getQuery

        default org.hibernate.query.Query<R> getQuery​(org.hibernate.Session session,
                                                      org.springframework.data.domain.Pageable pageable,
                                                      ParametersProvider provider)
      • getCountQuery

        default java.util.Optional<org.hibernate.query.Query<java.lang.Number>> getCountQuery​(org.hibernate.Session session,
                                                                                              ParametersProvider provider)