org.priha.query
Class PrihaQueryManager

java.lang.Object
  extended by 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

Constructor Summary
PrihaQueryManager(SessionImpl session)
           
 
Method Summary
 javax.jcr.query.Query createQuery(java.lang.String statement, java.lang.String language)
           
 javax.jcr.query.Query getQuery(javax.jcr.Node node)
           
protected  QueryProvider getQueryProvider()
          Get the QueryProvider which will be used to resolve the actual query.
 java.lang.String[] getSupportedQueryLanguages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrihaQueryManager

public PrihaQueryManager(SessionImpl session)
Method Detail

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