org.granite.hibernate4
Class HibernateOptimisticLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.hibernate.HibernateException
                  extended by org.hibernate.StaleStateException
                      extended by org.granite.hibernate4.HibernateOptimisticLockException
All Implemented Interfaces:
Serializable

public class HibernateOptimisticLockException
extends StaleStateException

Author:
William DRAI
See Also:
Serialized Form

Constructor Summary
HibernateOptimisticLockException(String message, Throwable cause, Object entity)
           
 
Method Summary
 Object getEntity()
           
static void rethrowOptimisticLockException(Session session, StaleObjectStateException sose)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HibernateOptimisticLockException

public HibernateOptimisticLockException(String message,
                                        Throwable cause,
                                        Object entity)
Method Detail

getEntity

public Object getEntity()

rethrowOptimisticLockException

public static void rethrowOptimisticLockException(Session session,
                                                  StaleObjectStateException sose)