org.priha.query
Class PrihaQueryManager

java.lang.Object
  extended by org.priha.query.PrihaQueryManager

public class PrihaQueryManager
extends java.lang.Object

Manages our Provider modules and provides the QueryManager interface.

Author:
Janne Jalkanen

Constructor Summary
PrihaQueryManager(SessionImpl session)
           
 
Method Summary
 Query createQuery(java.lang.String statement, java.lang.String language)
           
 Query getQuery(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 Query createQuery(java.lang.String statement,
                         java.lang.String language)
                  throws InvalidQueryException,
                         RepositoryException
Throws:
InvalidQueryException
RepositoryException

getQuery

public Query getQuery(Node node)
               throws InvalidQueryException,
                      RepositoryException
Throws:
InvalidQueryException
RepositoryException

getSupportedQueryLanguages

public java.lang.String[] getSupportedQueryLanguages()
                                              throws RepositoryException
Throws:
RepositoryException