Class QOMFormatter

java.lang.Object
org.apache.jackrabbit.commons.query.sql2.QOMFormatter
All Implemented Interfaces:
QueryObjectModelConstants

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

    • format

      public static 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.