| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.persistence.PersistenceException javax.persistence.OptimisticLockException
OptimisticLockException | public class OptimisticLockException extends PersistenceException (Code) | | 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.
since: Java Persistence 1.0 |
Method Summary | |
public Object | getEntity() Returns the entity that caused this exception. |
entity | Object entity(Code) | | The object that caused the exception
|
OptimisticLockException | public OptimisticLockException()(Code) | | Constructs a new OptimisticLockException exception
with null as its detail message.
|
OptimisticLockException | public OptimisticLockException(String message)(Code) | | Constructs a new OptimisticLockException exception
with the specified detail message.
Parameters: message - the detail message. |
OptimisticLockException | public OptimisticLockException(String message, Throwable cause)(Code) | | Constructs a new OptimisticLockException exception
with the specified detail message and cause.
Parameters: message - the detail message. Parameters: cause - the cause. |
OptimisticLockException | public OptimisticLockException(Throwable cause)(Code) | | Constructs a new OptimisticLockException exception
with the specified cause.
Parameters: cause - the cause. |
OptimisticLockException | public OptimisticLockException(Object entity)(Code) | | Constructs a new OptimisticLockException exception
with the specified entity.
Parameters: entity - the entity. |
OptimisticLockException | public OptimisticLockException(String message, Throwable cause, Object entity)(Code) | | Constructs a new OptimisticLockException exception
with the specified detail message, cause, and entity.
Parameters: message - the detail message. Parameters: cause - the cause. Parameters: entity - the entity. |
getEntity | public Object getEntity()(Code) | | Returns the entity that caused this exception.
the entity. |
|
|