public class ServerQueryResult extends ServerObject implements RemoteQueryResult
QueryResult
interface.
This class makes a local session available as an RMI service using the
RemoteQueryResult
interface.QueryResult
,
RemoteQueryResult
,
Serialized Formref
Constructor and Description |
---|
ServerQueryResult(QueryResult result,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local
QueryResult . |
Modifier and Type | Method and Description |
---|---|
String[] |
getColumnNames() |
RemoteIterator |
getNodes() |
RemoteIterator |
getRows() |
String[] |
getSelectorNames() |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerQueryResult(QueryResult result, RemoteAdapterFactory factory) throws RemoteException
QueryResult
.result
- local QueryResult
factory
- remote adapter factoryRemoteException
- on RMI errorspublic String[] getColumnNames() throws RepositoryException, RemoteException
getColumnNames
in interface RemoteQueryResult
PropertyIterator
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryResult.getColumnNames()
public RemoteIterator getRows() throws RepositoryException, RemoteException
getRows
in interface RemoteQueryResult
RowIterator
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryResult.getRows()
public RemoteIterator getNodes() throws RepositoryException, RemoteException
getNodes
in interface RemoteQueryResult
RepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryResult.getNodes()
public String[] getSelectorNames() throws RepositoryException, RemoteException
getSelectorNames
in interface RemoteQueryResult
String
array holding the selector names.RepositoryException
- on repository errorsRemoteException
- on RMI errorsQueryResult.getSelectorNames()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.