public class ElementCollectionCacheManager extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Map<Object,Map<Object,String>> |
elementCollectionCache
Mapping between Row Key and (Map of element collection objects and
element collection object name).
|
private static ElementCollectionCacheManager |
instance
The instance.
|
private static org.slf4j.Logger |
log
log for this class.
|
| Modifier | Constructor and Description |
|---|---|
private |
ElementCollectionCacheManager()
Instantiates a new element collection cache manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElementCollectionCacheMapping(Object rowKey,
Object elementCollectionObject,
String elementCollObjectName)
Adds the element collection cache mapping.
|
void |
clearCache()
Clear cache.
|
Map<Object,Map<Object,String>> |
getElementCollectionCache()
Gets the element collection cache.
|
String |
getElementCollectionObjectName(Object rowKey,
Object elementCollectionObject)
Gets the element collection object name.
|
static ElementCollectionCacheManager |
getInstance()
Gets the single instance of ElementCollectionCacheManager.
|
int |
getLastElementCollectionObjectCount(Object rowKey)
Gets the last element collection object count.
|
boolean |
isCacheEmpty()
Checks if is cache empty.
|
private static org.slf4j.Logger log
private static ElementCollectionCacheManager instance
private ElementCollectionCacheManager()
public static ElementCollectionCacheManager getInstance()
public Map<Object,Map<Object,String>> getElementCollectionCache()
public boolean isCacheEmpty()
public void addElementCollectionCacheMapping(Object rowKey, Object elementCollectionObject, String elementCollObjectName)
rowKey - the row keyelementCollectionObject - the element collection objectelementCollObjectName - the element coll object namepublic String getElementCollectionObjectName(Object rowKey, Object elementCollectionObject)
rowKey - the row keyelementCollectionObject - the element collection objectpublic int getLastElementCollectionObjectCount(Object rowKey)
rowKey - the row keypublic void clearCache()
Copyright © 2015. All Rights Reserved.