org.apache.jackrabbit.rmi.server
Class ServerQueryResult
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.ServerQueryResult
- All Implemented Interfaces:
- Serializable, Remote, RemoteQueryResult
public class ServerQueryResult
- extends ServerObject
- implements RemoteQueryResult
Remote adapter for the JCR QueryResult interface.
This class makes a local session available as an RMI service using the
RemoteQueryResult
interface.
- See Also:
QueryResult,
RemoteQueryResult,
Serialized Form
ServerQueryResult
public ServerQueryResult(QueryResult result,
RemoteAdapterFactory factory)
throws RemoteException
- Creates a remote adapter for the given local
QueryResult.
- Parameters:
result - local QueryResultfactory - remote adapter factory
- Throws:
RemoteException - on RMI errors
getColumnNames
public String[] getColumnNames()
throws RepositoryException,
RemoteException
-
- Specified by:
getColumnNames in interface RemoteQueryResult
- Returns:
- a
PropertyIterator
- Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors- See Also:
QueryResult.getColumnNames()
getRows
public RemoteIterator getRows()
throws RepositoryException,
RemoteException
-
- Specified by:
getRows in interface RemoteQueryResult
- Returns:
- a
RowIterator
- Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors- See Also:
QueryResult.getRows()
getNodes
public RemoteIterator getNodes()
throws RepositoryException,
RemoteException
-
- Specified by:
getNodes in interface RemoteQueryResult
- Returns:
- a remote node iterator
- Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors- See Also:
QueryResult.getNodes()
Copyright © 2004-2017 The Apache Software Foundation. All Rights Reserved.