T
- the return type of elementsjavax.persistence.Query
, javax.persistence.TypedQuery<T>
public interface PaginatedTypedQuery<T>
extends javax.persistence.TypedQuery<T>
Modifier and Type | Method | Description |
---|---|---|
List<T> |
getPageResultList() |
Returns the result list of the page without executing a count query.
|
PagedList<T> |
getResultList() |
Returns a
PagedList containing the result list of the requested page and optionally the total count depending on PaginatedCriteriaBuilder.withCountQuery(boolean) . |
long |
getTotalCount() |
Executes a query to calculate the total count of elements and returns that count.
|
long getTotalCount()
List<T> getPageResultList()
PagedList<T> getResultList()
PagedList
containing the result list of the requested page and optionally the total count depending on PaginatedCriteriaBuilder.withCountQuery(boolean)
.getResultList
in interface javax.persistence.Query
getResultList
in interface javax.persistence.TypedQuery<T>
Copyright © 2014–2018 Blazebit. All rights reserved.