Package org.apache.ofbiz.entity.cache
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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
cacheNamePrefix
protected java.lang.String
delegatorName
protected java.lang.String
id
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCache(java.lang.String delegatorName, java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
protected UtilCache<K,V>
getCache(java.lang.String entityName)
java.lang.String
getCacheName(java.lang.String entityName)
java.lang.String
getCacheNamePrefix()
java.lang.String[]
getCacheNamePrefixes()
java.lang.String[]
getCacheNames(java.lang.String entityName)
Delegator
getDelegator()
protected UtilCache<K,V>
getOrCreateCache(java.lang.String entityName)
void
remove(java.lang.String entityName)
-
-
-
Method Detail
-
getDelegator
public Delegator getDelegator()
-
remove
public void remove(java.lang.String entityName)
-
clear
public void clear()
-
getCacheNamePrefix
public java.lang.String getCacheNamePrefix()
-
getCacheNamePrefixes
public java.lang.String[] getCacheNamePrefixes()
-
getCacheName
public java.lang.String getCacheName(java.lang.String entityName)
-
getCacheNames
public java.lang.String[] getCacheNames(java.lang.String entityName)
-
-