Class AbstractCache<K,V>

java.lang.Object
org.apache.ofbiz.entity.cache.AbstractCache<K,V>
Direct Known Subclasses:
AbstractEntityConditionCache, EntityCache

public abstract class AbstractCache<K,V> extends Object
  • Constructor Details

    • AbstractCache

      protected AbstractCache(String delegatorName, String id)
  • Method Details

    • getDelegator

      public Delegator getDelegator()
      Gets delegator.
      Returns:
      the delegator
    • remove

      public void remove(String entityName)
      Remove.
      Parameters:
      entityName - the entity name
    • clear

      public void clear()
      Clear.
    • getCacheNamePrefix

      public String getCacheNamePrefix()
      Gets cache name prefix.
      Returns:
      the cache name prefix
    • getCacheNamePrefixes

      public String[] getCacheNamePrefixes()
      Get cache name prefixes string [ ].
      Returns:
      the string [ ]
    • getCacheName

      public String getCacheName(String entityName)
      Gets cache name.
      Parameters:
      entityName - the entity name
      Returns:
      the cache name
    • getCacheNames

      public String[] getCacheNames(String entityName)
      Get cache names string [ ].
      Parameters:
      entityName - the entity name
      Returns:
      the string [ ]
    • getCache

      protected UtilCache<K,V> getCache(String entityName)
      Gets cache.
      Parameters:
      entityName - the entity name
      Returns:
      the cache
    • getOrCreateCache

      protected UtilCache<K,V> getOrCreateCache(String entityName)
      Gets or create cache.
      Parameters:
      entityName - the entity name
      Returns:
      the or create cache