Package org.apache.jackrabbit.core.query
Class QueryManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.core.query.QueryManagerImpl
-
- All Implemented Interfaces:
QueryManager
public class QueryManagerImpl extends Object implements QueryManager
This class implements theQueryManagerinterface.
-
-
Constructor Summary
Constructors Constructor Description QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr)Creates a newQueryManagerImplfor the passedsession
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerycreateQuery(String statement, String language)QueryObjectModelFactorygetQOMFactory()Returns aQueryObjectModelFactorywith which a JCR-JQOM query can be built programmatically.QuerygetQuery(Node node)String[]getSupportedQueryLanguages()Iterable<Node>getWeaklyReferringNodes(Node node)Returns the ids of the nodes that refer to thenodeby weak references.
-
-
-
Constructor Detail
-
QueryManagerImpl
public QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr) throws RepositoryException
Creates a newQueryManagerImplfor the passedsession- Parameters:
sessionContext- component context of the current sessionsearchMgr- the search manager of this workspace.- Throws:
RepositoryException- if an error occurs while initializing the query manager.
-
-
Method Detail
-
createQuery
public Query createQuery(String statement, String language) throws RepositoryException
- Specified by:
createQueryin interfaceQueryManager- Throws:
RepositoryException
-
getQuery
public Query getQuery(Node node) throws RepositoryException
- Specified by:
getQueryin interfaceQueryManager- Throws:
RepositoryException
-
getSupportedQueryLanguages
public String[] getSupportedQueryLanguages() throws RepositoryException
- Specified by:
getSupportedQueryLanguagesin interfaceQueryManager- Throws:
RepositoryException
-
getQOMFactory
public QueryObjectModelFactory getQOMFactory()
Returns aQueryObjectModelFactorywith which a JCR-JQOM query can be built programmatically.- Specified by:
getQOMFactoryin interfaceQueryManager- Returns:
- a
QueryObjectModelFactoryobject - Since:
- JCR 2.0
-
getWeaklyReferringNodes
public Iterable<Node> getWeaklyReferringNodes(Node node) throws RepositoryException
Returns the ids of the nodes that refer to thenodeby weak references.- Parameters:
node- the target node.- Returns:
- the referring nodes.
- Throws:
RepositoryException- if an error occurs.
-
-