javax.persistence
Class OptimisticLockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.OptimisticLockException
- All Implemented Interfaces:
- Serializable
public class OptimisticLockException
- extends PersistenceException
Thrown by the persistence provider when an optimistic locking conflict occurs.
This exception may be thrown as part of an API call, a flush or at commit time.
The current transaction, if one is active, will be marked for rollback.
- Author:
- Emmanuel Bernard
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OptimisticLockException
public OptimisticLockException()
OptimisticLockException
public OptimisticLockException(Object entity)
OptimisticLockException
public OptimisticLockException(Throwable cause)
OptimisticLockException
public OptimisticLockException(String message)
OptimisticLockException
public OptimisticLockException(String message,
Throwable cause)
OptimisticLockException
public OptimisticLockException(String message,
Throwable cause,
Object entity)
getEntity
public Object getEntity()