Top Description Fields Constructors Methods
jakarta.persistence

public Class LockTimeoutException

extends PersistenceException
Class Inheritance

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
2.0

Field Summary

Modifier and TypeField and Description
pack-priv Object
entity

The object that caused the exception

Constructor Summary

AccessConstructor and Description
public
LockTimeoutException()

Constructs a new LockTimeoutException exception with null as its detail message.

public
LockTimeoutException(String
the detail message.
message
)

Constructs a new LockTimeoutException exception with the specified detail message.

public
LockTimeoutException(String
the detail message.
message
,
Throwable
the cause.
cause
)

Constructs a new LockTimeoutException exception with the specified detail message and cause.

public
LockTimeoutException(Throwable
the cause.
cause
)

Constructs a new LockTimeoutException exception with the specified cause.

public
LockTimeoutException(Object
the entity.
entity
)

Constructs a new LockTimeoutException exception with the specified object.

public
LockTimeoutException(String
the detail message.
message
,
Throwable
the cause.
cause
,
Object
the entity.
entity
)

Constructs a new LockTimeoutException exception with the specified detail message, cause, and entity.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the entity
getObject
()

Returns the object that caused this exception.

Field Detail

entityback to summary
pack-priv Object entity

The object that caused the exception

Constructor Detail

LockTimeoutExceptionback to summary
public LockTimeoutException()

Constructs a new LockTimeoutException exception with null as its detail message.

LockTimeoutExceptionback to summary
public LockTimeoutException(String message)

Constructs a new LockTimeoutException exception with the specified detail message.

Parameters
message:String

the detail message.

LockTimeoutExceptionback to summary
public LockTimeoutException(String message, Throwable cause)

Constructs a new LockTimeoutException exception with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

the cause.

LockTimeoutExceptionback to summary
public LockTimeoutException(Throwable cause)

Constructs a new LockTimeoutException exception with the specified cause.

Parameters
cause:Throwable

the cause.

LockTimeoutExceptionback to summary
public LockTimeoutException(Object entity)

Constructs a new LockTimeoutException exception with the specified object.

Parameters
entity:Object

the entity.

LockTimeoutExceptionback to summary
public LockTimeoutException(String message, Throwable cause, Object entity)

Constructs a new LockTimeoutException exception with the specified detail message, cause, and entity.

Parameters
message:String

the detail message.

cause:Throwable

the cause.

entity:Object

the entity.

Method Detail

getObjectback to summary
public Object getObject()

Returns the object that caused this exception.

Returns:Object

the entity