com.jalios.jcms.db
Class CacheUtil

java.lang.Object
  extended by com.jalios.jcms.db.CacheUtil

public final class CacheUtil
extends Object

Provides Utilities methods to manage Hibernate second level cache and Query Cache invalidations.

Since:
jcms-7.0.0
Author:
dedieu

Method Summary
static void removeQueryCacheEntity(String entityName)
          Removes a DBData from the query cache.
static void removeSecondLevelCacheEntry(String entityName, Long rowId)
          Removes a DBData from the second level cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removeSecondLevelCacheEntry

public static void removeSecondLevelCacheEntry(String entityName,
                                               Long rowId)
Removes a DBData from the second level cache.

Parameters:
entityName - the id of the DBData to remove in the second level cache.
Throws:
IllegalStateException - if the cache is not Status.STATUS_ALIVE
Since:
jcms-7.0.0

removeQueryCacheEntity

public static void removeQueryCacheEntity(String entityName)
Removes a DBData from the query cache.

Parameters:
entityName - the id of the DBData to remove in the second level cache.
Throws:
IllegalStateException - if the cache is not Status.STATUS_ALIVE
Since:
jcms-7.0.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.