Class GenericDataCache

java.lang.Object
de.xima.fc.api.cache.AGenericDataCache
de.xima.fc.api.cache.GenericDataCache

public class GenericDataCache extends AGenericDataCache
  • Field Details

  • Constructor Details

    • GenericDataCache

      public GenericDataCache()
  • Method Details

    • 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 a StringCacheModel from 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 context
      entity - the entity with the locking version for the cache key generation
      dataToCache - the data to write into the cache
    • getEntryKey

      public static <T extends de.xima.cmn.dao.interfaces.IEntity<?>> String getEntryKey(T entity)
    • 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