public class ClientQuery extends ClientObject implements javax.jcr.query.Query
RemoteQuery
interface. This class makes a remote query locally available using
the JCR Query interface.Query,
RemoteQuery| Constructor and Description |
|---|
ClientQuery(javax.jcr.Session session,
RemoteQuery remote,
LocalAdapterFactory factory)
Creates a client adapter for the given 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) |
getFactory, getItem, getNode, getNodeTypeArraypublic ClientQuery(javax.jcr.Session session,
RemoteQuery remote,
LocalAdapterFactory factory)
session - current sessionremote - remote queryfactory - adapter factorypublic javax.jcr.query.QueryResult execute()
throws javax.jcr.RepositoryException
execute in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionpublic String getStatement()
getStatement in interface javax.jcr.query.Querypublic String getLanguage()
getLanguage in interface javax.jcr.query.Querypublic String getStoredQueryPath() throws javax.jcr.RepositoryException
getStoredQueryPath in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionpublic javax.jcr.Node storeAsNode(String absPath) throws javax.jcr.RepositoryException
storeAsNode in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionpublic void bindValue(String varName, javax.jcr.Value value) throws javax.jcr.RepositoryException
bindValue in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionpublic String[] getBindVariableNames() throws javax.jcr.RepositoryException
getBindVariableNames in interface javax.jcr.query.Queryjavax.jcr.RepositoryExceptionpublic void setLimit(long limit)
setLimit in interface javax.jcr.query.Querypublic void setOffset(long offset)
setOffset in interface javax.jcr.query.QueryCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.