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
statement in the
given language . |
List<String> |
getSupportedLanguages() |
public CompoundQueryFactory(List<QueryFactory> factories)
factories
- the query factories.public List<String> getSupportedLanguages()
getSupportedLanguages
in interface QueryFactory
public Query createQuery(String statement, String language) throws InvalidQueryException, RepositoryException
statement
in the
given language
.createQuery
in interface QueryFactory
statement
- 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.