站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

LockEvent (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.event
Class LockEvent

java.lang.Object
  extended byorg.hibernate.event.AbstractEvent
      extended byorg.hibernate.event.LockEvent
All Implemented Interfaces:
Serializable

public class LockEvent
extends AbstractEvent

Defines an event class for the locking of an entity.

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
LockEvent(Object object, LockMode lockMode, EventSource source)
           
LockEvent(String entityName, Object original, LockMode lockMode, EventSource source)
           
 
Method Summary
 String getEntityName()
           
 LockMode getLockMode()
           
 Object getObject()
           
 void setEntityName(String entityName)
           
 void setLockMode(LockMode lockMode)
           
 void setObject(Object object)
           
 
Methods inherited from class org.hibernate.event.AbstractEvent
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockEvent

public LockEvent(String entityName,
                 Object original,
                 LockMode lockMode,
                 EventSource source)

LockEvent

public LockEvent(Object object,
                 LockMode lockMode,
                 EventSource source)
Method Detail

getObject

public Object getObject()

setObject

public void setObject(Object object)

getLockMode

public LockMode getLockMode()

setLockMode

public void setLockMode(LockMode lockMode)

getEntityName

public String getEntityName()

setEntityName

public void setEntityName(String entityName)