org.priha.query
Class PrihaQueryManager
java.lang.Object
org.priha.query.PrihaQueryManager
- All Implemented Interfaces:
- javax.jcr.query.QueryManager
public class PrihaQueryManager
- extends java.lang.Object
- implements javax.jcr.query.QueryManager
Manages our Provider modules and provides the QueryManager interface.
- Author:
- Janne Jalkanen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrihaQueryManager
public PrihaQueryManager(SessionImpl session)
getQueryProvider
protected QueryProvider getQueryProvider()
- Get the QueryProvider which will be used to resolve the actual query.
- Returns:
- A QueryProvider instance.
createQuery
public javax.jcr.query.Query createQuery(java.lang.String statement,
java.lang.String language)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
- Specified by:
createQuery
in interface javax.jcr.query.QueryManager
- Throws:
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
getQuery
public javax.jcr.query.Query getQuery(javax.jcr.Node node)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
- Specified by:
getQuery
in interface javax.jcr.query.QueryManager
- Throws:
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
getSupportedQueryLanguages
public java.lang.String[] getSupportedQueryLanguages()
throws javax.jcr.RepositoryException
- Specified by:
getSupportedQueryLanguages
in interface javax.jcr.query.QueryManager
- Throws:
javax.jcr.RepositoryException