public class ProjectionOrder
extends org.hibernate.criterion.Order
Constructor and Description |
---|
ProjectionOrder(String aliasName) |
ProjectionOrder(String aliasName,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
public ProjectionOrder(String aliasName, boolean ascending)
aliasName
- The name of the alias we'd like to sortascending
- Whether we sort Ascending or descendingpublic ProjectionOrder(String aliasName)
aliasName
- The name of the alias we'd like to sort, default sorting
is ascendingpublic String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
toSqlString
in class org.hibernate.criterion.Order
org.hibernate.HibernateException
Copyright © 2015. All rights reserved.