Class 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 Detail

      • LOGGER

        protected static final org.apache.commons.logging.Log LOGGER
    • Constructor Detail

      • 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 Detail

      • getLastModified

        public long getLastModified()
        Specified by:
        getLastModified in interface org.pentaho.platform.api.cache.ILastModifiedCacheItem
      • getCacheKey

        public String getCacheKey()
        Specified by:
        getCacheKey in interface org.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 interface org.hibernate.Cache
      • containsEntity

        public boolean containsEntity​(Class entityClass,
                                      Serializable identifier)
        Specified by:
        containsEntity in interface org.hibernate.Cache
      • containsEntity

        public boolean containsEntity​(String entityName,
                                      Serializable identifier)
        Specified by:
        containsEntity in interface org.hibernate.Cache
      • evictEntityData

        public void evictEntityData​(Class entityClass,
                                    Serializable identifier)
        Specified by:
        evictEntityData in interface org.hibernate.Cache
      • evictEntityData

        public void evictEntityData​(String entityName,
                                    Serializable identifier)
        Specified by:
        evictEntityData in interface org.hibernate.Cache
      • evictEntityData

        public void evictEntityData​(Class entityClass)
        Specified by:
        evictEntityData in interface org.hibernate.Cache
      • evictEntityData

        public void evictEntityData​(String entityName)
        Specified by:
        evictEntityData in interface org.hibernate.Cache
      • evictEntityData

        public void evictEntityData()
        Specified by:
        evictEntityData in interface org.hibernate.Cache
      • evictNaturalIdData

        public void evictNaturalIdData​(Class entityClass)
        Specified by:
        evictNaturalIdData in interface org.hibernate.Cache
      • evictNaturalIdData

        public void evictNaturalIdData​(String entityName)
        Specified by:
        evictNaturalIdData in interface org.hibernate.Cache
      • evictNaturalIdData

        public void evictNaturalIdData()
        Specified by:
        evictNaturalIdData in interface org.hibernate.Cache
      • containsCollection

        public boolean containsCollection​(String role,
                                          Serializable ownerIdentifier)
        Specified by:
        containsCollection in interface org.hibernate.Cache
      • evictCollectionData

        public void evictCollectionData​(String role,
                                        Serializable ownerIdentifier)
        Specified by:
        evictCollectionData in interface org.hibernate.Cache
      • evictCollectionData

        public void evictCollectionData​(String role)
        Specified by:
        evictCollectionData in interface org.hibernate.Cache
      • evictCollectionData

        public void evictCollectionData()
        Specified by:
        evictCollectionData in interface org.hibernate.Cache
      • containsQuery

        public boolean containsQuery​(String regionName)
        Specified by:
        containsQuery in interface org.hibernate.Cache
      • evictDefaultQueryRegion

        public void evictDefaultQueryRegion()
        Specified by:
        evictDefaultQueryRegion in interface org.hibernate.Cache
      • evictQueryRegion

        public void evictQueryRegion​(String regionName)
        Specified by:
        evictQueryRegion in interface org.hibernate.Cache
      • evictQueryRegions

        public void evictQueryRegions()
        Specified by:
        evictQueryRegions in interface org.hibernate.Cache
      • evictRegion

        public void evictRegion​(String regionName)
        Specified by:
        evictRegion in interface org.hibernate.Cache
      • contains

        public boolean contains​(Class cls,
                                Object primaryKey)
        Specified by:
        contains in interface javax.persistence.Cache
      • evict

        public void evict​(Class cls,
                          Object primaryKey)
        Specified by:
        evict in interface javax.persistence.Cache
      • evict

        public void evict​(Class aClass)
        Specified by:
        evict in interface javax.persistence.Cache
      • unwrap

        public <T> T unwrap​(Class<T> cls)
        Specified by:
        unwrap in interface javax.persistence.Cache
      • getAllKeys

        public Set getAllKeys()
        Description copied from interface: HvCache
        Return all keys for the region
        Specified by:
        getAllKeys in interface HvCache
        Returns:
      • getDirectAccessRegion

        public org.hibernate.cache.spi.DirectAccessRegion getDirectAccessRegion()
        Description copied from interface: HvCache
        Return built in cache access
        Specified by:
        getDirectAccessRegion in interface HvCache
        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 interface HvCache
        Returns:
      • getCache

        public net.sf.ehcache.Ehcache getCache()
        Description copied from interface: HvCache
        Exposes the underlaying EhCache associated with this HvCache
        Specified by:
        getCache in interface HvCache
        Returns:
        The EhCache