Class LevelOneCacheManager<K,​T>

  • Type Parameters:
    K - primary key class
    T - transfer object class

    public class LevelOneCacheManager<K,​T>
    extends Object
    Manages level one caching for entity maintenance services.
    • Constructor Detail

      • LevelOneCacheManager

        public LevelOneCacheManager()
        New instance.
    • 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.