public class CompoundQueryFactory extends Object implements QueryFactory
CompoundQueryFactory implements a query factory that consists of
 multiple other query factories.| Constructor and Description | 
|---|
| CompoundQueryFactory(List<QueryFactory> factories)Creates a compound query factory that consists of multiple other query
 factories. | 
| 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 CompoundQueryFactory(List<QueryFactory> factories)
factories - the query factories.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.