org.apache.jackrabbit.rmi.server
Class ServerQueryResult

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.apache.jackrabbit.rmi.server.ServerObject
                  extended byorg.apache.jackrabbit.rmi.server.ServerQueryResult
All Implemented Interfaces:
Remote, RemoteQueryResult, Serializable

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.

Author:
Philipp Koch
See Also:
QueryResult, RemoteQueryResult, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerQueryResult(QueryResult result, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local QueryResult.
 
Method Summary
 String[] getColumnNames()
          
 RemoteIterator getNodes()
          
 RemoteIterator getRows()
          
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerQueryResult

public ServerQueryResult(QueryResult result,
                         RemoteAdapterFactory factory)
                  throws RemoteException
Creates a remote adapter for the given local QueryResult.

Parameters:
result - local QueryResult
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getColumnNames

public String[] getColumnNames()
                        throws RepositoryException,
                               RemoteException

Specified by:
getColumnNames in interface RemoteQueryResult
Returns:
a PropertyIterator
Throws:
RemoteException - on RMI errors
RepositoryException - on repository 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-2006 . All Rights Reserved.