public class QOMFormatter extends Object implements QueryObjectModelConstants
QOMFormatter
implements a formatter that translates a query
object model into a JCR_SQL2 string statement.JCR_JOIN_TYPE_INNER, JCR_JOIN_TYPE_LEFT_OUTER, JCR_JOIN_TYPE_RIGHT_OUTER, JCR_OPERATOR_EQUAL_TO, JCR_OPERATOR_GREATER_THAN, JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO, JCR_OPERATOR_LESS_THAN, JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO, JCR_OPERATOR_LIKE, JCR_OPERATOR_NOT_EQUAL_TO, JCR_ORDER_ASCENDING, JCR_ORDER_DESCENDING
Modifier and Type | Method and Description |
---|---|
static String |
format(QueryObjectModel qom)
Formats the given
qom as a JCR_SQL2 query statement. |
public static String format(QueryObjectModel qom) throws RepositoryException
qom
as a JCR_SQL2 query statement.qom
- the query object model to translate.RepositoryException
- if an error occurs while formatting the qom.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.