org.jboss.ejb3.entity
Class SecondLevelCacheUtil
java.lang.Object
org.jboss.ejb3.entity.SecondLevelCacheUtil
public class SecondLevelCacheUtil
- extends Object
Utilities related to the Hibernate 2nd Level Cache
- Author:
- Brian Stansberry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HIBERNATE_CACHE_REGION_PREFIX
public static final String HIBERNATE_CACHE_REGION_PREFIX
- See Also:
- Constant Field Values
createCacheRegionPrefix
public static String createCacheRegionPrefix(String earName,
String jarName,
String unitName)
createRegionFqn
public static String createRegionFqn(String regionName,
String regionPrefix)
isSharedClassLoaderRegion
public static boolean isSharedClassLoaderRegion(String regionName)
convertToHibernateException
public static org.hibernate.cache.CacheException convertToHibernateException(Exception e)
- Creates a CacheException, but doesn't pass JBC CacheException as the cause
as it is a type that likely doesn't exist on a client.
Instead creates a Hibernate CacheException with the original exception's
stack trace.
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.