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 |
|---|---|
RemoteQueryResult |
execute() |
String |
getLanguage() |
String |
getStatement() |
String |
getStoredQueryPath() |
RemoteNode |
storeAsNode(String absPath) |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValuesclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic ServerQuery(Query query, RemoteAdapterFactory factory) throws RemoteException
Query.query - local Queryfactory - remote adapter factoryRemoteException - on RMI errorspublic RemoteQueryResult execute() throws RepositoryException, RemoteException
execute in interface RemoteQueryQueryResultRepositoryException - on repository errorsRemoteException - on RMI errorsQuery.execute()public String getStatement() throws RemoteException
getStatement in interface RemoteQueryRemoteException - on RMI errorsQuery.getStatement()public String getLanguage() throws RemoteException
getLanguage in interface RemoteQueryRemoteException - on RMI errorsQuery.getLanguage()public String getStoredQueryPath() throws RepositoryException, RemoteException
getStoredQueryPath in interface RemoteQueryRepositoryException - on repository errorsRemoteException - on RMI errorsQuery.getStoredQueryPath()public RemoteNode storeAsNode(String absPath) throws RepositoryException, RemoteException
storeAsNode in interface RemoteQueryabsPath - path at which to persist this query.RepositoryException - on repository errorsRemoteException - on RMI errorsQuery.storeAsNode(String)Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.