com.liferay.portal.kernel.dao.orm
Class EntityCacheUtil

java.lang.Object
  extended by com.liferay.portal.kernel.dao.orm.EntityCacheUtil

public class EntityCacheUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
EntityCacheUtil()
           
 
Method Summary
static void clearCache()
           
static void clearCache(java.lang.String className)
           
static void clearLocalCache()
           
static EntityCache getEntityCache()
           
static java.lang.Object getResult(boolean entityCacheEnabled, java.lang.Class<?> classObj, java.io.Serializable primaryKeyObj, SessionFactory sessionFactory)
           
static void invalidate()
           
static java.lang.Object loadResult(boolean entityCacheEnabled, java.lang.Class<?> classObj, java.io.Serializable primaryKeyObj, SessionFactory sessionFactory)
           
static void putResult(boolean entityCacheEnabled, java.lang.Class<?> classObj, java.io.Serializable primaryKeyObj, java.lang.Object result)
           
static void removeCache(java.lang.String className)
           
static void removeResult(boolean entityCacheEnabled, java.lang.Class<?> classObj, java.io.Serializable primaryKeyObj)
           
 void setEntityCache(EntityCache finderCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityCacheUtil

public EntityCacheUtil()
Method Detail

clearCache

public static void clearCache()

clearCache

public static void clearCache(java.lang.String className)

clearLocalCache

public static void clearLocalCache()

getEntityCache

public static EntityCache getEntityCache()

getResult

public static java.lang.Object getResult(boolean entityCacheEnabled,
                                         java.lang.Class<?> classObj,
                                         java.io.Serializable primaryKeyObj,
                                         SessionFactory sessionFactory)

invalidate

public static void invalidate()

loadResult

public static java.lang.Object loadResult(boolean entityCacheEnabled,
                                          java.lang.Class<?> classObj,
                                          java.io.Serializable primaryKeyObj,
                                          SessionFactory sessionFactory)

putResult

public static void putResult(boolean entityCacheEnabled,
                             java.lang.Class<?> classObj,
                             java.io.Serializable primaryKeyObj,
                             java.lang.Object result)

removeCache

public static void removeCache(java.lang.String className)

removeResult

public static void removeResult(boolean entityCacheEnabled,
                                java.lang.Class<?> classObj,
                                java.io.Serializable primaryKeyObj)

setEntityCache

public void setEntityCache(EntityCache finderCache)