Class QueryImpl
- java.lang.Object
- 
- org.apache.jackrabbit.jcr2spi.query.QueryImpl
 
- 
- All Implemented Interfaces:
- Query
 - Direct Known Subclasses:
- QueryObjectModelImpl
 
 public class QueryImpl extends Object implements Query Provides the default implementation for a JCR query.
- 
- 
Constructor SummaryConstructors Constructor Description QueryImpl(Session session, ManagerProvider mgrProvider, ItemManager itemMgr, WorkspaceManager wspManager, String statement, String language, Node node)Creates a new query.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindValue(String varName, Value value)QueryResultexecute()String[]getBindVariableNames()StringgetLanguage()StringgetStatement()StringgetStoredQueryPath()voidsetLimit(long limit)voidsetOffset(long offset)NodestoreAsNode(String absPath)
 
- 
- 
- 
Constructor Detail- 
QueryImplpublic QueryImpl(Session session, ManagerProvider mgrProvider, ItemManager itemMgr, WorkspaceManager wspManager, String statement, String language, Node node) throws InvalidQueryException, 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.
- node- the node from where the query was read or- nullif this query is not a stored query.
- Throws:
- InvalidQueryException- if the query is invalid.
- RepositoryException
 
 
- 
 - 
Method Detail- 
executepublic QueryResult execute() throws RepositoryException - Specified by:
- executein interface- Query
- Throws:
- RepositoryException
- See Also:
- Query.execute()
 
 - 
getStatementpublic String getStatement() - Specified by:
- getStatementin interface- Query
- See Also:
- Query.getStatement()
 
 - 
getLanguagepublic String getLanguage() - Specified by:
- getLanguagein interface- Query
- See Also:
- Query.getLanguage()
 
 - 
getStoredQueryPathpublic String getStoredQueryPath() throws ItemNotFoundException, RepositoryException - Specified by:
- getStoredQueryPathin interface- Query
- Throws:
- ItemNotFoundException
- RepositoryException
- See Also:
- Query.getStoredQueryPath()
 
 - 
storeAsNodepublic Node storeAsNode(String absPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, UnsupportedRepositoryOperationException, RepositoryException - Specified by:
- storeAsNodein interface- Query
- Throws:
- ItemExistsException
- PathNotFoundException
- VersionException
- ConstraintViolationException
- LockException
- UnsupportedRepositoryOperationException
- RepositoryException
- See Also:
- Query.storeAsNode(String)
 
 - 
getBindVariableNamespublic String[] getBindVariableNames() throws RepositoryException - Specified by:
- getBindVariableNamesin interface- Query
- Throws:
- RepositoryException
- See Also:
- Query.getBindVariableNames()
 
 - 
bindValuepublic void bindValue(String varName, Value value) throws RepositoryException - Specified by:
- bindValuein interface- Query
- Throws:
- RepositoryException
- See Also:
- Query.bindValue(String, Value)
 
 - 
setLimitpublic void setLimit(long limit) - Specified by:
- setLimitin interface- Query
- See Also:
- Query.setLimit(long)
 
 - 
setOffsetpublic void setOffset(long offset) - Specified by:
- setOffsetin interface- Query
- See Also:
- Query.setOffset(long)
 
 
- 
 
-