org.hibernate.ejb.util
Class CacheModeHelper
java.lang.Object
org.hibernate.ejb.util.CacheModeHelper
public class CacheModeHelper
- extends Object
Helper to deal with CacheMode <-> CacheRetrieveMode/CacheStoreMode
conversions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CacheModeHelper
public CacheModeHelper()
interpretCacheMode
public static CacheMode interpretCacheMode(CacheStoreMode storeMode,
CacheRetrieveMode retrieveMode)
- Given a JPA
CacheStoreMode and CacheRetrieveMode, determine the corresponding
legacy Hibernate CacheMode.
- Parameters:
storeMode - The JPA shared-cache store mode.retrieveMode - The JPA shared-cache retrieve mode.
- Returns:
- Corresponding
CacheMode.
interpretCacheStoreMode
public static CacheStoreMode interpretCacheStoreMode(CacheMode cacheMode)
interpretCacheRetrieveMode
public static CacheRetrieveMode interpretCacheRetrieveMode(CacheMode cacheMode)
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.