Package de.espirit.or.query
Class Order
java.lang.Object
de.espirit.or.query.Order
- All Implemented Interfaces:
Serializable,Cloneable
Parameter class for order criteria used for or
selects- Since:
- 4.0.17
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an order criteria based on the attribute specified by the given attribute name and with ascending ordering.Creates an order criteria based on the attribute specified by the given attribute name and with ordering specified by the given ascending parameter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the attribute this order criteria is related to.booleanIndicates whether the ordering of this order criteria is ascending or not.
-
Constructor Details
-
Order
Creates an order criteria based on the attribute specified by the given attribute name and with ascending ordering.- Parameters:
attribute- the name of the attribute the created order criteria should be related to- Since:
- 4.0.17
-
Order
Creates an order criteria based on the attribute specified by the given attribute name and with ordering specified by the given ascending parameter.- Parameters:
attribute- the name of the attribute the created order criteria should be related toascending- specifies the ordering of the created order criteria, usetruefor ascending ordering,falsefor descending- Since:
- 4.0.17
-
-
Method Details
-
getAttribute
Returns the name of the attribute this order criteria is related to.- Returns:
- the name of the attribute this order criteria is based on.
- Since:
- 4.0.17
-
isAscending
public boolean isAscending()Indicates whether the ordering of this order criteria is ascending or not.- Returns:
trueif the ordering of this order criteria is ascending,falsefor descending ordering- Since:
- 4.0.17
-