public class QOMQueryFactory extends Object implements QueryFactory
QOMQueryFactory implements a query factory that creates QOM
 based queries.| Constructor and Description | 
|---|
| QOMQueryFactory(QueryObjectModelFactory qf,
               ValueFactory vf)Creates a new QOM base query factory. | 
| Modifier and Type | Method and Description | 
|---|---|
| Query | createQuery(String statement,
           String language)Creates a JCR query instance from the given  statementin the
 givenlanguage. | 
| List<String> | getSupportedLanguages() | 
public QOMQueryFactory(QueryObjectModelFactory qf, ValueFactory vf)
qf - the QOM factory.vf - the value factory.public List<String> getSupportedLanguages()
getSupportedLanguages in interface QueryFactorypublic Query createQuery(String statement, String language) throws InvalidQueryException, RepositoryException
statement in the
 given language.createQuery in interface QueryFactorystatement - the query statement.language - the language of the query statement.InvalidQueryException - if the statement is malformed or the
                               language is not supported.RepositoryException - if another error occurs.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.