Package org.hibernate.event.spi
Class DeleteEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.DeleteEvent
-
- All Implemented Interfaces:
Serializable
public class DeleteEvent extends AbstractEvent
Defines an event class for the deletion of an entity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeleteEvent(Object object, EventSource source)
Constructs a new DeleteEvent instance.DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, boolean orphanRemovalBeforeUpdates, EventSource source)
DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, EventSource source)
DeleteEvent(String entityName, Object object, EventSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEntityName()
Object
getObject()
Returns the encapsulated entity to be deleted.boolean
isCascadeDeleteEnabled()
boolean
isOrphanRemovalBeforeUpdates()
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
Constructor Detail
-
DeleteEvent
public DeleteEvent(Object object, EventSource source)
Constructs a new DeleteEvent instance.- Parameters:
object
- The entity to be deleted.source
- The session from which the delete event was generated.
-
DeleteEvent
public DeleteEvent(String entityName, Object object, EventSource source)
-
DeleteEvent
public DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, EventSource source)
-
DeleteEvent
public DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, boolean orphanRemovalBeforeUpdates, EventSource source)
-
-
Method Detail
-
getObject
public Object getObject()
Returns the encapsulated entity to be deleted.- Returns:
- The entity to be deleted.
-
getEntityName
public String getEntityName()
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
-
isOrphanRemovalBeforeUpdates
public boolean isOrphanRemovalBeforeUpdates()
-
-