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()
Should this ordering ignore case? Has no effect on non-character properties.
|
boolean |
isAscending() |
boolean |
isIgnoreCase() |
Order |
nulls(NullPrecedence nullPrecedence)
Defines precedence for nulls.
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
toString() |
protected Order(String propertyName, boolean ascending)
asc(java.lang.String)
,
desc(java.lang.String)
public static Order asc(String propertyName)
propertyName
- The property to order onpublic static Order desc(String propertyName)
propertyName
- The property to order onpublic Order ignoreCase()
this
, for method chainingpublic Order nulls(NullPrecedence nullPrecedence)
nullPrecedence
- The null precedence to usethis
, for method chainingpublic String getPropertyName()
public boolean isAscending()
public boolean isIgnoreCase()
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
criteria
- The criteriacriteriaQuery
- The overall queryCopyright © 2017 JBoss by Red Hat. All rights reserved.