com.jwpepper.cat
Class CompositeEntryReference

java.lang.Object
  |
  +--com.imaginary.lwp.BaseReference
        |
        +--com.jwpepper.cat.EntryReference
              |
              +--com.jwpepper.cat.CompositeEntryReference
Direct Known Subclasses:
CatalogReference, SectionReference

public class CompositeEntryReference
extends EntryReference

Provides a client view of the composite entry business component by delegating to that business component.
Last modified $Date: 1999/10/05 04:11:15 $

Version:
$Revision
Author:
Neophytos Iacovou (iacovou@ancept.com), George Reese (george@ancept.com)
See Also:
CompositeEntry, Serialized Form

Constructor Summary
CompositeEntryReference()
          Empty constructor required by serialization.
CompositeEntryReference(CompositeEntry ent)
          Constructs a new composite entry reference that delegates to the specified composite entry entity.
CompositeEntryReference(long oid)
          Constructs a new composite entry reference that delegates to the composite entry entity identified by the specified objectID.
 
Method Summary
 void addEntry(Identifier id, Entry ent)
          Adds an entry to this entry by delegating to the associated entity method of the same name.
 void assign(long oid, com.sun.java.util.collections.HashMap vals)
          Assigns a new composite entry reference preloaded with values from the specified HashMap.
 com.sun.java.util.collections.Iterator entries()
          Delegates to the method of the same name in the associated entity to retrieve all child entries associated with this composite entry.
 
Methods inherited from class com.jwpepper.cat.EntryReference
getCatalog, getDescription, getParent, getTitle
 
Methods inherited from class com.imaginary.lwp.BaseReference
assign, assign, get, getEntity, getLastUpdateID, getLastUpdateTime, getObjectID, put, reconnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeEntryReference

public CompositeEntryReference()
Empty constructor required by serialization.

CompositeEntryReference

public CompositeEntryReference(long oid)
Constructs a new composite entry reference that delegates to the composite entry entity identified by the specified objectID.
Parameters:
oid - the objectID of the desired composite entry

CompositeEntryReference

public CompositeEntryReference(CompositeEntry ent)
                        throws java.rmi.RemoteException
Constructs a new composite entry reference that delegates to the specified composite entry entity.
Parameters:
ent - the composite entry entity to which this reference delegates
Throws:
java.rmi.RemoteException - a network error occurred
Method Detail

assign

public void assign(long oid,
                   com.sun.java.util.collections.HashMap vals)
Assigns a new composite entry reference preloaded with values from the specified HashMap.
Parameters:
oid - the objectID of the composite entry
vals - the values to preload
Overrides:
assign in class EntryReference

addEntry

public void addEntry(Identifier id,
                     Entry ent)
              throws PersistenceException,
                     java.rmi.RemoteException
Adds an entry to this entry by delegating to the associated entity method of the same name.
Parameters:
id - the client identifier to use for the transaction
ent - the entry to add
Throws:
PersistenceException - an error occurred adding the entry
java.rmi.RemoteException - a network error occurred

entries

public com.sun.java.util.collections.Iterator entries()
                                               throws java.rmi.RemoteException
Delegates to the method of the same name in the associated entity to retrieve all child entries associated with this composite entry.
Returns:
the entries associated with this composite entry
Throws:
java.rmi.RemoteException - a network error occurred