Package com.jalios.jcms.db
Class CacheUtil
- java.lang.Object
-
- com.jalios.jcms.db.CacheUtil
-
public final class CacheUtil extends java.lang.ObjectProvides Utilities methods to manage Hibernate second level cache and Query Cache invalidations.- Since:
- jcms-7.0.0
- Author:
- dedieu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidremoveQueryCacheEntity(DBData data)static voidremoveQueryCacheEntity(java.lang.String entityName)Removes aDBDatafrom the query cache.static voidremoveSecondLevelCacheEntry(DBData data)static voidremoveSecondLevelCacheEntry(java.lang.String jcmsId)static voidremoveSecondLevelCacheEntry(java.lang.String entityName, java.lang.Long rowId)Removes aDBDatafrom the second level cache.
-
-
-
Method Detail
-
removeSecondLevelCacheEntry
public static void removeSecondLevelCacheEntry(java.lang.String entityName, java.lang.Long rowId)Removes aDBDatafrom the second level cache.- Parameters:
entityName- the id of the DBData to remove in the second level cache.rowId- the rowId- Throws:
java.lang.IllegalStateException- if the cache is notStatus.STATUS_ALIVE- Since:
- jcms-7.0.0
-
removeSecondLevelCacheEntry
public static void removeSecondLevelCacheEntry(DBData data)
-
removeSecondLevelCacheEntry
public static void removeSecondLevelCacheEntry(java.lang.String jcmsId)
-
removeQueryCacheEntity
public static void removeQueryCacheEntity(java.lang.String entityName)
Removes aDBDatafrom the query cache.- Parameters:
entityName- the id of the DBData to remove in the second level cache.- Throws:
java.lang.IllegalStateException- if the cache is notStatus.STATUS_ALIVE- Since:
- jcms-7.0.0
-
removeQueryCacheEntity
public static void removeQueryCacheEntity(DBData data)
-
-