Package org.hibernate.event.spi
Class LockEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.LockEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class LockEvent extends AbstractEvent
Defines an event class for the locking of an entity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LockEvent(java.lang.Object object, LockMode lockMode, EventSource source)LockEvent(java.lang.Object object, LockOptions lockOptions, EventSource source)LockEvent(java.lang.String entityName, java.lang.Object original, LockMode lockMode, EventSource source)LockEvent(java.lang.String entityName, java.lang.Object original, LockOptions lockOptions, EventSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEntityName()LockModegetLockMode()LockOptionsgetLockOptions()booleangetLockScope()intgetLockTimeout()java.lang.ObjectgetObject()voidsetEntityName(java.lang.String entityName)voidsetLockMode(LockMode lockMode)voidsetLockScope(boolean cascade)voidsetLockTimeout(int timeout)voidsetObject(java.lang.Object object)-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Constructor Detail
-
LockEvent
public LockEvent(java.lang.String entityName, java.lang.Object original, LockMode lockMode, EventSource source)
-
LockEvent
public LockEvent(java.lang.String entityName, java.lang.Object original, LockOptions lockOptions, EventSource source)
-
LockEvent
public LockEvent(java.lang.Object object, LockMode lockMode, EventSource source)
-
LockEvent
public LockEvent(java.lang.Object object, LockOptions lockOptions, EventSource source)
-
-
Method Detail
-
getObject
public java.lang.Object getObject()
-
setObject
public void setObject(java.lang.Object object)
-
getLockOptions
public LockOptions getLockOptions()
-
getLockMode
public LockMode getLockMode()
-
setLockMode
public void setLockMode(LockMode lockMode)
-
setLockTimeout
public void setLockTimeout(int timeout)
-
getLockTimeout
public int getLockTimeout()
-
setLockScope
public void setLockScope(boolean cascade)
-
getLockScope
public boolean getLockScope()
-
getEntityName
public java.lang.String getEntityName()
-
setEntityName
public void setEntityName(java.lang.String entityName)
-
-