public class QueryImpl extends Object implements javax.jcr.query.Query
Constructor and Description |
---|
QueryImpl(javax.jcr.Session session,
ManagerProvider mgrProvider,
ItemManager itemMgr,
WorkspaceManager wspManager,
String statement,
String language,
javax.jcr.Node node)
Creates a new query.
|
Modifier and Type | Method and Description |
---|---|
void |
bindValue(String varName,
javax.jcr.Value value) |
javax.jcr.query.QueryResult |
execute() |
String[] |
getBindVariableNames() |
String |
getLanguage() |
String |
getStatement() |
String |
getStoredQueryPath() |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
javax.jcr.Node |
storeAsNode(String absPath) |
public QueryImpl(javax.jcr.Session session, ManagerProvider mgrProvider, ItemManager itemMgr, WorkspaceManager wspManager, String statement, String language, javax.jcr.Node node) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
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
null
if this query is not a stored
query.javax.jcr.query.InvalidQueryException
- if the query is invalid.javax.jcr.RepositoryException
public javax.jcr.query.QueryResult execute() throws javax.jcr.RepositoryException
execute
in interface javax.jcr.query.Query
javax.jcr.RepositoryException
Query.execute()
public String getStatement()
getStatement
in interface javax.jcr.query.Query
Query.getStatement()
public String getLanguage()
getLanguage
in interface javax.jcr.query.Query
Query.getLanguage()
public String getStoredQueryPath() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getStoredQueryPath
in interface javax.jcr.query.Query
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
Query.getStoredQueryPath()
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
storeAsNode
in interface javax.jcr.query.Query
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
Query.storeAsNode(String)
public String[] getBindVariableNames() throws javax.jcr.RepositoryException
getBindVariableNames
in interface javax.jcr.query.Query
javax.jcr.RepositoryException
Query.getBindVariableNames()
public void bindValue(String varName, javax.jcr.Value value) throws javax.jcr.RepositoryException
bindValue
in interface javax.jcr.query.Query
javax.jcr.RepositoryException
Query.bindValue(String, Value)
public void setLimit(long limit)
setLimit
in interface javax.jcr.query.Query
Query.setLimit(long)
public void setOffset(long offset)
setOffset
in interface javax.jcr.query.Query
Query.setOffset(long)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.