Class AbstractCompositeCache_2S<KM extends Serializable,TM extends Serializable,K1 extends Serializable,T1 extends Serializable,K2 extends Serializable,T2 extends Serializable>

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

public abstract class AbstractCompositeCache_2S<KM extends Serializable,TM extends Serializable,K1 extends Serializable,T1 extends Serializable,K2 extends Serializable,T2 extends Serializable> extends AbstractCompositeCache_1S<KM,TM,K1,T1>

Template for web level, session-based caching a master, record list with two slave lists 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
K2
Type primary key of slave list 2 records
T2
Type of slave list 2 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_2S

      protected AbstractCompositeCache_2S()
      Creates session-based, composite cache with a master list and 2 slave lists.
    • AbstractCompositeCache_2S

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

    • getSlaveListCache2Config

      protected abstract ListCache.ListCacheConfig<TM,K2,T2> getSlaveListCache2Config()
      Overridden by concrete implementations to configure slave list cache 2.
    • notifySlaveListCache2Changed

      protected void notifySlaveListCache2Changed(ListCache<?,?,T2> listCache)
      Notification that the slave list cache 2 has changed.
    • getSlaveListCache2

      public ListCache<TM,K2,T2> getSlaveListCache2()
      Returns cache of slave list 2.