Package org.hibernate.jpa.internal.util
Class CacheModeHelper
java.lang.Object
org.hibernate.jpa.internal.util.CacheModeHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CacheMode
static final CacheRetrieveMode
static final CacheStoreMode
-
Method Summary
Modifier and TypeMethodDescriptionstatic CacheMode
effectiveCacheMode
(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode) Given a JPACacheStoreMode
andCacheRetrieveMode
, determine the corresponding legacy HibernateCacheMode
.static CacheMode
interpretCacheMode
(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode) Given a JPACacheStoreMode
andCacheRetrieveMode
, determine the corresponding legacy HibernateCacheMode
.static CacheRetrieveMode
interpretCacheRetrieveMode
(CacheMode cacheMode) static CacheStoreMode
interpretCacheStoreMode
(CacheMode cacheMode)
-
Field Details
-
DEFAULT_LEGACY_MODE
-
DEFAULT_STORE_MODE
-
DEFAULT_RETRIEVE_MODE
-
-
Method Details
-
interpretCacheMode
public static CacheMode interpretCacheMode(CacheStoreMode storeMode, CacheRetrieveMode retrieveMode) Given a JPACacheStoreMode
andCacheRetrieveMode
, 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 JPACacheStoreMode
andCacheRetrieveMode
, 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
-
interpretCacheRetrieveMode
-