public class CriteriaUtil extends Object
Constructor and Description |
---|
CriteriaUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addMatchingConditions(org.hibernate.Criteria criteria,
MatchingCondition... conds) |
static void |
addOrders(org.hibernate.Criteria criteria,
Order[] orders) |
static int |
getCount(org.hibernate.Criteria criteria) |
static List<?> |
getList(org.hibernate.Criteria criteria,
int startIndex,
int maxCount,
Order[] orders) |
static void |
setFirstAndMax(org.hibernate.Criteria criteria,
int firstResult,
int maxResults) |
public static int getCount(org.hibernate.Criteria criteria) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static List<?> getList(org.hibernate.Criteria criteria, int startIndex, int maxCount, Order[] orders) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static void setFirstAndMax(org.hibernate.Criteria criteria, int firstResult, int maxResults)
public static void addOrders(org.hibernate.Criteria criteria, Order[] orders)
public static void addMatchingConditions(org.hibernate.Criteria criteria, MatchingCondition... conds)