com.acsinet_solutions.cetia4.data
Class PagingUtils

java.lang.Object
  extended by com.acsinet_solutions.cetia4.data.PagingUtils

public final class PagingUtils
extends java.lang.Object

Utilities for paging on Hibernate Criteria and Query, and over normal lists.

Derechos Reservados

Author:
Santiago Arriaga

Constructor Summary
PagingUtils()
           
 
Method Summary
static void applyPaging(org.hibernate.Criteria criteria, PagedSearchFilter filter)
          Apply paging - if paging enabled - to the given criteria from the filter settings
static
<T> PagedResults<T>
applyPaging(java.util.List<T> list, PagedSearchFilter filter)
          Apply paging to the results in a list.
static void applyPaging(org.hibernate.Query query, PagedSearchFilter filter)
          Apply paging - if paging enabled - to the given criteria from the filter settings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingUtils

public PagingUtils()
Method Detail

applyPaging

public static void applyPaging(org.hibernate.Criteria criteria,
                               PagedSearchFilter filter)
Apply paging - if paging enabled - to the given criteria from the filter settings


applyPaging

public static void applyPaging(org.hibernate.Query query,
                               PagedSearchFilter filter)
Apply paging - if paging enabled - to the given criteria from the filter settings


applyPaging

public static <T> PagedResults<T> applyPaging(java.util.List<T> list,
                                              PagedSearchFilter filter)
Apply paging to the results in a list.