Class QOMFormatter

  • All Implemented Interfaces:
    QueryObjectModelConstants

    public class QOMFormatter
    extends java.lang.Object
    implements QueryObjectModelConstants
    QOMFormatter implements a formatter that translates a query object model into a JCR_SQL2 string statement.
    • Method Detail

      • format

        public static java.lang.String format​(QueryObjectModel qom)
                                       throws 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:
        RepositoryException - if an error occurs while formatting the qom.