DeleteEventpublic class DeleteEvent extends AbstractEvent Defines an event class for the deletion of an entity. |
Fields Summary |
---|
private Object | object | private String | entityName | private boolean | cascadeDeleteEnabled |
Constructors Summary |
---|
public DeleteEvent(Object object, EventSource source)Constructs a new DeleteEvent instance.
super(source);
if (object == null) {
throw new IllegalArgumentException(
"attempt to create delete event with null entity"
);
}
this.object = object;
| public DeleteEvent(String entityName, Object object, EventSource source)
this(object, source);
this.entityName = entityName;
| public DeleteEvent(String entityName, Object object, boolean isCascadeDeleteEnabled, EventSource source)
this(object, source);
this.entityName = entityName;
cascadeDeleteEnabled = isCascadeDeleteEnabled;
|
Methods Summary |
---|
public java.lang.String | getEntityName()
return entityName;
| public java.lang.Object | getObject()Returns the encapsulated entity to be deleed.
return object;
| public boolean | isCascadeDeleteEnabled()
return cascadeDeleteEnabled;
|
|