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

public Class PreDeleteEvent

extends AbstractPreDatabaseOperationEvent
implements PermissionCheckEntityInformation
Class Inheritance
All Implemented Interfaces
org.hibernate.secure.spi.PermissionCheckEntityInformation
Imports
java.io.Serializable, org.hibernate.persister.entity.EntityPersister, org.hibernate.secure.spi.PermissionCheckEntityInformation

Deprecated

as a consequence of AbstractPreDatabaseOperationEvent and PermissionCheckEntityInformation being deprecated. See corresponding docs for further information.

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
)

Deprecated as a consequence of EventSource being deprecated.
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.spi.AbstractPreDatabaseOperationEvent:
getEntitygetEntityNamegetIdgetIdentifiergetPersistergetSource

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)

Deprecated

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

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 optimistic locking and such).

Returns:Object[]

Value for property 'deletedState'.