com.liferay.portal.dao.orm.common
Class EntityCacheImpl
java.lang.Object
com.liferay.portal.dao.orm.common.EntityCacheImpl
- All Implemented Interfaces:
- CacheRegistryItem, EntityCache, org.springframework.beans.factory.BeanFactoryAware
public class EntityCacheImpl
- extends Object
- implements org.springframework.beans.factory.BeanFactoryAware, CacheRegistryItem, EntityCache
Method Summary |
void |
afterPropertiesSet()
|
void |
clearCache()
|
void |
clearCache(String className)
|
void |
clearLocalCache()
|
PortalCache<Serializable,Serializable> |
getPortalCache(Class<?> clazz)
|
String |
getRegistryName()
|
Serializable |
getResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
|
void |
invalidate()
|
Serializable |
loadResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
SessionFactory sessionFactory)
|
void |
putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Serializable result)
|
void |
removeCache(String className)
|
void |
removeResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
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(String className)
- Specified by:
clearCache
in interface EntityCache
clearLocalCache
public void clearLocalCache()
- Specified by:
clearLocalCache
in interface EntityCache
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
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
putResult
public void putResult(boolean entityCacheEnabled,
Class<?> clazz,
Serializable primaryKey,
Serializable result)
- 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
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
setMultiVMPool
public void setMultiVMPool(MultiVMPool multiVMPool)