public class CriteriaBuilder
extends java.lang.Object
| Constructor and Description |
|---|
CriteriaBuilder(org.hibernate.Session session,
java.lang.Class<?> c) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCriterion(org.hibernate.criterion.Criterion criterion)
Add a
Criterion to the internal Criteria. |
void |
addSort(org.springframework.data.domain.Sort sort)
Specifically add
Sort to the Criteria to determine
the order of query results. |
org.hibernate.Criteria |
getCriteria()
Get the internal
Criteria |
public CriteriaBuilder(org.hibernate.Session session,
java.lang.Class<?> c)
public void addCriterion(org.hibernate.criterion.Criterion criterion)
Criterion to the internal Criteria.criterion - the criterion to be added.public void addSort(org.springframework.data.domain.Sort sort)
Sort to the Criteria to determine
the order of query results.sort - the sort that is going to be added to the criteriapublic org.hibernate.Criteria getCriteria()
Criteria