org.priha.query
Class QueryImpl

java.lang.Object
  extended by org.priha.query.QueryImpl
All Implemented Interfaces:
javax.jcr.query.Query
Direct Known Subclasses:
XPathQueryImpl

public abstract class QueryImpl
extends java.lang.Object
implements javax.jcr.query.Query

The root class for Priha query implementations.

Author:
Janne Jalkanen

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

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 javax.jcr.query.QueryResult execute()
                                    throws javax.jcr.RepositoryException
Specified by:
execute in interface javax.jcr.query.Query
Throws:
javax.jcr.RepositoryException

getStoredQueryPath

public java.lang.String getStoredQueryPath()
                                    throws javax.jcr.ItemNotFoundException,
                                           javax.jcr.RepositoryException
Specified by:
getStoredQueryPath in interface javax.jcr.query.Query
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

storeAsNode

public javax.jcr.Node storeAsNode(java.lang.String absPath)
                           throws javax.jcr.ItemExistsException,
                                  javax.jcr.PathNotFoundException,
                                  javax.jcr.version.VersionException,
                                  javax.jcr.nodetype.ConstraintViolationException,
                                  javax.jcr.lock.LockException,
                                  javax.jcr.UnsupportedRepositoryOperationException,
                                  javax.jcr.RepositoryException
Specified by:
storeAsNode in interface javax.jcr.query.Query
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException