public class EntityCacheImpl
extends java.lang.Object
implements com.liferay.portal.kernel.cache.PortalCacheManagerListener, com.liferay.portal.kernel.cache.CacheRegistryItem, com.liferay.portal.kernel.dao.orm.EntityCache
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHE_NAME |
| Constructor and Description |
|---|
EntityCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
clearCache() |
void |
clearCache(java.lang.Class<?> clazz) |
void |
clearLocalCache() |
void |
dispose() |
com.liferay.portal.kernel.cache.PortalCache<java.io.Serializable,java.io.Serializable> |
getPortalCache(java.lang.Class<?> clazz) |
java.lang.String |
getRegistryName() |
java.io.Serializable |
getResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey) |
void |
init() |
void |
invalidate() |
java.io.Serializable |
loadResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey,
com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory) |
void |
notifyPortalCacheAdded(java.lang.String portalCacheName) |
void |
notifyPortalCacheRemoved(java.lang.String portalCacheName) |
void |
putResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey,
java.io.Serializable result) |
void |
putResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey,
java.io.Serializable result,
boolean quiet) |
void |
removeCache(java.lang.String className) |
void |
removeResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey) |
public void afterPropertiesSet()
public void clearCache()
clearCache in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void clearCache(java.lang.Class<?> clazz)
clearCache in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void clearLocalCache()
clearLocalCache in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void dispose()
dispose in interface com.liferay.portal.kernel.cache.PortalCacheManagerListenerpublic com.liferay.portal.kernel.cache.PortalCache<java.io.Serializable,java.io.Serializable> getPortalCache(java.lang.Class<?> clazz)
getPortalCache in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic java.lang.String getRegistryName()
getRegistryName in interface com.liferay.portal.kernel.cache.CacheRegistryItempublic java.io.Serializable getResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey)
getResult in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void init()
init in interface com.liferay.portal.kernel.cache.PortalCacheManagerListenerpublic void invalidate()
invalidate in interface com.liferay.portal.kernel.cache.CacheRegistryIteminvalidate in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic java.io.Serializable loadResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey,
com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
loadResult in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void notifyPortalCacheAdded(java.lang.String portalCacheName)
notifyPortalCacheAdded in interface com.liferay.portal.kernel.cache.PortalCacheManagerListenerpublic void notifyPortalCacheRemoved(java.lang.String portalCacheName)
notifyPortalCacheRemoved in interface com.liferay.portal.kernel.cache.PortalCacheManagerListenerpublic void putResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey,
java.io.Serializable result)
putResult in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void putResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey,
java.io.Serializable result,
boolean quiet)
putResult in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void removeCache(java.lang.String className)
removeCache in interface com.liferay.portal.kernel.dao.orm.EntityCachepublic void removeResult(boolean entityCacheEnabled,
java.lang.Class<?> clazz,
java.io.Serializable primaryKey)
removeResult in interface com.liferay.portal.kernel.dao.orm.EntityCache