com.jwpepper.cat
Class CatalogImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.imaginary.lwp.BaseEntity
                          |
                          +--com.jwpepper.cat.EntryImpl
                                |
                                +--com.jwpepper.cat.CompositeEntryImpl
                                      |
                                      +--com.jwpepper.cat.CatalogImpl

public class CatalogImpl
extends CompositeEntryImpl
implements Catalog

Implements the business logic associated with the catalog business component. This class currently does nothing special.
Last modified $Date: 1999/10/05 17:03:35 $

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

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
CatalogImpl()
          Empty constructor required for LWP entity implementations.
 
Method Summary
 Audience getAudience()
          Provides the target audience for this catalog.
 short getCatalogNumber()
          Provides the "human-friendly" unique identifier for catalogs.
protected  void load(Memento mem)
          Loads the catalog's state from the specified memento.
protected  void store(Memento mem)
          Stores the current state of the catalog into the specified memento.
 
Methods inherited from class com.jwpepper.cat.CompositeEntryImpl
addEntry, entries
 
Methods inherited from class com.jwpepper.cat.EntryImpl
create, create, getCatalog, getDescription, getParent, getTitle
 
Methods inherited from class com.imaginary.lwp.BaseEntity
create, getLastUpdateID, getLastUpdateTime, getObjectID, getReference, load, reload, remove, save, store
 
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

CatalogImpl

public CatalogImpl()
            throws PersistenceException,
                   java.rmi.RemoteException
Empty constructor required for LWP entity implementations.
Throws:
PersistenceException - LWP was unable to assign a persistence handler to the catalog
java.rmi.RemoteException - RMI was unable to export the object.
Method Detail

getAudience

public Audience getAudience()
Provides the target audience for this catalog.
Specified by:
getAudience in interface Catalog
Returns:
the target audence

getCatalogNumber

public short getCatalogNumber()
Provides the "human-friendly" unique identifier for catalogs. In addition to an objectID which is used by the system, a catalog as a catalog number which is a small number that is unique to each catalog.
Specified by:
getCatalogNumber in interface Catalog
Returns:
the catalog number

load

protected void load(Memento mem)
             throws LoadException
Loads the catalog's state from the specified memento. This method currently does nothing but extend the parent method.
Parameters:
mem - the memento from which the state is restored
Throws:
LoadException - an error occurred loading the state
Overrides:
load in class CompositeEntryImpl

store

protected void store(Memento mem)
              throws StoreException
Stores the current state of the catalog into the specified memento. This method currently stores no special values, but instead passes along the memento to the superclass.
Parameters:
mem - the memento into which the state is stored
Throws:
StoreException - an error occurred storing the catalog's state into the memento
Overrides:
store in class CompositeEntryImpl