Top Description Fields Constructors Methods
org.hibernate.event

public Class PreDeleteEvent

extends AbstractPreDatabaseOperationEvent
Class Inheritance
Imports
java.io.Serializable, org.hibernate.persister.entity.EntityPersister

Represents a pre-delete event, which occurs just prior to performing the deletion of an entity from the database.
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Object[]

Constructor Summary

AccessConstructor and Description
public
PreDeleteEvent(Object
The entity to be deleted.
entity
,
Serializable
The id to use in the deletion.
id
,
Object[]
The entity's state at deletion time.
deletedState
,
EntityPersister
The entity's persister.
persister
,
EventSource
The session from which the event originated.
source
)

Constructs an event containing the pertinent information.

Method Summary

Modifier and TypeMethod and Description
public Object[]

Returns:

Value for property 'deletedState'.
getDeletedState
()

Getter for property 'deletedState'.

Inherited from org.hibernate.event.AbstractPreDatabaseOperationEvent:
getEntitygetIdgetPersistergetSource

Field Detail

deletedStateback to summary
private Object[] deletedState

Constructor Detail

PreDeleteEventback to summary
public PreDeleteEvent(Object entity, Serializable id, Object[] deletedState, EntityPersister persister, EventSource source)

Constructs an event containing the pertinent information.

Parameters
entity:Object

The entity to be deleted.

id:Serializable

The id to use in the deletion.

deletedState:Object[]

The entity's state at deletion time.

persister:EntityPersister

The entity's persister.

source:EventSource

The session from which the event originated.

Method Detail

getDeletedStateback to summary
public Object[] getDeletedState()

Getter for property 'deletedState'. This is the entity state at the time of deletion (useful for optomistic locking and such).

Returns:Object[]

Value for property 'deletedState'.