|
||||||||||
| 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.LockTimeoutException
public class LockTimeoutException
Thrown by the persistence provider when an pessimistic locking conflict occurs that does not result in transaction rollback. This exception may be thrown as part of an API call, at, flush or at commit time. The current transaction, if one is active, will be not be marked for rollback.
| Constructor Summary | |
|---|---|
LockTimeoutException()
Default constructor : builds an exception with an empty message. |
|
LockTimeoutException(Object entity)
Build an exception with the given entity object. |
|
LockTimeoutException(String message)
Build an exception with the given message. |
|
LockTimeoutException(String message,
Throwable causedByThrowable)
Builds an exception with a given message and given exception. |
|
LockTimeoutException(String message,
Throwable causedByThrowable,
Object entity)
Builds an exception with a given message and given exception. |
|
LockTimeoutException(Throwable causedByThrowable)
Build an exception with the given exception. |
|
| Method Summary | |
|---|---|
Object |
getObject()
Returns the object 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 LockTimeoutException()
public LockTimeoutException(Object entity)
entity - the given entity to use.public LockTimeoutException(String message)
message - the given message to use.public LockTimeoutException(Throwable causedByThrowable)
causedByThrowable - the cause of this exception.
public LockTimeoutException(String message,
Throwable causedByThrowable)
message - the message of this exception.causedByThrowable - the cause of this exception.
public LockTimeoutException(String message,
Throwable causedByThrowable,
Object entity)
message - the message of this exception.causedByThrowable - the cause of this exception.| Method Detail |
|---|
public Object getObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||