Top Description Fields Constructors Methods
org.hibernate.event

public Class DeleteEvent

extends AbstractEvent
Class Inheritance

Defines an event class for the deletion of an entity.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private String
private Object

Constructor Summary

AccessConstructor and Description
public
DeleteEvent(Object
The entity to be deleted.
object
,
EventSource
The session from which the delete event was generated.
source
)

Constructs a new DeleteEvent instance.

public
DeleteEvent(String entityName, Object object, EventSource source)

public
DeleteEvent(String entityName, Object object, boolean isCascadeDeleteEnabled, EventSource source)

Method Summary

Modifier and TypeMethod and Description
public String
public Object

Returns:

The entity to be deleted.
getObject
()

Returns the encapsulated entity to be deleed.

public boolean
Inherited from org.hibernate.event.AbstractEvent:
getSession

Field Detail

cascadeDeleteEnabledback to summary
private boolean cascadeDeleteEnabled
entityNameback to summary
private String entityName
objectback to summary
private Object object

Constructor Detail

DeleteEventback to summary
public DeleteEvent(Object object, EventSource source)

Constructs a new DeleteEvent instance.

Parameters
object:Object

The entity to be deleted.

source:EventSource

The session from which the delete event was generated.

DeleteEventback to summary
public DeleteEvent(String entityName, Object object, EventSource source)
DeleteEventback to summary
public DeleteEvent(String entityName, Object object, boolean isCascadeDeleteEnabled, EventSource source)

Method Detail

getEntityNameback to summary
public String getEntityName()
getObjectback to summary
public Object getObject()

Returns the encapsulated entity to be deleed.

Returns:Object

The entity to be deleted.

isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()