类 CacheModeHelper


  • public final class CacheModeHelper
    extends Object
    Helper to deal with CacheMode <-> CacheRetrieveMode/CacheStoreMode conversions.
    作者:
    Steve Ebersole
    • 字段详细资料

      • DEFAULT_LEGACY_MODE

        public static final CacheMode DEFAULT_LEGACY_MODE
      • DEFAULT_STORE_MODE

        public static final javax.persistence.CacheStoreMode DEFAULT_STORE_MODE
      • DEFAULT_RETRIEVE_MODE

        public static final javax.persistence.CacheRetrieveMode DEFAULT_RETRIEVE_MODE
    • 方法详细资料

      • interpretCacheMode

        public static CacheMode interpretCacheMode​(javax.persistence.CacheStoreMode storeMode,
                                                   javax.persistence.CacheRetrieveMode retrieveMode)
        Given a JPA CacheStoreMode and CacheRetrieveMode, determine the corresponding legacy Hibernate CacheMode.
        参数:
        storeMode - The JPA shared-cache store mode.
        retrieveMode - The JPA shared-cache retrieve mode.
        返回:
        Corresponding CacheMode.
      • effectiveCacheMode

        public static CacheMode effectiveCacheMode​(javax.persistence.CacheStoreMode storeMode,
                                                   javax.persistence.CacheRetrieveMode retrieveMode)
        Given a JPA CacheStoreMode and CacheRetrieveMode, determine the corresponding legacy Hibernate CacheMode.
        参数:
        storeMode - The JPA shared-cache store mode.
        retrieveMode - The JPA shared-cache retrieve mode.
        返回:
        Corresponding CacheMode.
      • interpretCacheStoreMode

        public static javax.persistence.CacheStoreMode interpretCacheStoreMode​(CacheMode cacheMode)
      • interpretCacheRetrieveMode

        public static javax.persistence.CacheRetrieveMode interpretCacheRetrieveMode​(CacheMode cacheMode)