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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.Gets cache.getCacheName
(String entityName) Gets cache name.Gets cache name prefix.String[]
Get cache name prefixes string [ ].String[]
getCacheNames
(String entityName) Get cache names string [ ].Gets delegator.getOrCreateCache
(String entityName) Gets or create cache.void
Remove.
-
Constructor Details
-
AbstractCache
-
-
Method Details
-
getDelegator
Gets delegator.- Returns:
- the delegator
-
remove
Remove.- Parameters:
entityName
- the entity name
-
clear
public void clear()Clear. -
getCacheNamePrefix
Gets cache name prefix.- Returns:
- the cache name prefix
-
getCacheNamePrefixes
Get cache name prefixes string [ ].- Returns:
- the string [ ]
-
getCacheName
Gets cache name.- Parameters:
entityName
- the entity name- Returns:
- the cache name
-
getCacheNames
Get cache names string [ ].- Parameters:
entityName
- the entity name- Returns:
- the string [ ]
-
getCache
Gets cache.- Parameters:
entityName
- the entity name- Returns:
- the cache
-
getOrCreateCache
Gets or create cache.- Parameters:
entityName
- the entity name- Returns:
- the or create cache
-