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.RepositoryExceptionpublic javax.jcr.query.QueryResult execute()
throws javax.jcr.RepositoryException
execute in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionQuery.execute()public String getStatement()
getStatement in interface javax.jcr.query.QueryQuery.getStatement()public String getLanguage()
getLanguage in interface javax.jcr.query.QueryQuery.getLanguage()public String getStoredQueryPath() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getStoredQueryPath in interface javax.jcr.query.Queryjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionQuery.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.Queryjavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionQuery.storeAsNode(String)public String[] getBindVariableNames() throws javax.jcr.RepositoryException
getBindVariableNames in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionQuery.getBindVariableNames()public void bindValue(String varName, javax.jcr.Value value) throws javax.jcr.RepositoryException
bindValue in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionQuery.bindValue(String, Value)public void setLimit(long limit)
setLimit in interface javax.jcr.query.QueryQuery.setLimit(long)public void setOffset(long offset)
setOffset in interface javax.jcr.query.QueryQuery.setOffset(long)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.