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 TypeMethodDescriptionbooleanReturnstrueifthisorder spec is equal toobjDeprecated.usegetPropertyPath()instead.Returns the relative path of the property.booleanIftruethe property is ordered ascending, otherwise descending.voidsetAscending(boolean ascending) Sets the new value for the ascending property.voidsetFunction(String name) Set a new value for a functionvoidSet a new value for the path
-
Constructor Details
-
OrderSpec
Deprecated.useOrderSpec(Path, boolean)instead.Creates a newOrderSpecforproperty.- Parameters:
property- the name of the property.ascending- iftruethe property is ordered ascending, otherwise descending.
-
OrderSpec
Creates a newOrderSpecforproperty.- Parameters:
property- the relative path of the property.ascending- iftruethe 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()Iftruethe property is ordered ascending, otherwise descending.- Returns:
truefor ascending;falsefor descending.
-
setAscending
public void setAscending(boolean ascending) Sets the new value for the ascending property.- Parameters:
ascending-truefor ascending;falsefor 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
Returnstrueifthisorder spec is equal toobj
-
OrderSpec(Path, boolean)instead.