Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Constructor Summary
`OptimisticLockException()`
`OptimisticLockException(Object entity)`
`OptimisticLockException(String message)`
`OptimisticLockException(String message, Throwable cause)`
`OptimisticLockException(String message, Throwable cause, Object entity)`
`OptimisticLockException(Throwable cause)`

Method Summary
`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(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)

Method Detail

### getEntity

    public Object getEntity()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD