Package com.jalios.jcms.db
Class CacheUtil
java.lang.Object
com.jalios.jcms.db.CacheUtil
Provides Utilities methods to manage Hibernate second level cache and Query Cache invalidations.
- Since:
- jcms-7.0.0
- Author:
- dedieu
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidremoveQueryCacheEntity(DBData data) static voidremoveQueryCacheEntity(String entityName) Removes aDBDatafrom the query cache.static voidstatic voidremoveSecondLevelCacheEntry(String jcmsId) static voidremoveSecondLevelCacheEntry(String entityName, Long rowId) Removes aDBDatafrom the second level cache.
-
Method Details
-
removeSecondLevelCacheEntry
Removes aDBDatafrom the second level cache.- Parameters:
entityName- the id of the DBData to remove in the second level cache.rowId- the rowId- Throws:
IllegalStateException- if the cache is notStatus.STATUS_ALIVE- Since:
- jcms-7.0.0
-
removeSecondLevelCacheEntry
-
removeSecondLevelCacheEntry
-
removeQueryCacheEntity
Removes aDBDatafrom the query cache.- Parameters:
entityName- the id of the DBData to remove in the second level cache.- Throws:
IllegalStateException- if the cache is notStatus.STATUS_ALIVE- Since:
- jcms-7.0.0
-
removeQueryCacheEntity
-