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

SaveOrUpdateEvent (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.event
Class SaveOrUpdateEvent

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

public class SaveOrUpdateEvent
extends AbstractEvent

An event class for saveOrUpdate()

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
SaveOrUpdateEvent(Object object, EventSource source)
           
SaveOrUpdateEvent(String entityName, Object original, EventSource source)
           
SaveOrUpdateEvent(String entityName, Object original, Serializable id, EventSource source)
           
 
Method Summary
 Object getEntity()
           
 String getEntityName()
           
 EntityEntry getEntry()
           
 Object getObject()
           
 Serializable getRequestedId()
           
 Serializable getResultId()
           
 void setEntity(Object entity)
           
 void setEntityName(String entityName)
           
 void setEntry(EntityEntry entry)
           
 void setObject(Object object)
           
 void setRequestedId(Serializable requestedId)
           
 void setResultId(Serializable resultId)
           
 
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

SaveOrUpdateEvent

public SaveOrUpdateEvent(String entityName,
                         Object original,
                         EventSource source)

SaveOrUpdateEvent

public SaveOrUpdateEvent(String entityName,
                         Object original,
                         Serializable id,
                         EventSource source)

SaveOrUpdateEvent

public SaveOrUpdateEvent(Object object,
                         EventSource source)
Method Detail

getObject

public Object getObject()

setObject

public void setObject(Object object)

getRequestedId

public Serializable getRequestedId()

setRequestedId

public void setRequestedId(Serializable requestedId)

getEntityName

public String getEntityName()

setEntityName

public void setEntityName(String entityName)

getEntity

public Object getEntity()

setEntity

public void setEntity(Object entity)

getEntry

public EntityEntry getEntry()

setEntry

public void setEntry(EntityEntry entry)

getResultId

public Serializable getResultId()

setResultId

public void setResultId(Serializable resultId)