Package de.xima.fc.api.cache
Class GenericDataCache
- java.lang.Object
 - 
- de.xima.fc.api.cache.AGenericDataCache
 - 
- de.xima.fc.api.cache.GenericDataCache
 
 
 
- 
public class GenericDataCache extends AGenericDataCache
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAME 
- 
Constructor Summary
Constructors Constructor Description GenericDataCache() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends de.xima.cmn.dao.interfaces.ILockableEntity<?>>
voidcacheStringData(UserContext uc, T entity, String dataToCache)Writes the given data into the cache under the locking version of the given entity.static com.alibaba.fastjson.JSONObjectgetCachedI18nValues(UserContext uc, Mandant client)static com.alibaba.fastjson.JSONObjectgetCachedI18nValues(UserContext uc, Textbaustein template)static StringgetEntryKey(de.xima.cmn.dao.interfaces.IEntity<?> entity)static org.ehcache.Cache<String,ACacheModel>getInstance()static StringgetTransformedEntryKey(de.xima.cmn.dao.interfaces.IEntity<?> entity, String transformId)static voidinit()static <T extends de.xima.cmn.dao.interfaces.IEntity<?>>
StringCacheModelreadCachedStringData(T entity)Determine aStringCacheModelfrom the cachestatic voidreinit()Reinitialize cache after configuration changestatic voidshutdown()Removes the cache instance- 
Methods inherited from class de.xima.fc.api.cache.AGenericDataCache
cacheData, readCachedData, readCachedData 
 - 
 
 - 
 
- 
- 
Field Detail
- 
CACHE_NAME
public static final String CACHE_NAME
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getCachedI18nValues
public static com.alibaba.fastjson.JSONObject getCachedI18nValues(UserContext uc, Mandant client)
 
- 
getCachedI18nValues
public static com.alibaba.fastjson.JSONObject getCachedI18nValues(UserContext uc, Textbaustein template) throws com.alibaba.fastjson.JSONException
- Throws:
 com.alibaba.fastjson.JSONException
 
- 
readCachedStringData
public static <T extends de.xima.cmn.dao.interfaces.IEntity<?>> StringCacheModel readCachedStringData(T entity)
Determine aStringCacheModelfrom the cache- Parameters:
 entity- the entity to read the cache for- Returns:
 StringCacheModel
 
- 
cacheStringData
public static <T extends de.xima.cmn.dao.interfaces.ILockableEntity<?>> void cacheStringData(UserContext uc, T entity, String dataToCache)
Writes the given data into the cache under the locking version of the given entity.- Parameters:
 uc- the user contextentity- the entity with the locking version for the cache key generationdataToCache- the data to write into the cache
 
- 
getEntryKey
public static String getEntryKey(de.xima.cmn.dao.interfaces.IEntity<?> entity)
 
- 
getTransformedEntryKey
public static String getTransformedEntryKey(de.xima.cmn.dao.interfaces.IEntity<?> entity, String transformId)
 
- 
getInstance
public static org.ehcache.Cache<String,ACacheModel> getInstance()
 
- 
shutdown
public static void shutdown()
Removes the cache instance 
- 
init
public static void init()
 
- 
reinit
public static void reinit()
Reinitialize cache after configuration change 
 - 
 
 -