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, getNodeTypeArray
public ClientQuery(Session session, RemoteQuery remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote queryfactory
- adapter factorypublic QueryResult execute() throws RepositoryException
execute
in interface Query
RepositoryException
public String getStatement()
getStatement
in interface Query
public String getLanguage()
getLanguage
in interface Query
public String getStoredQueryPath() throws RepositoryException
getStoredQueryPath
in interface Query
RepositoryException
public Node storeAsNode(String absPath) throws RepositoryException
storeAsNode
in interface Query
RepositoryException
public void bindValue(String varName, Value value) throws RepositoryException
bindValue
in interface Query
RepositoryException
public String[] getBindVariableNames() throws RepositoryException
getBindVariableNames
in interface Query
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.