public class Order extends Object implements Cloneable, Serializable
selects
Select.add(Order)
,
Select.isOrdered(String)
,
Serialized FormConstructor and Description |
---|
Order(String attribute)
Creates an order criteria based on the attribute specified by the given attribute name and with ascending ordering.
|
Order(String attribute,
boolean ascending)
Creates an order criteria based on the attribute specified by the given attribute name and with ordering specified by the given ascending parameter.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute()
Returns the name of the attribute this order criteria is related to.
|
boolean |
isAscending()
Indicates whether the ordering of this order criteria is ascending or not.
|
public Order(@NotNull String attribute)
attribute
- the name of the attribute the created order criteria should be related topublic Order(@NotNull String attribute, boolean ascending)
attribute
- the name of the attribute the created order criteria should be related toascending
- specifies the ordering of the created order criteria, use true
for ascending ordering, false
for descendingpublic String getAttribute()
public boolean isAscending()
true
if the ordering of this order criteria is ascending, false
for descending orderingCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500