Class LastModifiedCache
java.lang.Object
org.pentaho.platform.plugin.services.cache.LastModifiedCache
- All Implemented Interfaces:
javax.persistence.Cache,org.hibernate.Cache,org.pentaho.platform.api.cache.ILastModifiedCacheItem,HvCache
public class LastModifiedCache
extends Object
implements org.pentaho.platform.api.cache.ILastModifiedCacheItem, HvCache
User: rfellows Date: 10/25/11 Time: 3:53 PM
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory) LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory, long lastModified) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsCollection(String role, Serializable ownerIdentifier) booleancontainsEntity(Class entityClass, Serializable identifier) booleancontainsEntity(String entityName, Serializable identifier) booleancontainsQuery(String regionName) voidvoidvoidvoidevictCollectionData(String role) voidevictCollectionData(String role, Serializable ownerIdentifier) voidvoidvoidevictEntityData(Class entityClass) voidevictEntityData(Class entityClass, Serializable identifier) voidevictEntityData(String entityName) voidevictEntityData(String entityName, Serializable identifier) voidvoidevictNaturalIdData(Class entityClass) voidevictNaturalIdData(String entityName) voidevictQueryRegion(String regionName) voidvoidevictRegion(String regionName) Return all keys for the regionnet.sf.ehcache.EhcachegetCache()Exposes the underlaying EhCache associated with this HvCacheorg.hibernate.cache.spi.DirectAccessRegionReturn built in cache accesslongorg.hibernate.engine.spi.SessionFactoryImplementororg.hibernate.cache.ehcache.internal.StorageAccessImplReturn the object that allows direct storage accessprotected voidvoidsetLastModified(long lastModified) <T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.Cache
evictAll, evictAllRegions, evictCollection, evictCollectionRegion, evictCollectionRegions, evictEntity, evictEntity, evictEntityRegion, evictEntityRegion, evictEntityRegions, evictNaturalIdRegion, evictNaturalIdRegion, evictNaturalIdRegions
-
Field Details
-
LOGGER
protected static final org.apache.commons.logging.Log LOGGER
-
-
Constructor Details
-
LastModifiedCache
public LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory) -
LastModifiedCache
public LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory, long lastModified)
-
-
Method Details
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceorg.pentaho.platform.api.cache.ILastModifiedCacheItem
-
getCacheKey
- Specified by:
getCacheKeyin interfaceorg.pentaho.platform.api.cache.ILastModifiedCacheItem
-
setLastModified
public void setLastModified(long lastModified) -
setLastModified
protected void setLastModified() -
getSessionFactory
public org.hibernate.engine.spi.SessionFactoryImplementor getSessionFactory()- Specified by:
getSessionFactoryin interfaceorg.hibernate.Cache
-
containsEntity
- Specified by:
containsEntityin interfaceorg.hibernate.Cache
-
containsEntity
- Specified by:
containsEntityin interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityDatain interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityDatain interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityDatain interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityDatain interfaceorg.hibernate.Cache
-
evictEntityData
public void evictEntityData()- Specified by:
evictEntityDatain interfaceorg.hibernate.Cache
-
evictNaturalIdData
- Specified by:
evictNaturalIdDatain interfaceorg.hibernate.Cache
-
evictNaturalIdData
- Specified by:
evictNaturalIdDatain interfaceorg.hibernate.Cache
-
evictNaturalIdData
public void evictNaturalIdData()- Specified by:
evictNaturalIdDatain interfaceorg.hibernate.Cache
-
containsCollection
- Specified by:
containsCollectionin interfaceorg.hibernate.Cache
-
evictCollectionData
- Specified by:
evictCollectionDatain interfaceorg.hibernate.Cache
-
evictCollectionData
- Specified by:
evictCollectionDatain interfaceorg.hibernate.Cache
-
evictCollectionData
public void evictCollectionData()- Specified by:
evictCollectionDatain interfaceorg.hibernate.Cache
-
containsQuery
- Specified by:
containsQueryin interfaceorg.hibernate.Cache
-
evictDefaultQueryRegion
public void evictDefaultQueryRegion()- Specified by:
evictDefaultQueryRegionin interfaceorg.hibernate.Cache
-
evictQueryRegion
- Specified by:
evictQueryRegionin interfaceorg.hibernate.Cache
-
evictQueryRegions
public void evictQueryRegions()- Specified by:
evictQueryRegionsin interfaceorg.hibernate.Cache
-
evictRegion
- Specified by:
evictRegionin interfaceorg.hibernate.Cache
-
contains
- Specified by:
containsin interfacejavax.persistence.Cache
-
evict
- Specified by:
evictin interfacejavax.persistence.Cache
-
evict
- Specified by:
evictin interfacejavax.persistence.Cache
-
unwrap
- Specified by:
unwrapin interfacejavax.persistence.Cache
-
getAllKeys
Description copied from interface:HvCacheReturn all keys for the region- Specified by:
getAllKeysin interfaceHvCache- Returns:
-
getDirectAccessRegion
public org.hibernate.cache.spi.DirectAccessRegion getDirectAccessRegion()Description copied from interface:HvCacheReturn built in cache access- Specified by:
getDirectAccessRegionin interfaceHvCache- Returns:
-
getStorageAccess
public org.hibernate.cache.ehcache.internal.StorageAccessImpl getStorageAccess()Description copied from interface:HvCacheReturn the object that allows direct storage access- Specified by:
getStorageAccessin interfaceHvCache- Returns:
-
getCache
public net.sf.ehcache.Ehcache getCache()Description copied from interface:HvCacheExposes the underlaying EhCache associated with this HvCache
-