public interface QueryManagerWrapper
extends javax.jcr.query.QueryManager
| Modifier and Type | Method and Description |
|---|---|
QueryWrapper |
createDualQuery(String statement,
String language,
String sqlFallbackStatement)
Creates a new query by specifying the query
statement in xpath and
in SQL2. |
QueryWrapper |
createQuery(String statement,
String language)
Creates a new query by specifying the query
statement itself
and the language in which the query is stated. |
javax.jcr.query.qom.QueryObjectModelFactory |
getQOMFactory()
Returns a
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically. |
QueryWrapper |
getQuery(javax.jcr.Node node)
Retrieves an existing persistent query.
|
QueryWrapper createQuery(String statement, String language) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
statement itself
and the language in which the query is stated. The
language must be a string from among those returned by
QueryManager.getSupportedQueryLanguages().createQuery in interface javax.jcr.query.QueryManagerstatement - a Stringlanguage - a StringQuery objectjavax.jcr.query.InvalidQueryException - if the query statement is syntactically
invalid or the specified language is not supported.javax.jcr.RepositoryException - if another error occurs.QueryWrapper createDualQuery(String statement, String language, String sqlFallbackStatement) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
statement in xpath and
in SQL2. XPath will be used against jackrabbit where SQL2 can be used as a fallback statement
in other providers, which may not support xpath.
QueryManager.getSupportedQueryLanguages().statement - a Stringlanguage - a StringsqlFallbackStatement - a StringQuery objectjavax.jcr.query.InvalidQueryException - if the query statement is syntactically
invalid or the specified language is not supported.javax.jcr.RepositoryException - if another error occurs.javax.jcr.query.qom.QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically.getQOMFactory in interface javax.jcr.query.QueryManagerQueryObjectModelFactory objectQueryWrapper getQuery(javax.jcr.Node node) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
Persistent queries are created by first using QueryManager.createQuery(java.lang.String, java.lang.String) to create a Query object and then
calling Query.save to persist the query to a location in the
workspace.
getQuery in interface javax.jcr.query.QueryManagernode - a persisted query (that is, a node of type
nt:query).Query object.javax.jcr.query.InvalidQueryException - If node is not a valid
persisted query (that is, a node of type nt:query).javax.jcr.RepositoryException - if another error occursCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.