public class QueryManagerImpl extends Object implements javax.jcr.query.QueryManager
QueryManager
interface.Constructor and Description |
---|
QueryManagerImpl(javax.jcr.Session session,
ManagerProvider mgrProvider,
ItemManager itemMgr,
WorkspaceManager wspManager)
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() |
javax.jcr.query.Query |
getQuery(javax.jcr.Node node) |
String[] |
getSupportedQueryLanguages() |
public QueryManagerImpl(javax.jcr.Session session, ManagerProvider mgrProvider, ItemManager itemMgr, WorkspaceManager wspManager) throws javax.jcr.RepositoryException
QueryManagerImpl
for the passed
Session
.session
- the current session.mgrProvider
- the manager provider.itemMgr
- the item manager of the current session.wspManager
- the workspace manager.javax.jcr.RepositoryException
- if an error occurs while initializing this
query manager.public javax.jcr.query.Query createQuery(String statement, String language) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
createQuery
in interface javax.jcr.query.QueryManager
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
QueryManager.createQuery(String, String)
public javax.jcr.query.Query getQuery(javax.jcr.Node node) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
getQuery
in interface javax.jcr.query.QueryManager
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
QueryManager.getQuery(Node)
public String[] getSupportedQueryLanguages() throws javax.jcr.RepositoryException
getSupportedQueryLanguages
in interface javax.jcr.query.QueryManager
javax.jcr.RepositoryException
QueryManager.getSupportedQueryLanguages()
public javax.jcr.query.qom.QueryObjectModelFactory getQOMFactory()
getQOMFactory
in interface javax.jcr.query.QueryManager
QueryManager.getQOMFactory()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.