|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.query.OrderQueryNode.OrderSpec
public static final class OrderQueryNode.OrderSpec
Implements a single order specification. Contains a property name and whether it is ordered ascending or descending.
| Constructor Summary | |
|---|---|
OrderQueryNode.OrderSpec(org.apache.jackrabbit.spi.Name property,
boolean ascending)
Deprecated. use OrderSpec#OrderSpec(Path, boolean) instead. |
|
OrderQueryNode.OrderSpec(org.apache.jackrabbit.spi.Path property,
boolean ascending)
Creates a new OrderSpec for property. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if this order spec is equal
to obj |
org.apache.jackrabbit.spi.Name |
getProperty()
Deprecated. use getPropertyPath() instead. |
org.apache.jackrabbit.spi.Path |
getPropertyPath()
Returns the relative path of the property. |
boolean |
isAscending()
If true the property is ordered ascending, otherwise
descending. |
void |
setAscending(boolean ascending)
Sets the new value for the ascending property. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderQueryNode.OrderSpec(org.apache.jackrabbit.spi.Name property,
boolean ascending)
OrderSpec#OrderSpec(Path, boolean) instead.
OrderSpec for property.
property - the name of the property.ascending - if true the property is ordered
ascending, otherwise descending.
public OrderQueryNode.OrderSpec(org.apache.jackrabbit.spi.Path property,
boolean ascending)
OrderSpec for property.
property - the relative path of the property.ascending - if true the property is ordered
ascending, otherwise descending.| Method Detail |
|---|
public org.apache.jackrabbit.spi.Name getProperty()
getPropertyPath() instead.
public org.apache.jackrabbit.spi.Path getPropertyPath()
public boolean isAscending()
true the property is ordered ascending, otherwise
descending.
true for ascending; false for
descending.public void setAscending(boolean ascending)
ascending - true for ascending; false
for descending.public boolean equals(Object obj)
true if this order spec is equal
to obj
equals in class Objectobj - the reference object with which to compare.
true if this order spec is equal
to obj; false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||