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 SummaryConstructors Constructor Description QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr)Creates a newQueryManagerImplfor the passedsession
 - 
Method SummaryAll 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- 
QueryManagerImplpublic QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr) throws RepositoryException Creates a newQueryManagerImplfor the passedsession- Parameters:
- sessionContext- component context of the current session
- searchMgr- the search manager of this workspace.
- Throws:
- RepositoryException- if an error occurs while initializing the query manager.
 
 
- 
 - 
Method Detail- 
createQuerypublic Query createQuery(String statement, String language) throws RepositoryException - Specified by:
- createQueryin interface- QueryManager
- Throws:
- RepositoryException
 
 - 
getQuerypublic Query getQuery(Node node) throws RepositoryException - Specified by:
- getQueryin interface- QueryManager
- Throws:
- RepositoryException
 
 - 
getSupportedQueryLanguagespublic String[] getSupportedQueryLanguages() throws RepositoryException - Specified by:
- getSupportedQueryLanguagesin interface- QueryManager
- Throws:
- RepositoryException
 
 - 
getQOMFactorypublic QueryObjectModelFactory getQOMFactory() Returns aQueryObjectModelFactorywith which a JCR-JQOM query can be built programmatically.- Specified by:
- getQOMFactoryin interface- QueryManager
- Returns:
- a QueryObjectModelFactoryobject
- Since:
- JCR 2.0
 
 - 
getWeaklyReferringNodespublic 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.
 
 
- 
 
-