Jakarta Persistence (JPA) Class
jakarta.persistence.LockTimeoutException
java.lang.Object ∟java.lang.Throwable ∟java.lang.Exception ∟java.lang.RuntimeException ∟jakarta.persistence.PersistenceException ∟jakarta.persistence.LockTimeoutException
- Implemented Interfaces:
Serializable
Thrown by the persistence provider when a 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.
- Since:
- Jakarta Persistence (JPA) 2.0
Public Constructors
- Since:
- Jakarta Persistence (JPA) 1.0
LockTimeoutException(
String message)- Parameters:
message- the detail message.
- Since:
- Jakarta Persistence (JPA) 1.0
LockTimeoutException(
String message, Throwable cause)- Parameters:
cause- the cause.message- the detail message.
- Since:
- Jakarta Persistence (JPA) 1.0
LockTimeoutException(
Throwable cause)- Parameters:
cause- the cause.
- Since:
- Jakarta Persistence (JPA) 1.0
LockTimeoutException(
Object entity)- Parameters:
entity- the entity.
- Since:
- Jakarta Persistence (JPA) 1.0
LockTimeoutException(
String message, Throwable cause, Object entity)- Parameters:
cause- the cause.message- the detail message.entity- the entity.
- Since:
- Jakarta Persistence (JPA) 1.0
Public Instance Methods
Object getObject()- Returns:
- the entity.
- Since:
- Jakarta Persistence (JPA) 1.0
Additional JDK methods inherited from java.lang.Throwable
addSuppressed(Throwable), fillInStackTrace(), fillInStackTrace(int), getCause(), getLocalizedMessage(), getMessage(), getOurStackTrace(), getStackTrace(), getSuppressed(), initCause(Throwable), lockedPrintStackTrace(PrintStreamOrWriter), printEnclosedStackTrace(PrintStreamOrWriter,StackTraceElement~,String,String,Set), printStackTrace(), printStackTrace(PrintStream), printStackTrace(PrintStreamOrWriter), printStackTrace(PrintWriter), readObject(ObjectInputStream), setCause(Throwable), setStackTrace(StackTraceElement~), toString(), validateSuppressedExceptionsList(List), writeObject(ObjectOutputStream)Additional JDK methods inherited from java.lang.Object
clone(), equals(Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long,int), wait0(long)