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
statement in the
given language . |
List<String> |
getSupportedLanguages() |
public QOMQueryFactory(QueryObjectModelFactory qf, ValueFactory vf)
qf
- the QOM factory.vf
- the value factory.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–2024 The Apache Software Foundation. All rights reserved.