org.apache.jackrabbit.rmi.server
Class ServerRow

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

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.

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, 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

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:
RepositoryException - on repository errors
RemoteException - on RMI 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:
RepositoryException - on repository errors
RemoteException - on RMI errors
See Also:
Row.getValue(String)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.