com.liferay.portal.dao.orm.hibernate
Class EntityCacheImpl
java.lang.Object
com.liferay.portal.dao.orm.hibernate.EntityCacheImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.cache.CacheRegistryItem, com.liferay.portal.kernel.dao.orm.EntityCache
public class EntityCacheImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.cache.CacheRegistryItem, com.liferay.portal.kernel.dao.orm.EntityCache
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
afterPropertiesSet()
|
void |
clearCache()
|
void |
clearCache(java.lang.String className)
|
void |
clearLocalCache()
|
java.lang.String |
getRegistryName()
|
java.lang.Object |
getResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj,
com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
|
void |
invalidate()
|
java.lang.Object |
loadResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj,
com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
|
void |
putResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj,
java.lang.Object result)
|
void |
removeResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj)
|
void |
setLocalCacheEnabled(boolean localCacheEnabled)
|
void |
setMultiVMPool(com.liferay.portal.kernel.cache.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 java.lang.String CACHE_NAME
EntityCacheImpl
public EntityCacheImpl()
afterPropertiesSet
public void afterPropertiesSet()
clearCache
public void clearCache()
- Specified by:
clearCache
in interface com.liferay.portal.kernel.dao.orm.EntityCache
clearCache
public void clearCache(java.lang.String className)
- Specified by:
clearCache
in interface com.liferay.portal.kernel.dao.orm.EntityCache
clearLocalCache
public void clearLocalCache()
- Specified by:
clearLocalCache
in interface com.liferay.portal.kernel.dao.orm.EntityCache
getRegistryName
public java.lang.String getRegistryName()
- Specified by:
getRegistryName
in interface com.liferay.portal.kernel.cache.CacheRegistryItem
getResult
public java.lang.Object getResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj,
com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
- Specified by:
getResult
in interface com.liferay.portal.kernel.dao.orm.EntityCache
invalidate
public void invalidate()
- Specified by:
invalidate
in interface com.liferay.portal.kernel.cache.CacheRegistryItem
- Specified by:
invalidate
in interface com.liferay.portal.kernel.dao.orm.EntityCache
loadResult
public java.lang.Object loadResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj,
com.liferay.portal.kernel.dao.orm.SessionFactory sessionFactory)
- Specified by:
loadResult
in interface com.liferay.portal.kernel.dao.orm.EntityCache
putResult
public void putResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj,
java.lang.Object result)
- Specified by:
putResult
in interface com.liferay.portal.kernel.dao.orm.EntityCache
removeResult
public void removeResult(boolean entityCacheEnabled,
java.lang.Class<?> classObj,
java.io.Serializable primaryKeyObj)
- Specified by:
removeResult
in interface com.liferay.portal.kernel.dao.orm.EntityCache
setLocalCacheEnabled
public void setLocalCacheEnabled(boolean localCacheEnabled)
- Specified by:
setLocalCacheEnabled
in interface com.liferay.portal.kernel.dao.orm.EntityCache
setMultiVMPool
public void setMultiVMPool(com.liferay.portal.kernel.cache.MultiVMPool multiVMPool)