net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion
Class Order
java.lang.Object
net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.BaseCriterion
net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.Order
- All Implemented Interfaces:
- Serializable, Criterion
public class Order
- extends BaseCriterion
- implements Criterion
Represents an order imposed upon a Criteria result set
- Author:
- Federico Grilli
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
Order(String nodeName,
boolean ascending)
Constructor for Order. |
Order
protected Order(String nodeName,
boolean ascending)
- Constructor for Order.
toXPathString
public String toXPathString(Criteria criteria)
throws JCRQueryException
- Render the XPath fragment
- Specified by:
toXPathString in interface Criterion
- Parameters:
criteria - input criteria
- Returns:
- converted XPATH expression
- Throws:
JCRQueryException - if there is a problem converting the input criteria to a valid xpath expression
asc
public static Order asc(String propertyName)
- Ascending order
- Parameters:
propertyName - jcr property name, e.g. "@title"
- Returns:
- Order
desc
public static Order desc(String propertyName)
- Descending order
- Parameters:
propertyName - jcr property name, e.g. "@title"
- Returns:
- Order
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2010 Openmind. All Rights Reserved.