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 |
---|---|
javax.jcr.query.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 javax.jcr.query.Query createQuery(String statement, String language) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
statement
in the
given language
.createQuery
in interface QueryFactory
statement
- the query statement.language
- the language of the query statement.javax.jcr.query.InvalidQueryException
- if the statement is malformed or the
language is not supported.javax.jcr.RepositoryException
- if another error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.