Class AbstractCompositeCache_1S<KM extends Serializable,TM extends Serializable,K1 extends Serializable,T1 extends Serializable>

java.lang.Object
name.matthewgreet.strutscommons.util.AbstractCompositeCache<KM,TM>
name.matthewgreet.strutscommons.util.AbstractCompositeCache_1S<KM,TM,K1,T1>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractCompositeCache_2S

public abstract class AbstractCompositeCache_1S<KM extends Serializable,TM extends Serializable,K1 extends Serializable,T1 extends Serializable> extends AbstractCompositeCache<KM,TM>

Template for web level, session-based caching a master, record list with one slave list for editing in various web pages. Subclasses of this, as well as defining the record types, typically set list finders and other Strategies for record list relationships and pagination that clients don't set themselves, depending on web page workflow. Instances are typically created as Singletons.

KM
Type primary key of master records
TM
Type of master records
K1
Type primary key of slave list 1 records
T1
Type of slave list 1 records

As there are a bewildering set of configuration options and client Struts actions are expected to know their responsibilities in workflow, subclasses are a convenient Javadoc reference point for documenting this, such as below.

See Also:
  • Constructor Details

    • AbstractCompositeCache_1S

      protected AbstractCompositeCache_1S()
      Creates session-based, composite cache with a master list and 1 slave list.
    • AbstractCompositeCache_1S

      public AbstractCompositeCache_1S(AbstractCompositeCache_1S<KM,TM,K1,T1> abstractCompositeCache) throws Exception
      Throws:
      Exception
  • Method Details

    • getSlaveListCache1Config

      protected abstract ListCache.ListCacheConfig<TM,K1,T1> getSlaveListCache1Config()
      Overridden by concrete implementations to configure slave list cache 1.
    • notifySlaveListCache1Changed

      protected void notifySlaveListCache1Changed(ListCache<?,?,T1> listCache)
      Notification that the slave list cache 1 has changed.
    • getSlaveListCache1

      public ListCache<TM,K1,T1> getSlaveListCache1()
      Returns cache of slave list 1.