public class ClientQuery extends ClientObject implements Query
RemoteQuery
interface. This class makes a remote query locally available using
the JCR Query interface.Query,
RemoteQuery| Constructor and Description |
|---|
ClientQuery(Session session,
RemoteQuery remote,
LocalAdapterFactory factory)
Creates a client adapter for the given query.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(String varName,
Value value) |
QueryResult |
execute() |
String[] |
getBindVariableNames() |
String |
getLanguage() |
String |
getStatement() |
String |
getStoredQueryPath() |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
Node |
storeAsNode(String absPath) |
getFactory, getItem, getNode, getNodeTypeArraypublic ClientQuery(Session session, RemoteQuery remote, LocalAdapterFactory factory)
session - current sessionremote - remote queryfactory - adapter factorypublic QueryResult execute() throws RepositoryException
execute in interface QueryRepositoryExceptionpublic String getStatement()
getStatement in interface Querypublic String getLanguage()
getLanguage in interface Querypublic String getStoredQueryPath() throws RepositoryException
getStoredQueryPath in interface QueryRepositoryExceptionpublic Node storeAsNode(String absPath) throws RepositoryException
storeAsNode in interface QueryRepositoryExceptionpublic void bindValue(String varName, Value value) throws RepositoryException
bindValue in interface QueryRepositoryExceptionpublic String[] getBindVariableNames() throws RepositoryException
getBindVariableNames in interface QueryRepositoryExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.