Interface CacheImplementor

    • Method Detail

      • getRegionFactory

        RegionFactory getRegionFactory()
        Deprecated.
        The underlying RegionFactory in use.
        ApiNote:
        CacheImplementor acts partially as a wrapper for details of interacting with the configured RegionFactory. Care should be taken when accessing the RegionFactory directly.
      • prime

        void prime​(java.util.Set<DomainDataRegionConfig> cacheRegionConfigs)
        Deprecated.
        An initialization phase allowing the caching provider to prime itself from the passed configs
        Since:
        5.3
      • getCacheRegionNames

        java.util.Set<java.lang.String> getCacheRegionNames()
        Deprecated.
        The unqualified name of all regions. Intended for use with getRegion(java.lang.String)
        Since:
        5.3
      • getTimestampsCache

        TimestampsCache getTimestampsCache()
        Deprecated.
        Find the cache data access strategy for Hibernate's timestamps cache. Will return null if Hibernate is not configured for query result caching
        Since:
        5.3
      • getDefaultQueryResultsCache

        QueryResultsCache getDefaultQueryResultsCache()
        Deprecated.
        Access to the "default" region used to store query results when caching was requested but no region was explicitly named. Will return null if Hibernate is not configured for query result caching
      • getQueryResultsCache

        QueryResultsCache getQueryResultsCache​(java.lang.String regionName)
        Deprecated.
        Get query cache by region name or create a new one if none exist. If the region name is null, then default query cache region will be returned. Will return null if Hibernate is not configured for query result caching
      • getQueryResultsCacheStrictly

        QueryResultsCache getQueryResultsCacheStrictly​(java.lang.String regionName)
        Deprecated.
        Get the named QueryResultRegionAccess but not creating one if it does not already exist. This is intended for use by statistics. Will return null if Hibernate is not configured for query result caching or if no such region (yet) exists
        Since:
        5.3
      • close

        void close()
        Deprecated.
        Close this "cache", releasing all underlying resources.
      • getSecondLevelCacheRegionNames

        @Deprecated
        java.lang.String[] getSecondLevelCacheRegionNames()
        Deprecated.
        (since 5.3) Use getCacheRegionNames() instead
        Get the *qualified* names of all regions caching entity and collection data.
        Returns:
        All cache region names
      • getUpdateTimestampsCache

        @Deprecated
        default UpdateTimestampsCache getUpdateTimestampsCache()
        Deprecated.
        Get UpdateTimestampsCache instance managed by the SessionFactory.
      • unqualifyRegionName

        @Deprecated
        default java.lang.String unqualifyRegionName​(java.lang.String name)
        Deprecated.
        (since 5.3) No replacement - added just to continue some backwards compatibility in supporting the newly deprecated methods expecting a qualified (prefix +) region name
      • getRegionByLegacyName

        @Deprecated
        default Region getRegionByLegacyName​(java.lang.String legacyName)
        Deprecated.
        No replacement - added just for support of the newly deprecated methods expecting a qualified region name
      • getNaturalIdAccessesInRegion

        @Deprecated
        java.util.Set<NaturalIdDataAccess> getNaturalIdAccessesInRegion​(java.lang.String legacyQualifiedRegionName)
        Deprecated.
        No replacement - added just for support of the newly deprecated methods expecting a qualified region name