public class PreDeleteEvent extends AbstractPreDatabaseOperationEvent implements PermissionCheckEntityInformation
Represents a <tt>pre-delete</tt> event, which occurs just prior to performing the deletion of an entity from the database.
Constructor and Description |
---|
PreDeleteEvent(Object entity,
Serializable id,
Object[] deletedState,
EntityPersister persister,
EventSource source)
Constructs an event containing the pertinent information.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getDeletedState()
Getter for property 'deletedState'.
|
getEntity, getEntityName, getId, getIdentifier, getPersister, getSource
getSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity, getEntityName, getIdentifier
public PreDeleteEvent(Object entity, Serializable id, Object[] deletedState, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.
entity
- The entity to be deleted.id
- The id to use in the deletion.deletedState
- The entity’s state at deletion time.persister
- The entity’s persister.source
- The session from which the event originated.public Object[] getDeletedState()
Getter for property 'deletedState'. This is the entity state at the time of deletion (useful for optomistic locking and such).
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.