接口 CacheImplementor

    • 方法详细资料

      • getRegionFactory

        RegionFactory getRegionFactory()
        已过时。
        The underlying RegionFactory in use.
      • prime

        void prime​(Set<DomainDataRegionConfig> cacheRegionConfigs)
        已过时。
        An initialization phase allowing the caching provider to prime itself from the passed configs
        从以下版本开始:
        5.3
      • getRegion

        Region getRegion​(String regionName)
        已过时。
        Get a cache Region by name
        从以下版本开始:
        5.3
      • getCacheRegionNames

        Set<String> getCacheRegionNames()
        已过时。
        The unqualified name of all regions. Intended for use with getRegion(java.lang.String)
        从以下版本开始:
        5.3
      • getTimestampsCache

        TimestampsCache getTimestampsCache()
        已过时。
        Find the cache data access strategy for Hibernate's timestamps cache. Will return null if Hibernate is not configured for query result caching
        从以下版本开始:
        5.3
      • getDefaultQueryResultsCache

        QueryResultsCache getDefaultQueryResultsCache()
        已过时。
        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​(String regionName)
        已过时。
        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​(String regionName)
        已过时。
        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
        从以下版本开始:
        5.3
      • close

        void close()
        已过时。
        Close this "cache", releasing all underlying resources.
      • getSecondLevelCacheRegionNames

        @Deprecated
        String[] getSecondLevelCacheRegionNames()
        已过时。
        (since 5.3) Use getCacheRegionNames() instead
        Get the *qualified* names of all regions caching entity and collection data.
        返回:
        All cache region names
      • getNaturalIdCacheRegionAccessStrategy

        @Deprecated
        NaturalIdDataAccess getNaturalIdCacheRegionAccessStrategy​(NavigableRole rootEntityName)
        Find the cache data access strategy for the given entity's natural-id cache. Will return null when the entity does not define a natural-id, or its natural-id is not configured for caching.
        参数:
        rootEntityName - The NavigableRole representation of the root entity
      • unqualifyRegionName

        @Deprecated
        default String unqualifyRegionName​(String name)
        已过时。
        (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​(String legacyName)
        已过时。
        No replacement - added just for support of the newly deprecated methods expecting a qualified region name
      • getNaturalIdAccessesInRegion

        @Deprecated
        Set<NaturalIdDataAccess> getNaturalIdAccessesInRegion​(String legacyQualifiedRegionName)
        已过时。
        No replacement - added just for support of the newly deprecated methods expecting a qualified region name