Top Description Fields Constructors Methods
org.hibernate.event.spi

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
private boolean

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
)

Deprecated as a consequence of EventSource being deprecated.
Constructs a new DeleteEvent instance.
public
DeleteEvent(String entityName, Object object, EventSource source)

Deprecated as a consequence of EventSource being deprecated.
public
DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, EventSource source)

Deprecated as a consequence of EventSource being deprecated.
public
DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, boolean orphanRemovalBeforeUpdates, EventSource source)

Deprecated as a consequence of EventSource being deprecated.

Method Summary

Modifier and TypeMethod and Description
public String
public Object

Returns:

The entity to be deleted.
getObject
()

Returns the encapsulated entity to be deleted.

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

Field Detail

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

Constructor Detail

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

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

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)

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

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

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

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

Deprecated

as a consequence of EventSource being deprecated. See corresponding docs for further information.

Method Detail

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

Returns the encapsulated entity to be deleted.

Returns:Object

The entity to be deleted.

isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()
isOrphanRemovalBeforeUpdatesback to summary
public boolean isOrphanRemovalBeforeUpdates()