Class QueryManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.query.QueryManagerImpl
-
- All Implemented Interfaces:
QueryManager
public class QueryManagerImpl extends Object implements QueryManager
This class implements theQueryManager
interface.
-
-
Constructor Summary
Constructors Constructor Description QueryManagerImpl(Session session, ManagerProvider mgrProvider, ItemManager itemMgr, WorkspaceManager wspManager)
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()
Query
getQuery(Node node)
String[]
getSupportedQueryLanguages()
-
-
-
Constructor Detail
-
QueryManagerImpl
public QueryManagerImpl(Session session, ManagerProvider mgrProvider, ItemManager itemMgr, WorkspaceManager wspManager) throws RepositoryException
Creates a newQueryManagerImpl
for the passedSession
.- Parameters:
session
- the current session.mgrProvider
- the manager provider.itemMgr
- the item manager of the current session.wspManager
- the workspace manager.- Throws:
RepositoryException
- if an error occurs while initializing this query manager.
-
-
Method Detail
-
createQuery
public Query createQuery(String statement, String language) throws InvalidQueryException, RepositoryException
- Specified by:
createQuery
in interfaceQueryManager
- Throws:
InvalidQueryException
RepositoryException
- See Also:
QueryManager.createQuery(String, String)
-
getQuery
public Query getQuery(Node node) throws InvalidQueryException, RepositoryException
- Specified by:
getQuery
in interfaceQueryManager
- Throws:
InvalidQueryException
RepositoryException
- See Also:
QueryManager.getQuery(Node)
-
getSupportedQueryLanguages
public String[] getSupportedQueryLanguages() throws RepositoryException
- Specified by:
getSupportedQueryLanguages
in interfaceQueryManager
- Throws:
RepositoryException
- See Also:
QueryManager.getSupportedQueryLanguages()
-
getQOMFactory
public QueryObjectModelFactory getQOMFactory()
- Specified by:
getQOMFactory
in interfaceQueryManager
- See Also:
QueryManager.getQOMFactory()
-
-