public interface RemoteQuery extends Remote
Query
interface.
Used by the ServerQuery
and ClientQuery
adapter base classes to provide transparent RMI access to remote items.
RMI errors are signaled with RemoteExceptions.
Query
,
ClientQuery
,
ServerQuery
Modifier and Type | Method and Description |
---|---|
void |
bindValue(String varName,
Value value) |
RemoteQueryResult |
execute() |
String[] |
getBindVariableNames() |
String |
getLanguage() |
String |
getStatement() |
String |
getStoredQueryPath() |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
RemoteNode |
storeAsNode(String absPath) |
RemoteQueryResult execute() throws RepositoryException, RemoteException
QueryResult
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.execute()
void setLimit(long limit) throws RemoteException
limit
- a long
RemoteException
- on RMI errorsQuery.setLimit(long)
void setOffset(long offset) throws RemoteException
offset
- a long
RemoteException
- on RMI errorsQuery.setOffset(long)
String getStatement() throws RemoteException
RemoteException
- on RMI errorsQuery.getStatement()
String getLanguage() throws RemoteException
RemoteException
- on RMI errorsQuery.getLanguage()
String getStoredQueryPath() throws RepositoryException, RemoteException
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getStoredQueryPath()
RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
absPath
- path at which to persist this query.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.storeAsNode(String)
void bindValue(String varName, Value value) throws RepositoryException, RemoteException
varName
- name of variable in queryvalue
- value to bindRepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.bindValue(String, Value)
String[] getBindVariableNames() throws RepositoryException, RemoteException
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getBindVariableNames()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.