com.jwpepper.cat
Class CatalogReference

java.lang.Object
  |
  +--com.imaginary.lwp.BaseReference
        |
        +--com.jwpepper.cat.EntryReference
              |
              +--com.jwpepper.cat.CompositeEntryReference
                    |
                    +--com.jwpepper.cat.CatalogReference

public class CatalogReference
extends CompositeEntryReference

Provides a clean client interface into the catalog business object by delegating to the methods of the same name.
Last modified $Date: 1999/10/05 17:03:35 $

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

Constructor Summary
CatalogReference()
          Empty constructor required by serialization.
CatalogReference(Catalog ent)
          Constructs a catalog reference that points to the specified entity object.
CatalogReference(long oid)
          Constructs a catalog reference that refers to the catalog having the specified objectID
 
Method Summary
 void assign(long oid, com.sun.java.util.collections.HashMap vals)
          Assigns a catalog reference preloaded with the specified values.
 Audience getAudience()
          Provides the target audience for this catalog.
 short getCatalogNumber()
          Provides the catalog number for the catalog.
 
Methods inherited from class com.jwpepper.cat.CompositeEntryReference
addEntry, entries
 
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

CatalogReference

public CatalogReference()
Empty constructor required by serialization.

CatalogReference

public CatalogReference(long oid)
Constructs a catalog reference that refers to the catalog having the specified objectID
Parameters:
oid - the identifier for the desired catalog instance

CatalogReference

public CatalogReference(Catalog ent)
                 throws java.rmi.RemoteException
Constructs a catalog reference that points to the specified entity object.
Parameters:
ent - the catalog 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 catalog reference preloaded with the specified values.
Parameters:
oid - the objectID of the catalog
vals - the values to preload
Overrides:
assign in class CompositeEntryReference

getAudience

public Audience getAudience()
                     throws java.rmi.RemoteException
Provides the target audience for this catalog.
Returns:
the target audience
Throws:
java.rmi.RemoteException - a network error occurred

getCatalogNumber

public short getCatalogNumber()
                       throws java.rmi.RemoteException
Provides the catalog number for the catalog.
Returns:
the catalog number
Throws:
java.rmi.RemoteException - a network error occurred