Class GenericDataCache

    • Constructor Detail

      • GenericDataCache

        public GenericDataCache()
    • 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 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)
      • shutdown

        public static void shutdown()
        Removes the cache instance
      • init

        public static void init()
      • reinit

        public static void reinit()
        Reinitialize cache after configuration change