com.jwpepper.cat
Class CompositeEntrySupport

java.lang.Object
  |
  +--com.imaginary.lwp.PersistenceSupport
        |
        +--com.imaginary.lwp.JDBCSupport
              |
              +--com.jwpepper.cat.EntrySupport
                    |
                    +--com.jwpepper.cat.CompositeEntrySupport
Direct Known Subclasses:
CatalogSupport, SectionSupport, SimpleEntrySupport

public abstract class CompositeEntrySupport
extends EntrySupport

Provides support above and beyond basic entry support by loading the entry's child entries.
Last modified $Date: 1999/10/05 04:11:15 $

Version:
$Revision: 1.1 $
Author:
George Reese (george@ancept.com)

Field Summary
static java.lang.String LOAD_ENTRIES
          The SQL for loading child entries.
 
Fields inherited from class com.jwpepper.cat.EntrySupport
CREATE, LOAD, REMOVE, STORE
 
Constructor Summary
CompositeEntrySupport()
           
 
Method Summary
 void load(Transaction trans, Memento mem)
          Loads the basic information for the entry by calling load() in the superclass and then loading all child entries.
protected  void loadEntries(Transaction trans, Memento mem)
          Loads all of the child entries associated with an entry.
 
Methods inherited from class com.jwpepper.cat.EntrySupport
create, getJoin, getPrimaryTable, mapField, remove, store
 
Methods inherited from class com.imaginary.lwp.JDBCSupport
find, getFindSQL, getReference
 
Methods inherited from class com.imaginary.lwp.PersistenceSupport
generateID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_ENTRIES

public static final java.lang.String LOAD_ENTRIES
The SQL for loading child entries.
Constructor Detail

CompositeEntrySupport

public CompositeEntrySupport()
Method Detail

load

public void load(Transaction trans,
                 Memento mem)
          throws LoadException
Loads the basic information for the entry by calling load() in the superclass and then loading all child entries.
Parameters:
trans - the transaction in which the database access occurs
mem - the memento into which the data should be loaded
Throws:
LoadException - an error occurred loading the data
Overrides:
load in class EntrySupport

loadEntries

protected void loadEntries(Transaction trans,
                           Memento mem)
                    throws LoadException
Loads all of the child entries associated with an entry.
Parameters:
trans - the transaction in which database access occurs
mem - the memento into which the child entries are placed
Throws:
LoadException - an error occurred loading the data