com.jwpepper.cat
Class SimpleEntryImpl

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.SimpleEntryImpl

public class SimpleEntryImpl
extends EntryImpl
implements SimpleEntry

Implements the business logic for the simple entry business component. The SimpleEntry class manages the child items associated with an entry capable of containing other items.
Last modified $Date: 1999/10/05 20:42:57 $

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
SimpleEntryImpl()
          Empty constructor required by LWP for entity implementations.
 
Method Summary
 short getLongestID()
          Provides the length of the longest objectID of all of the entry items associated with this entry.
 com.sun.java.util.collections.Iterator items()
          Provides a list of entry items associated with this entry.
 com.sun.java.util.collections.Iterator lineItems(java.util.Locale loc)
          Provides the string items of this entry.
protected  void load(Memento mem)
          Loads the state of the entry from the persistent store using the specified memento.
protected  void store(Memento mem)
          Stores the current state of this simple entry into the specified memento for storage in the persistent store.
 
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

SimpleEntryImpl

public SimpleEntryImpl()
                throws PersistenceException,
                       java.rmi.RemoteException
Empty constructor required by LWP for entity implementations.
Throws:
PersistenceException - LWP was unable to assign a persistence handler
java.rmi.RemoteException - a network error occurred
Method Detail

getLongestID

public short getLongestID()
Provides the length of the longest objectID of all of the entry items associated with this entry.
Specified by:
getLongestID in interface SimpleEntry
Returns:
the length of the longest objectID

items

public com.sun.java.util.collections.Iterator items()
Provides a list of entry items associated with this entry. The first item is the primary entry item.
Specified by:
items in interface SimpleEntry
Returns:
all entry items for the entry

lineItems

public com.sun.java.util.collections.Iterator lineItems(java.util.Locale loc)
                                                 throws java.rmi.RemoteException
Provides the string items of this entry.
Specified by:
lineItems in interface SimpleEntry
Parameters:
loc - the locale for which a translation is sought
Returns:
the string items
Throws:
java.rmi.RemoteException - a network error occurred

load

protected void load(Memento mem)
             throws LoadException
Loads the state of the entry from the persistent store using the specified memento.
Parameters:
mem - the memento containing the entry state
Throws:
LoadException - an error occurred loading the attributes from the memento
Overrides:
load in class EntryImpl

store

protected void store(Memento mem)
              throws StoreException
Stores the current state of this simple entry into the specified memento for storage in the persistent store.
Parameters:
mem - the memento into which the current state should be placed
Throws:
StoreException - an error occurred storing the entry's state in the memento
Overrides:
store in class EntryImpl