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
-
Constructor Summary
ConstructorDescriptionLastModifiedCache
(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 TypeMethodDescriptionboolean
boolean
containsCollection
(String role, Serializable ownerIdentifier) boolean
containsEntity
(Class entityClass, Serializable identifier) boolean
containsEntity
(String entityName, Serializable identifier) boolean
containsQuery
(String regionName) void
void
void
void
evictCollectionData
(String role) void
evictCollectionData
(String role, Serializable ownerIdentifier) void
void
void
evictEntityData
(Class entityClass) void
evictEntityData
(Class entityClass, Serializable identifier) void
evictEntityData
(String entityName) void
evictEntityData
(String entityName, Serializable identifier) void
void
evictNaturalIdData
(Class entityClass) void
evictNaturalIdData
(String entityName) void
evictQueryRegion
(String regionName) void
void
evictRegion
(String regionName) Return all keys for the regionnet.sf.ehcache.Ehcache
getCache()
Exposes the underlaying EhCache associated with this HvCacheorg.hibernate.cache.spi.DirectAccessRegion
Return built in cache accesslong
org.hibernate.engine.spi.SessionFactoryImplementor
org.hibernate.cache.ehcache.internal.StorageAccessImpl
Return the object that allows direct storage accessprotected void
void
setLastModified
(long lastModified) <T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getLastModified
in interfaceorg.pentaho.platform.api.cache.ILastModifiedCacheItem
-
getCacheKey
- Specified by:
getCacheKey
in 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:
getSessionFactory
in interfaceorg.hibernate.Cache
-
containsEntity
- Specified by:
containsEntity
in interfaceorg.hibernate.Cache
-
containsEntity
- Specified by:
containsEntity
in interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityData
in interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityData
in interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityData
in interfaceorg.hibernate.Cache
-
evictEntityData
- Specified by:
evictEntityData
in interfaceorg.hibernate.Cache
-
evictEntityData
public void evictEntityData()- Specified by:
evictEntityData
in interfaceorg.hibernate.Cache
-
evictNaturalIdData
- Specified by:
evictNaturalIdData
in interfaceorg.hibernate.Cache
-
evictNaturalIdData
- Specified by:
evictNaturalIdData
in interfaceorg.hibernate.Cache
-
evictNaturalIdData
public void evictNaturalIdData()- Specified by:
evictNaturalIdData
in interfaceorg.hibernate.Cache
-
containsCollection
- Specified by:
containsCollection
in interfaceorg.hibernate.Cache
-
evictCollectionData
- Specified by:
evictCollectionData
in interfaceorg.hibernate.Cache
-
evictCollectionData
- Specified by:
evictCollectionData
in interfaceorg.hibernate.Cache
-
evictCollectionData
public void evictCollectionData()- Specified by:
evictCollectionData
in interfaceorg.hibernate.Cache
-
containsQuery
- Specified by:
containsQuery
in interfaceorg.hibernate.Cache
-
evictDefaultQueryRegion
public void evictDefaultQueryRegion()- Specified by:
evictDefaultQueryRegion
in interfaceorg.hibernate.Cache
-
evictQueryRegion
- Specified by:
evictQueryRegion
in interfaceorg.hibernate.Cache
-
evictQueryRegions
public void evictQueryRegions()- Specified by:
evictQueryRegions
in interfaceorg.hibernate.Cache
-
evictRegion
- Specified by:
evictRegion
in interfaceorg.hibernate.Cache
-
contains
- Specified by:
contains
in interfacejavax.persistence.Cache
-
evict
- Specified by:
evict
in interfacejavax.persistence.Cache
-
evict
- Specified by:
evict
in interfacejavax.persistence.Cache
-
unwrap
- Specified by:
unwrap
in interfacejavax.persistence.Cache
-
getAllKeys
Description copied from interface:HvCache
Return all keys for the region- Specified by:
getAllKeys
in interfaceHvCache
- Returns:
-
getDirectAccessRegion
public org.hibernate.cache.spi.DirectAccessRegion getDirectAccessRegion()Description copied from interface:HvCache
Return built in cache access- Specified by:
getDirectAccessRegion
in interfaceHvCache
- Returns:
-
getStorageAccess
public org.hibernate.cache.ehcache.internal.StorageAccessImpl getStorageAccess()Description copied from interface:HvCache
Return the object that allows direct storage access- Specified by:
getStorageAccess
in interfaceHvCache
- Returns:
-
getCache
public net.sf.ehcache.Ehcache getCache()Description copied from interface:HvCache
Exposes the underlaying EhCache associated with this HvCache
-