Class LevelOneCacheManager<K,T>
- java.lang.Object
-
- org.technologybrewery.fermenter.stout.client.service.LevelOneCacheManager<K,T>
-
- Type Parameters:
K- primary key classT- transfer object class
public class LevelOneCacheManager<K,T> extends Object
Manages level one caching for entity maintenance services.
-
-
Constructor Summary
Constructors Constructor Description LevelOneCacheManager()New instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelOneCache<K,T>getCacheForCurrentTransaction()Gets a the level one cache for the primary key/entity combination on the current transaction.voidremoveTransaction()Removes all level one caches bound to the current transaction.
-
-
-
Method Detail
-
getCacheForCurrentTransaction
public LevelOneCache<K,T> getCacheForCurrentTransaction()
Gets a the level one cache for the primary key/entity combination on the current transaction. If no cache is found, one will be created and bound to the transaction.- Returns:
- new level one cache
-
removeTransaction
public void removeTransaction()
Removes all level one caches bound to the current transaction.
-
-