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 theQueryManager
interface.
-
-
Constructor Summary
Constructors Constructor Description QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr)
Creates a newQueryManagerImpl
for the passedsession
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
createQuery(String statement, String language)
QueryObjectModelFactory
getQOMFactory()
Returns aQueryObjectModelFactory
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 thenode
by weak references.
-
-
-
Constructor Detail
-
QueryManagerImpl
public QueryManagerImpl(SessionContext sessionContext, SearchManager searchMgr) throws RepositoryException
Creates a newQueryManagerImpl
for 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:
createQuery
in interfaceQueryManager
- Throws:
RepositoryException
-
getQuery
public Query getQuery(Node node) throws RepositoryException
- Specified by:
getQuery
in interfaceQueryManager
- Throws:
RepositoryException
-
getSupportedQueryLanguages
public String[] getSupportedQueryLanguages() throws RepositoryException
- Specified by:
getSupportedQueryLanguages
in interfaceQueryManager
- Throws:
RepositoryException
-
getQOMFactory
public QueryObjectModelFactory getQOMFactory()
Returns aQueryObjectModelFactory
with which a JCR-JQOM query can be built programmatically.- Specified by:
getQOMFactory
in interfaceQueryManager
- Returns:
- a
QueryObjectModelFactory
object - Since:
- JCR 2.0
-
getWeaklyReferringNodes
public Iterable<Node> getWeaklyReferringNodes(Node node) throws RepositoryException
Returns the ids of the nodes that refer to thenode
by weak references.- Parameters:
node
- the target node.- Returns:
- the referring nodes.
- Throws:
RepositoryException
- if an error occurs.
-
-