Class OrderQueryNode.OrderSpec
java.lang.Object
org.apache.jackrabbit.spi.commons.query.OrderQueryNode.OrderSpec
- Enclosing class:
OrderQueryNode
Implements a single order specification. Contains a property name
and whether it is ordered ascending or descending.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
ifthis
order spec is equal toobj
Deprecated.usegetPropertyPath()
instead.Returns the relative path of the property.boolean
Iftrue
the property is ordered ascending, otherwise descending.void
setAscending
(boolean ascending) Sets the new value for the ascending property.void
setFunction
(String name) Set a new value for a functionvoid
Set a new value for the path
-
Constructor Details
-
OrderSpec
Deprecated.useOrderSpec(Path, boolean)
instead.Creates a newOrderSpec
forproperty
.- Parameters:
property
- the name of the property.ascending
- iftrue
the property is ordered ascending, otherwise descending.
-
OrderSpec
Creates a newOrderSpec
forproperty
.- Parameters:
property
- the relative path of the property.ascending
- iftrue
the property is ordered ascending, otherwise descending.
-
-
Method Details
-
getProperty
Deprecated.usegetPropertyPath()
instead.Returns the name of the property.- Returns:
- the name of the property.
-
getPropertyPath
Returns the relative path of the property.- Returns:
- the relative path of the property.
-
isAscending
public boolean isAscending()Iftrue
the property is ordered ascending, otherwise descending.- Returns:
true
for ascending;false
for descending.
-
setAscending
public void setAscending(boolean ascending) Sets the new value for the ascending property.- Parameters:
ascending
-true
for ascending;false
for descending.
-
setPath
Set a new value for the path- Parameters:
path
- a path
-
setFunction
Set a new value for a function- Parameters:
name
- a function name
-
getFunction
- Returns:
- name of the function
-
equals
Returnstrue
ifthis
order spec is equal toobj
-
OrderSpec(Path, boolean)
instead.