javax.persistence
Class OptimisticLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.persistence.PersistenceException
                  extended by javax.persistence.OptimisticLockException
All Implemented Interfaces:
java.io.Serializable

public class OptimisticLockException
extends PersistenceException

Thrown by the persistence provider when an optimistic locking conflict occurs.

See Also:
Serialized Form

Constructor Summary
OptimisticLockException()
           
OptimisticLockException(java.lang.Object entity)
           
OptimisticLockException(java.lang.String message)
           
OptimisticLockException(java.lang.String message, java.lang.Throwable cause)
           
OptimisticLockException(java.lang.String message, java.lang.Throwable cause, java.lang.Object entity)
           
OptimisticLockException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Object getEntity()
           
 
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

OptimisticLockException

public OptimisticLockException()

OptimisticLockException

public OptimisticLockException(java.lang.Object entity)

OptimisticLockException

public OptimisticLockException(java.lang.String message)

OptimisticLockException

public OptimisticLockException(java.lang.String message,
                               java.lang.Throwable cause)

OptimisticLockException

public OptimisticLockException(java.lang.String message,
                               java.lang.Throwable cause,
                               java.lang.Object entity)

OptimisticLockException

public OptimisticLockException(java.lang.Throwable cause)
Method Detail

getEntity

public java.lang.Object getEntity()