public class ServerQuery extends ServerObject implements RemoteQuery
Query
interface.
This class makes a local session available as an RMI service using the
RemoteQuery
interface.Query
,
RemoteQuery
,
Serialized Formref
Constructor and Description |
---|
ServerQuery(Query query,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local
Query . |
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) |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerQuery(Query query, RemoteAdapterFactory factory) throws RemoteException
Query
.query
- local Query
factory
- remote adapter factoryRemoteException
- on RMI errorspublic RemoteQueryResult execute() throws RepositoryException, RemoteException
execute
in interface RemoteQuery
QueryResult
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.execute()
public String getStatement() throws RemoteException
getStatement
in interface RemoteQuery
RemoteException
- on RMI errorsQuery.getStatement()
public String getLanguage() throws RemoteException
getLanguage
in interface RemoteQuery
RemoteException
- on RMI errorsQuery.getLanguage()
public String getStoredQueryPath() throws RepositoryException, RemoteException
getStoredQueryPath
in interface RemoteQuery
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getStoredQueryPath()
public RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
storeAsNode
in interface RemoteQuery
absPath
- path at which to persist this query.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.storeAsNode(String)
public void bindValue(String varName, Value value) throws RepositoryException, RemoteException
bindValue
in interface RemoteQuery
varName
- name of variable in queryvalue
- value to bindRepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.bindValue(String, Value)
public String[] getBindVariableNames() throws RepositoryException, RemoteException
getBindVariableNames
in interface RemoteQuery
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQuery.getBindVariableNames()
public void setLimit(long limit) throws RemoteException
setLimit
in interface RemoteQuery
limit
- a long
RemoteException
- on RMI errorsQuery.setLimit(long)
public void setOffset(long offset) throws RemoteException
setOffset
in interface RemoteQuery
offset
- a long
RemoteException
- on RMI errorsQuery.setOffset(long)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.