Package org.hibernate.event.spi
Class SaveOrUpdateEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.SaveOrUpdateEvent
-
- All Implemented Interfaces:
Serializable
public class SaveOrUpdateEvent extends AbstractEvent
An event class for saveOrUpdate()- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SaveOrUpdateEvent(Object object, EventSource source)
SaveOrUpdateEvent(String entityName, Object original, Object id, EventSource source)
SaveOrUpdateEvent(String entityName, Object original, EventSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getEntity()
String
getEntityName()
EntityEntry
getEntry()
Object
getObject()
Object
getRequestedId()
Object
getResultId()
void
setEntity(Object entity)
void
setEntityName(String entityName)
void
setEntry(EntityEntry entry)
void
setObject(Object object)
void
setRequestedId(Object requestedId)
void
setResultId(Object resultId)
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getFactory, getSession
-
-
-
-
Constructor Detail
-
SaveOrUpdateEvent
public SaveOrUpdateEvent(String entityName, Object original, EventSource source)
-
SaveOrUpdateEvent
public SaveOrUpdateEvent(String entityName, Object original, Object id, EventSource source)
-
SaveOrUpdateEvent
public SaveOrUpdateEvent(Object object, EventSource source)
-
-
Method Detail
-
getObject
public Object getObject()
-
setObject
public void setObject(Object object)
-
getRequestedId
public Object getRequestedId()
-
setRequestedId
public void setRequestedId(Object 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 Object getResultId()
-
setResultId
public void setResultId(Object resultId)
-
-