Package org.apache.jackrabbit.core.query
Class CompoundQueryFactory
- java.lang.Object
- 
- org.apache.jackrabbit.core.query.CompoundQueryFactory
 
- 
- All Implemented Interfaces:
- QueryFactory
 
 public class CompoundQueryFactory extends Object implements QueryFactory CompoundQueryFactoryimplements a query factory that consists of multiple other query factories.
- 
- 
Constructor SummaryConstructors Constructor Description CompoundQueryFactory(List<QueryFactory> factories)Creates a compound query factory that consists of multiple other query factories.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerycreateQuery(String statement, String language)Creates a JCR query instance from the givenstatementin the givenlanguage.List<String>getSupportedLanguages()
 
- 
- 
- 
Constructor Detail- 
CompoundQueryFactorypublic CompoundQueryFactory(List<QueryFactory> factories) Creates a compound query factory that consists of multiple other query factories.- Parameters:
- factories- the query factories.
 
 
- 
 - 
Method Detail- 
getSupportedLanguagespublic List<String> getSupportedLanguages() - Specified by:
- getSupportedLanguagesin interface- QueryFactory
- Returns:
- supported query languages by this factory.
 
 - 
createQuerypublic Query createQuery(String statement, String language) throws InvalidQueryException, RepositoryException Creates a JCR query instance from the givenstatementin the givenlanguage.- Specified by:
- createQueryin interface- QueryFactory
- Parameters:
- statement- the query statement.
- language- the language of the query statement.
- Returns:
- the JCR query instance representing the query.
- Throws:
- InvalidQueryException- if the statement is malformed or the language is not supported.
- RepositoryException- if another error occurs.
 
 
- 
 
-