Copyright© 2008-2026 Sitevision AB, all rights reserved.
public interface QueryManager
Sitevision note: Unsupported operation
| Modifier and Type | Method and Description |
|---|---|
Query |
createQuery(String statement,
String language)
Creates a new query by specifying the query
statement itself
and the language in which the query is stated. |
QueryObjectModelFactory |
getQOMFactory()
Returns a
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically. |
Query |
getQuery(Node node)
Retrieves an existing persistent query.
|
String[] |
getSupportedQueryLanguages()
Returns an array of strings representing all query languages supported by
this repository.
|
Query createQuery(String statement, String language) throws InvalidQueryException, 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().statement - a Stringlanguage - a StringQuery objectInvalidQueryException - if the query statement is syntactically
invalid or the specified language is not supported.RepositoryException - if another error occurs.QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically.QueryObjectModelFactory objectQuery getQuery(Node node) throws InvalidQueryException, RepositoryException
Persistent queries are created by first using 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.
node - a persisted query (that is, a node of type
nt:query).Query object.InvalidQueryException - If node is not a valid
persisted query (that is, a node of type nt:query).RepositoryException - if another error occursString[] getSupportedQueryLanguages() throws RepositoryException
Query.JCR_SQL2 and Query.JCR_JQOM}. An
implementation may also support other languages, including the deprecated
languages of JCR 1.0: Query.XPATH and Query.SQL.RepositoryException - if an error occurs.Sitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2026 Sitevision AB, all rights reserved.