org.apache.jackrabbit.rmi.server
Class ServerRow

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.ServerRow
All Implemented Interfaces:
Remote, RemoteRow, Serializable

public class ServerRow
extends ServerObject
implements RemoteRow

Remote adapter for the JCR Row interface. This class makes a local session available as an RMI service using the RemoteRow interface.

Author:
Philipp Koch
See Also:
Row, RemoteRow, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerRow(Row row, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local query row.
 
Method Summary
 Value getValue(String propertyName)
          
 Value[] getValues()
          
 
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

ServerRow

public ServerRow(Row row,
                 RemoteAdapterFactory factory)
          throws RemoteException
Creates a remote adapter for the given local query row.

Parameters:
row - local query row
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getValues

public Value[] getValues()
                  throws RepositoryException,
                         RemoteException

Specified by:
getValues in interface RemoteRow
Returns:
row values
Throws:
RemoteException - on RMI errors
RepositoryException - on repository errors
See Also:
Row.getValues()

getValue

public Value getValue(String propertyName)
               throws RepositoryException,
                      RemoteException

Specified by:
getValue in interface RemoteRow
Parameters:
propertyName - property name
Returns:
identified value
Throws:
RemoteException - on RMI errors
RepositoryException - on repository errors
See Also:
Row.getValue(String)


Copyright © 2004-2006 . All Rights Reserved.