org.objectweb.medor.query.api
Interface OrderField
- Cloneable
- BasicOrderField
public interface OrderField
extends Cloneable
Represents an element of an "order by" clause, qualified by a field and
a boolean indicating whether the order is descendant (false, default)
or ascendant.
- Alexandre Lefebvre
getDesc
public boolean getDesc()
Returns whether the order is descendant (true) or ascendant (false).
- true if the order is descendant, false if the order is ascendant.
getField
public QueryTreeField getField()
Obtains the field by which to order.
- the field by which to order.
setDesc
public void setDesc(boolean desc)
Sets the descendant order.
The default value is false.
desc
- indicates whether the order is descendant (true) or
ascendant (false).
setField
public void setField(QueryTreeField field)
Sets the field of the clause part.
field
- the field by which to order.