Package org.hibernate.jpa.internal.util
Class CacheModeHelper
- java.lang.Object
-
- org.hibernate.jpa.internal.util.CacheModeHelper
-
public final class CacheModeHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static CacheModeDEFAULT_LEGACY_MODEstatic CacheRetrieveModeDEFAULT_RETRIEVE_MODEstatic CacheStoreModeDEFAULT_STORE_MODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CacheModeeffectiveCacheMode(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode)Given a JPACacheStoreModeandCacheRetrieveMode, determine the corresponding legacy HibernateCacheMode.static CacheModeinterpretCacheMode(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode)Given a JPACacheStoreModeandCacheRetrieveMode, determine the corresponding legacy HibernateCacheMode.static CacheRetrieveModeinterpretCacheRetrieveMode(CacheMode cacheMode)static CacheStoreModeinterpretCacheStoreMode(CacheMode cacheMode)
-
-
-
Field Detail
-
DEFAULT_LEGACY_MODE
public static final CacheMode DEFAULT_LEGACY_MODE
-
DEFAULT_STORE_MODE
public static final CacheStoreMode DEFAULT_STORE_MODE
-
DEFAULT_RETRIEVE_MODE
public static final CacheRetrieveMode DEFAULT_RETRIEVE_MODE
-
-
Method Detail
-
interpretCacheMode
public static CacheMode interpretCacheMode(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode)
Given a JPACacheStoreModeandCacheRetrieveMode, determine the corresponding legacy HibernateCacheMode.- Parameters:
storeMode- The JPA shared-cache store mode.retrieveMode- The JPA shared-cache retrieve mode.- Returns:
- Corresponding
CacheMode.
-
effectiveCacheMode
public static CacheMode effectiveCacheMode(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode)
Given a JPACacheStoreModeandCacheRetrieveMode, determine the corresponding legacy HibernateCacheMode.- Parameters:
storeMode- The JPA shared-cache store mode.retrieveMode- The JPA shared-cache retrieve mode.- Returns:
- Corresponding
CacheMode, or null if both arguments are null.
-
interpretCacheStoreMode
public static CacheStoreMode interpretCacheStoreMode(CacheMode cacheMode)
-
interpretCacheRetrieveMode
public static CacheRetrieveMode interpretCacheRetrieveMode(CacheMode cacheMode)
-
-