org.apache.jackrabbit.rmi.server
Class ServerQueryResult

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by 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

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, getSerialValue, getSerialValues
 
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:
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-2010 The Apache Software Foundation. All Rights Reserved.