|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicCloneable
org.objectweb.medor.query.lib.BasicOrderField
Constructor Summary | |
BasicOrderField()
|
|
BasicOrderField(QueryTreeField field)
Constructs a BasicOrderField from a QueryTreeField. |
|
BasicOrderField(QueryTreeField field,
boolean desc)
Constructs a BasciOrderField from a QueryTreeField, with indication of ordering. |
Method Summary | |
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
boolean |
getDesc()
Returns whether the order is descendant (true) or ascendant (false). |
QueryTreeField |
getField()
Obtains the field by which to order. |
void |
setDesc(boolean desc)
Sets the descendant order. |
void |
setField(QueryTreeField field)
Sets the field of the clause part. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicOrderField()
public BasicOrderField(QueryTreeField field)
The default value for ordering is ascendant.
field
- the QueryTreeField on which to build the ordering.public BasicOrderField(QueryTreeField field, boolean desc)
field
- the QueryTreeField on which to build the orderingdesc
- the boolean indicating whether the ordering should be
descendant (true) or ascendant (false).Method Detail |
public java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void setField(QueryTreeField field)
OrderField
setField
in interface OrderField
field
- the field by which to order.public QueryTreeField getField()
OrderField
getField
in interface OrderField
public void setDesc(boolean desc)
OrderField
The default value is false.
setDesc
in interface OrderField
desc
- indicates whether the order is descendant (true) or
ascendant (false).public boolean getDesc()
OrderField
getDesc
in interface OrderField
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |