public class Order extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
Order(String propertyName,
boolean ascending)
Constructor for Order.
|
Modifier and Type | Method and Description |
---|---|
static Order |
asc(String propertyName)
Ascending order
|
static Order |
desc(String propertyName)
Descending order
|
String |
getPropertyName() |
Order |
ignoreCase() |
boolean |
isAscending() |
boolean |
isIgnoreCase() |
Order |
nulls(NullPrecedence nullPrecedence) |
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
toString() |
protected Order(String propertyName, boolean ascending)
public Order ignoreCase()
public Order nulls(NullPrecedence nullPrecedence)
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
HibernateException
public String getPropertyName()
public boolean isAscending()
public boolean isIgnoreCase()
public static Order asc(String propertyName)
propertyName
- Copyright © 2018 JBoss by Red Hat. All rights reserved.