Class QOMFormatter

  • All Implemented Interfaces:
    javax.jcr.query.qom.QueryObjectModelConstants

    public class QOMFormatter
    extends java.lang.Object
    implements javax.jcr.query.qom.QueryObjectModelConstants
    QOMFormatter implements a formatter that translates a query object model into a JCR_SQL2 string statement.
    • Field Summary

      • Fields inherited from interface javax.jcr.query.qom.QueryObjectModelConstants

        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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(javax.jcr.query.qom.QueryObjectModel qom)
      Formats the given qom as a JCR_SQL2 query statement.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • format

        public static java.lang.String format​(javax.jcr.query.qom.QueryObjectModel qom)
                                       throws javax.jcr.RepositoryException
        Formats the given qom as a JCR_SQL2 query statement.
        Parameters:
        qom - the query object model to translate.
        Returns:
        the JCR_SQL2 statement.
        Throws:
        javax.jcr.RepositoryException - if an error occurs while formatting the qom.