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.Object
getEntity()
java.lang.String
getEntityName()
EntityEntry
getEntry()
java.lang.Object
getObject()
java.io.Serializable
getRequestedId()
java.io.Serializable
getResultId()
void
setEntity(java.lang.Object entity)
void
setEntityName(java.lang.String entityName)
void
setEntry(EntityEntry entry)
void
setObject(java.lang.Object object)
void
setRequestedId(java.io.Serializable requestedId)
void
setResultId(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)
-
-