org.priha.query
Class QueryImpl
java.lang.Object
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
Fields inherited from interface javax.jcr.query.Query |
SQL, XPATH |
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 |
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 createdroot
- The AQT Root node
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