com.gisgraphy.hibernate.criterion
Class NativeSQLOrder
java.lang.Object
org.hibernate.criterion.Order
com.gisgraphy.hibernate.criterion.NativeSQLOrder
- All Implemented Interfaces:
- Serializable
public class NativeSQLOrder
- extends org.hibernate.criterion.Order
- Author:
- David Masclet An
hibernate order for SQL
- See Also:
- Serialized Form
Method Summary |
String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
|
Methods inherited from class org.hibernate.criterion.Order |
asc, desc, ignoreCase, toString |
NativeSQLOrder
public NativeSQLOrder(String sql,
boolean ascending)
- Parameters:
sql
- the sql codeascending
- wether we want to sort asc or desc
NativeSQLOrder
public NativeSQLOrder(String sql)
- Parameters:
sql
- the sql code Default sorting will be ascending
toSqlString
public String toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Overrides:
toSqlString
in class org.hibernate.criterion.Order
- Throws:
org.hibernate.HibernateException
Copyright © 2012. All Rights Reserved.