com.jwpepper.cat
Class CompositeEntryImpl
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
- Direct Known Subclasses:
- CatalogImpl, SectionImpl
- public class CompositeEntryImpl
- extends EntryImpl
- implements CompositeEntry
Implements the business logic for the composite entry business component.
The CompositeEntry
class manages the child entries associated
with an entry capable of containing other entries.
Last modified $Date: 1999/10/05 04:11:15 $
- 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 |
CompositeEntryImpl()
Empty constructor required by LWP for entity implementations. |
Method Summary |
void |
addEntry(Identifier id,
Entry ent)
Adds the specified entry to the list of child entries belonging
to this composite entry. |
com.sun.java.util.collections.Iterator |
entries()
Provides the child entries 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 composite entry into the specified
memento for storage in the persistent 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 |
CompositeEntryImpl
public CompositeEntryImpl()
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
addEntry
public void addEntry(Identifier id,
Entry ent)
throws PersistenceException,
java.rmi.RemoteException
- Adds the specified entry to the list of child entries belonging
to this composite entry. This method is assumed to occur within
the context of another transaction and thus does no transaction
management of its own.
- Specified by:
- addEntry in interface CompositeEntry
- Parameters:
id
- the client identifier to use for the transactionent
- the entry to be added- Throws:
- PersistenceException - an error occurred
adding the new entry
- java.rmi.RemoteException - a network error occurred
entries
public com.sun.java.util.collections.Iterator entries()
- Provides the child entries of this entry.
- Specified by:
- entries in interface CompositeEntry
- Returns:
- the child entries
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 composite 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