Top Description Fields Constructors Methods
org.hibernate.dialect.lock

public abstract Class LockingStrategyException

extends HibernateException
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.lock.OptimisticEntityLockException, org.hibernate.dialect.lock.PessimisticEntityLockException
Imports
org.hibernate.HibernateException

Represents an error trying to apply a LockingStrategy to an entity
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Object

Constructor Summary

AccessConstructor and Description
public
LockingStrategyException(Object
The entity we were trying to lock
entity
,
String
Message explaining the condition
message
)

Constructs a LockingStrategyException

public
LockingStrategyException(Object
The entity we were trying to lock
entity
,
String
Message explaining the condition
message
,
Throwable
The underlying cause
cause
)

Constructs a LockingStrategyException

Method Summary

Modifier and TypeMethod and Description
public Object

Field Detail

entityback to summary
private final Object entity

Constructor Detail

LockingStrategyExceptionback to summary
public LockingStrategyException(Object entity, String message)

Constructs a LockingStrategyException

Parameters
entity:Object

The entity we were trying to lock

message:String

Message explaining the condition

LockingStrategyExceptionback to summary
public LockingStrategyException(Object entity, String message, Throwable cause)

Constructs a LockingStrategyException

Parameters
entity:Object

The entity we were trying to lock

message:String

Message explaining the condition

cause:Throwable

The underlying cause

Method Detail

getEntityback to summary
public Object getEntity()