EntityManager#find(Class, Object, LockModeType), EntityManager#find(Class, Object, LockModeType, java.util.Map) , EntityManager#lock(Object, LockModeType), EntityManager#lock(Object, LockModeType, java.util.Map)
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Object | entity
The object that caused the exception |
| Access | Constructor and Description |
|---|---|
| public | OptimisticLockException()
Constructs a new |
| public | OptimisticLockException(String
the detail message. message)Constructs a new |
| public | OptimisticLockException(String
the detail message. message, Throwable the cause. cause)Constructs a new |
| public | OptimisticLockException(Throwable
the cause. cause)Constructs a new |
| public | OptimisticLockException(Object
the entity. entity)Constructs a new |
| public | OptimisticLockException(String
the detail message. message, Throwable the cause. cause, Object the entity. entity)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| entity | back to summary |
|---|---|
| pack-priv Object entity The object that caused the exception | |
| OptimisticLockException | back to summary |
|---|---|
| public OptimisticLockException() Constructs a new | |
| OptimisticLockException | back to summary |
|---|---|
| public OptimisticLockException(String message) Constructs a new
| |
| OptimisticLockException | back to summary |
|---|---|
| public OptimisticLockException(String message, Throwable cause) Constructs a new | |
| OptimisticLockException | back to summary |
|---|---|
| public OptimisticLockException(Throwable cause) Constructs a new
| |
| OptimisticLockException | back to summary |
|---|---|
| public OptimisticLockException(Object entity) Constructs a new
| |
| OptimisticLockException | back to summary |
|---|---|
| public OptimisticLockException(String message, Throwable cause, Object entity) Constructs a new | |
| getEntity | back to summary |
|---|---|
| public Object getEntity() Returns the entity that caused this exception.
| |