Package org.hibernate.event.spi
Class SaveOrUpdateEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.SaveOrUpdateEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class SaveOrUpdateEvent extends AbstractEvent
An event class for saveOrUpdate()- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SaveOrUpdateEvent(java.lang.Object object, EventSource source)SaveOrUpdateEvent(java.lang.String entityName, java.lang.Object original, java.io.Serializable id, EventSource source)SaveOrUpdateEvent(java.lang.String entityName, java.lang.Object original, EventSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetEntity()java.lang.StringgetEntityName()EntityEntrygetEntry()java.lang.ObjectgetObject()java.io.SerializablegetRequestedId()java.io.SerializablegetResultId()voidsetEntity(java.lang.Object entity)voidsetEntityName(java.lang.String entityName)voidsetEntry(EntityEntry entry)voidsetObject(java.lang.Object object)voidsetRequestedId(java.io.Serializable requestedId)voidsetResultId(java.io.Serializable resultId)-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Constructor Detail
-
SaveOrUpdateEvent
public SaveOrUpdateEvent(java.lang.String entityName, java.lang.Object original, EventSource source)
-
SaveOrUpdateEvent
public SaveOrUpdateEvent(java.lang.String entityName, java.lang.Object original, java.io.Serializable id, EventSource source)
-
SaveOrUpdateEvent
public SaveOrUpdateEvent(java.lang.Object object, EventSource source)
-
-
Method Detail
-
getObject
public java.lang.Object getObject()
-
setObject
public void setObject(java.lang.Object object)
-
getRequestedId
public java.io.Serializable getRequestedId()
-
setRequestedId
public void setRequestedId(java.io.Serializable requestedId)
-
getEntityName
public java.lang.String getEntityName()
-
setEntityName
public void setEntityName(java.lang.String entityName)
-
getEntity
public java.lang.Object getEntity()
-
setEntity
public void setEntity(java.lang.Object entity)
-
getEntry
public EntityEntry getEntry()
-
setEntry
public void setEntry(EntityEntry entry)
-
getResultId
public java.io.Serializable getResultId()
-
setResultId
public void setResultId(java.io.Serializable resultId)
-
-