com.liferay.portal.kernel.dao.orm
Class EntityCacheUtil
java.lang.Object
com.liferay.portal.kernel.dao.orm.EntityCacheUtil
public class EntityCacheUtil
- extends Object
Method Summary |
static void |
clearCache()
|
static void |
clearCache(String className)
|
static void |
clearLocalCache()
|
static EntityCache |
getEntityCache()
|
static Object |
getResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
|
static void |
invalidate()
|
static Object |
loadResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
SessionFactory sessionFactory)
|
static void |
putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Object result)
|
static void |
removeCache(String className)
|
static void |
removeResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
|
void |
setEntityCache(EntityCache entityCache)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityCacheUtil
public EntityCacheUtil()
clearCache
public static void clearCache()
clearCache
public static void clearCache(String className)
clearLocalCache
public static void clearLocalCache()
getEntityCache
public static EntityCache getEntityCache()
getResult
public static Object getResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
invalidate
public static void invalidate()
loadResult
public static Object loadResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
SessionFactory sessionFactory)
putResult
public static void putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Object result)
removeCache
public static void removeCache(String className)
removeResult
public static void removeResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
setEntityCache
public void setEntityCache(EntityCache entityCache)