org.jboss.ejb3.entity
Class SecondLevelCacheUtil

java.lang.Object
  extended by org.jboss.ejb3.entity.SecondLevelCacheUtil

public class SecondLevelCacheUtil
extends Object

Utilities related to the Hibernate 2nd Level Cache

Author:
Brian Stansberry

Field Summary
static String HIBERNATE_CACHE_REGION_PREFIX
           
 
Method Summary
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.
static String createCacheRegionPrefix(String earName, String jarName, String unitName)
           
static String createRegionFqn(String regionName, String regionPrefix)
           
static boolean isSharedClassLoaderRegion(String regionName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIBERNATE_CACHE_REGION_PREFIX

public static final String HIBERNATE_CACHE_REGION_PREFIX
See Also:
Constant Field Values
Method Detail

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.