|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
javax.persistence.PessimisticLockException
public class PessimisticLockException
Thrown by the persistence provider when an pessimistic 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.
| Constructor Summary | |
|---|---|
PessimisticLockException()
Default constructor : builds an exception with an empty message. |
|
PessimisticLockException(Object entity)
Build an exception with the given entity object. |
|
PessimisticLockException(String message)
Build an exception with the given message. |
|
PessimisticLockException(String message,
Throwable causedByThrowable)
Builds an exception with a given message and given exception. |
|
PessimisticLockException(String message,
Throwable causedByThrowable,
Object entity)
Builds an exception with a given message and given exception. |
|
PessimisticLockException(Throwable causedByThrowable)
Build an exception with the given exception. |
|
| Method Summary | |
|---|---|
Object |
getEntity()
Returns the entity that caused this exception. |
| 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 |
|---|
public PessimisticLockException()
public PessimisticLockException(Object entity)
entity - the given entity to use.public PessimisticLockException(String message)
message - the given message to use.public PessimisticLockException(Throwable causedByThrowable)
causedByThrowable - the cause of this exception.
public PessimisticLockException(String message,
Throwable causedByThrowable)
message - the message of this exception.causedByThrowable - the cause of this exception.
public PessimisticLockException(String message,
Throwable causedByThrowable,
Object entity)
message - the message of this exception.causedByThrowable - the cause of this exception.| Method Detail |
|---|
public Object getEntity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||