org.apache.jackrabbit.jcr2spi.query
Class QueryImpl
java.lang.Object
org.apache.jackrabbit.jcr2spi.query.QueryImpl
- All Implemented Interfaces:
- javax.jcr.query.Query
public class QueryImpl
- extends Object
- implements javax.jcr.query.Query
Provides the default implementation for a JCR query.
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 |
QueryImpl
public QueryImpl(javax.jcr.Session session,
ManagerProvider mgrProvider,
ItemManager itemMgr,
WorkspaceManager wspManager,
String statement,
String language)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
- Creates a new query.
- Parameters:
session
- the session that created this query.mgrProvider
- the manager provider.itemMgr
- the item manager of that session.wspManager
- the workspace manager that belongs to the
session.statement
- the query statement.language
- the language of the query statement.
- Throws:
javax.jcr.query.InvalidQueryException
- if the query is invalid.
javax.jcr.RepositoryException
QueryImpl
public QueryImpl(javax.jcr.Session session,
ManagerProvider mgrProvider,
ItemManager itemMgr,
WorkspaceManager wspManager,
javax.jcr.Node node)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
- Creates a query from a node.
- Parameters:
session
- the session that created this query.mgrProvider
- the manager provider.itemMgr
- the item manager of that session.wspManager
- the workspace manager that belongs to the session.node
- the node from where to read the query.
- Throws:
javax.jcr.query.InvalidQueryException
- if the query is invalid.
javax.jcr.RepositoryException
- if another error occurs while reading from
the 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
- See Also:
Query.execute()
getStatement
public String getStatement()
- Specified by:
getStatement
in interface javax.jcr.query.Query
- See Also:
Query.getStatement()
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interface javax.jcr.query.Query
- See Also:
Query.getLanguage()
getStoredQueryPath
public 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
- See Also:
Query.getStoredQueryPath()
storeAsNode
public javax.jcr.Node storeAsNode(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
- See Also:
Query.storeAsNode(String)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.