org.jboss.hibernate.jbc.cacheprovider
Class SecondLevelCacheUtil

java.lang.Object
  extended by org.jboss.hibernate.jbc.cacheprovider.SecondLevelCacheUtil

public class SecondLevelCacheUtil
extends Object

Utilities related to the Hibernate 2nd Level Cache

Author:
Brian Stansberry, Galder Zamarreno

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 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
 

Method Detail

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 © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.