public class QueryManagerImpl extends Object implements QueryManager
QueryManager interface.| Constructor and Description |
|---|
QueryManagerImpl(SessionContext sessionContext,
SearchManager searchMgr)
Creates a new
QueryManagerImpl for the passed
session |
| Modifier and Type | Method and Description |
|---|---|
Query |
createQuery(String statement,
String language) |
QueryObjectModelFactory |
getQOMFactory()
Returns a
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically. |
Query |
getQuery(Node node) |
String[] |
getSupportedQueryLanguages() |
Iterable<Node> |
getWeaklyReferringNodes(Node node)
Returns the ids of the nodes that refer to the
node by weak
references. |
public QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr) throws RepositoryException
QueryManagerImpl for the passed
sessionsessionContext - component context of the current sessionsearchMgr - the search manager of this workspace.RepositoryException - if an error occurs while initializing the
query manager.public Query createQuery(String statement, String language) throws RepositoryException
createQuery in interface QueryManagerRepositoryExceptionpublic Query getQuery(Node node) throws RepositoryException
getQuery in interface QueryManagerRepositoryExceptionpublic String[] getSupportedQueryLanguages() throws RepositoryException
getSupportedQueryLanguages in interface QueryManagerRepositoryExceptionpublic QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically.getQOMFactory in interface QueryManagerQueryObjectModelFactory objectpublic Iterable<Node> getWeaklyReferringNodes(Node node) throws RepositoryException
node by weak
references.node - the target node.RepositoryException - if an error occurs.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.