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
session
sessionContext
- 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 QueryManager
RepositoryException
public Query getQuery(Node node) throws RepositoryException
getQuery
in interface QueryManager
RepositoryException
public String[] getSupportedQueryLanguages() throws RepositoryException
getSupportedQueryLanguages
in interface QueryManager
RepositoryException
public QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory
with which a JCR-JQOM
query can be built programmatically.getQOMFactory
in interface QueryManager
QueryObjectModelFactory
objectpublic Iterable<Node> getWeaklyReferringNodes(Node node) throws RepositoryException
node
by weak
references.node
- the target node.RepositoryException
- if an error occurs.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.