com.liferay.portal.dao.orm.common
Class EntityCacheImpl
java.lang.Object
com.liferay.portal.dao.orm.common.EntityCacheImpl
- All Implemented Interfaces:
- CacheManagerListener, CacheRegistryItem, EntityCache
public class EntityCacheImpl
- extends Object
- implements CacheManagerListener, CacheRegistryItem, EntityCache
|
Method Summary |
void |
afterPropertiesSet()
|
void |
clearCache()
|
void |
clearCache(Class<?> clazz)
|
void |
clearLocalCache()
|
void |
dispose()
|
PortalCache<Serializable,Serializable> |
getPortalCache(Class<?> clazz)
|
String |
getRegistryName()
|
Serializable |
getResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
|
void |
init()
|
void |
invalidate()
|
Serializable |
loadResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
SessionFactory sessionFactory)
|
void |
notifyCacheAdded(String name)
|
void |
notifyCacheRemoved(String name)
|
void |
putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Serializable result)
|
void |
putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Serializable result,
boolean quiet)
|
void |
removeCache(String className)
|
void |
removeResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
|
void |
setMultiVMPool(MultiVMPool multiVMPool)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_NAME
public static final String CACHE_NAME
EntityCacheImpl
public EntityCacheImpl()
afterPropertiesSet
public void afterPropertiesSet()
clearCache
public void clearCache()
- Specified by:
clearCache in interface EntityCache
clearCache
public void clearCache(Class<?> clazz)
- Specified by:
clearCache in interface EntityCache
clearLocalCache
public void clearLocalCache()
- Specified by:
clearLocalCache in interface EntityCache
dispose
public void dispose()
- Specified by:
dispose in interface CacheManagerListener
getPortalCache
public PortalCache<Serializable,Serializable> getPortalCache(Class<?> clazz)
- Specified by:
getPortalCache in interface EntityCache
getRegistryName
public String getRegistryName()
- Specified by:
getRegistryName in interface CacheRegistryItem
getResult
public Serializable getResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
- Specified by:
getResult in interface EntityCache
init
public void init()
- Specified by:
init in interface CacheManagerListener
invalidate
public void invalidate()
- Specified by:
invalidate in interface CacheRegistryItem- Specified by:
invalidate in interface EntityCache
loadResult
public Serializable loadResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
SessionFactory sessionFactory)
- Specified by:
loadResult in interface EntityCache
notifyCacheAdded
public void notifyCacheAdded(String name)
- Specified by:
notifyCacheAdded in interface CacheManagerListener
notifyCacheRemoved
public void notifyCacheRemoved(String name)
- Specified by:
notifyCacheRemoved in interface CacheManagerListener
putResult
public void putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Serializable result)
- Specified by:
putResult in interface EntityCache
putResult
public void putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Serializable result,
boolean quiet)
- Specified by:
putResult in interface EntityCache
removeCache
public void removeCache(String className)
- Specified by:
removeCache in interface EntityCache
removeResult
public void removeResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
- Specified by:
removeResult in interface EntityCache
setMultiVMPool
public void setMultiVMPool(MultiVMPool multiVMPool)