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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 isCascadeDeleteEnabled,
EventSource source)
getObject
public Object getObject()
- Returns the encapsulated entity to be deleed.
- Returns:
- The entity to be deleted.
getEntityName
public String getEntityName()
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.