org.objectweb.medor.query.lib
Class BasicOrderField
BasicCloneable
org.objectweb.medor.query.lib.BasicOrderField
- Cloneable, OrderField
public class BasicOrderField
extends BasicCloneable
- Alexandre Lefebvre
BasicOrderField
public BasicOrderField()
BasicOrderField
public BasicOrderField(QueryTreeField field)
Constructs a BasicOrderField from a QueryTreeField.
The default value for ordering is ascendant.
field
- the QueryTreeField on which to build the ordering.
BasicOrderField
public BasicOrderField(QueryTreeField field,
boolean desc)
Constructs a BasciOrderField from a QueryTreeField, with indication
of ordering.
field
- the QueryTreeField on which to build the orderingdesc
- the boolean indicating whether the ordering should be
descendant (true) or ascendant (false).
clone
public Object clone(Object clone,
Map obj2clone)
throws CloneNotSupportedException
getDesc
public boolean getDesc()
Returns whether the order is descendant (true) or ascendant (false).
- getDesc in interface OrderField
- true if the order is descendant, false if the order is ascendant.
setDesc
public void setDesc(boolean desc)
Sets the descendant order.
The default value is false.
- setDesc in interface OrderField
desc
- indicates whether the order is descendant (true) or
ascendant (false).