uk.co.kimble.cobra.rmi
Class PersistentSetAdapter

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--uk.co.kimble.cobra.rmi.PersistentSetAdapter

public class PersistentSetAdapter
extends java.rmi.server.UnicastRemoteObject
implements PersistentSet

Adapts a local PersistentSet to the remote inteface

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
PersistentSetAdapter(PersistentSet set)
          Object contruction
 
Method Summary
 void close()
           
 boolean hasMoreObjects()
          Used to enumerate a set of objects returned after a database query
 PersistentObject nextObject()
           
 
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

PersistentSetAdapter

public PersistentSetAdapter(PersistentSet set)
                     throws java.rmi.RemoteException,
                            PersistentException
Object contruction
Method Detail

hasMoreObjects

public boolean hasMoreObjects()
Used to enumerate a set of objects returned after a database query
Specified by:
hasMoreObjects in interface PersistentSet

nextObject

public PersistentObject nextObject()
                            throws PersistentException
Specified by:
nextObject in interface PersistentSet

close

public void close()
           throws PersistentException
Specified by:
close in interface PersistentSet