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 Summary
ConstructorsModifierConstructorDescriptionprotected
Creates session-based, composite cache with a master list and 2 slave lists.AbstractCompositeCache_2S
(AbstractCompositeCache_2S<KM, TM, K1, T1, K2, T2> abstractCompositeCache) -
Method Summary
Modifier and TypeMethodDescriptionReturns cache of slave list 2.protected abstract ListCache.ListCacheConfig
<TM, K2, T2> Overridden by concrete implementations to configure slave list cache 2.protected void
notifySlaveListCache2Changed
(ListCache<?, ?, T2> listCache) Notification that the slave list cache 2 has changed.Methods inherited from class name.matthewgreet.strutscommons.util.AbstractCompositeCache_1S
getSlaveListCache1, getSlaveListCache1Config, notifySlaveListCache1Changed
Methods inherited from class name.matthewgreet.strutscommons.util.AbstractCompositeCache
getMasterListCache, getMasterListCacheConfig, notifyMasterListCacheChanged
-
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, throws ExceptionK1, T1, K2, T2> abstractCompositeCache) - Throws:
Exception
-
-
Method Details
-
getSlaveListCache2Config
Overridden by concrete implementations to configure slave list cache 2. -
notifySlaveListCache2Changed
Notification that the slave list cache 2 has changed. -
getSlaveListCache2
Returns cache of slave list 2.
-