public class DeleteEvent extends AbstractEvent
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
String |
getEntityName() |
Object |
getObject()
Returns the encapsulated entity to be deleed.
|
boolean |
isCascadeDeleteEnabled() |
boolean |
isOrphanRemovalBeforeUpdates() |
getSession
public DeleteEvent(Object object, EventSource source)
object
- The entity to be deleted.source
- The session from which the delete event was generated.public DeleteEvent(String entityName, Object object, EventSource source)
public DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, EventSource source)
public DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, boolean orphanRemovalBeforeUpdates, EventSource source)
public Object getObject()
public String getEntityName()
public boolean isCascadeDeleteEnabled()
public boolean isOrphanRemovalBeforeUpdates()
Copyright © 2016 JBoss by Red Hat. All rights reserved.