org.priha.query
Class QueryImpl

java.lang.Object
  extended by org.priha.query.QueryImpl
Direct Known Subclasses:
XPathQueryImpl

public abstract class QueryImpl
extends java.lang.Object

The root class for Priha query implementations.

Author:
Janne Jalkanen

Constructor Summary
QueryImpl(SessionImpl session, QueryRootNode root)
          Construct a QueryImpl for a given Session and a given abstract query tree.
 
Method Summary
 QueryResult execute()
           
 java.lang.String getStoredQueryPath()
           
 Node storeAsNode(java.lang.String absPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryImpl

public QueryImpl(SessionImpl session,
                 QueryRootNode root)
Construct a QueryImpl for a given Session and a given abstract query tree. Subclasses are expected to create the AQT.

Parameters:
session - The Session against which this Query is created
root - The AQT Root node
Method Detail

execute

public QueryResult execute()
                    throws RepositoryException
Throws:
RepositoryException

getStoredQueryPath

public java.lang.String getStoredQueryPath()
                                    throws ItemNotFoundException,
                                           RepositoryException
Throws:
ItemNotFoundException
RepositoryException

storeAsNode

public Node storeAsNode(java.lang.String absPath)
                 throws ItemExistsException,
                        PathNotFoundException,
                        VersionException,
                        ConstraintViolationException,
                        LockException,
                        UnsupportedRepositoryOperationException,
                        RepositoryException
Throws:
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
UnsupportedRepositoryOperationException
RepositoryException