public class QueryManagerImpl extends Object implements javax.jcr.query.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 |
---|---|
javax.jcr.query.Query |
createQuery(String statement,
String language) |
javax.jcr.query.qom.QueryObjectModelFactory |
getQOMFactory()
Returns a
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically. |
javax.jcr.query.Query |
getQuery(javax.jcr.Node node) |
String[] |
getSupportedQueryLanguages() |
Iterable<javax.jcr.Node> |
getWeaklyReferringNodes(javax.jcr.Node node)
Returns the ids of the nodes that refer to the
node by weak
references. |
public QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr) throws javax.jcr.RepositoryException
QueryManagerImpl
for the passed
session
sessionContext
- component context of the current sessionsearchMgr
- the search manager of this workspace.javax.jcr.RepositoryException
- if an error occurs while initializing the
query manager.public javax.jcr.query.Query createQuery(String statement, String language) throws javax.jcr.RepositoryException
createQuery
in interface javax.jcr.query.QueryManager
javax.jcr.RepositoryException
public javax.jcr.query.Query getQuery(javax.jcr.Node node) throws javax.jcr.RepositoryException
getQuery
in interface javax.jcr.query.QueryManager
javax.jcr.RepositoryException
public String[] getSupportedQueryLanguages() throws javax.jcr.RepositoryException
getSupportedQueryLanguages
in interface javax.jcr.query.QueryManager
javax.jcr.RepositoryException
public javax.jcr.query.qom.QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory
with which a JCR-JQOM
query can be built programmatically.getQOMFactory
in interface javax.jcr.query.QueryManager
QueryObjectModelFactory
objectpublic Iterable<javax.jcr.Node> getWeaklyReferringNodes(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
by weak
references.node
- the target node.javax.jcr.RepositoryException
- if an error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.