public final class CacheModeHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CacheMode |
DEFAULT_LEGACY_MODE |
static javax.persistence.CacheRetrieveMode |
DEFAULT_RETRIEVE_MODE |
static javax.persistence.CacheStoreMode |
DEFAULT_STORE_MODE |
Modifier and Type | Method and Description |
---|---|
static CacheMode |
effectiveCacheMode(javax.persistence.CacheStoreMode storeMode,
javax.persistence.CacheRetrieveMode retrieveMode)
Given a JPA
CacheStoreMode and CacheRetrieveMode , determine the corresponding
legacy Hibernate CacheMode . |
static CacheMode |
interpretCacheMode(javax.persistence.CacheStoreMode storeMode,
javax.persistence.CacheRetrieveMode retrieveMode)
Given a JPA
CacheStoreMode and CacheRetrieveMode , determine the corresponding
legacy Hibernate CacheMode . |
static javax.persistence.CacheRetrieveMode |
interpretCacheRetrieveMode(CacheMode cacheMode) |
static javax.persistence.CacheStoreMode |
interpretCacheStoreMode(CacheMode cacheMode) |
public static final CacheMode DEFAULT_LEGACY_MODE
public static final javax.persistence.CacheStoreMode DEFAULT_STORE_MODE
public static final javax.persistence.CacheRetrieveMode DEFAULT_RETRIEVE_MODE
public static CacheMode interpretCacheMode(javax.persistence.CacheStoreMode storeMode, javax.persistence.CacheRetrieveMode retrieveMode)
CacheStoreMode
and CacheRetrieveMode
, determine the corresponding
legacy Hibernate CacheMode
.storeMode
- The JPA shared-cache store mode.retrieveMode
- The JPA shared-cache retrieve mode.CacheMode
.public static CacheMode effectiveCacheMode(javax.persistence.CacheStoreMode storeMode, javax.persistence.CacheRetrieveMode retrieveMode)
CacheStoreMode
and CacheRetrieveMode
, determine the corresponding
legacy Hibernate CacheMode
.storeMode
- The JPA shared-cache store mode.retrieveMode
- The JPA shared-cache retrieve mode.CacheMode
.public static javax.persistence.CacheStoreMode interpretCacheStoreMode(CacheMode cacheMode)
public static javax.persistence.CacheRetrieveMode interpretCacheRetrieveMode(CacheMode cacheMode)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.