Package org.hibernate.event.spi
Class PreDeleteEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
-
- org.hibernate.event.spi.PreDeleteEvent
-
- All Implemented Interfaces:
java.io.Serializable
,PermissionCheckEntityInformation
public class PreDeleteEvent extends AbstractPreDatabaseOperationEvent implements PermissionCheckEntityInformation
Represents a pre-delete event, which occurs just prior to performing the deletion of an entity from the database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreDeleteEvent(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] deletedState, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getDeletedState()
Getter for property 'deletedState'.-
Methods inherited from class org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
getEntity, getEntityName, getId, getIdentifier, getPersister, getSource
-
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.secure.spi.PermissionCheckEntityInformation
getEntity, getEntityName, getIdentifier
-
-
-
-
Constructor Detail
-
PreDeleteEvent
public PreDeleteEvent(java.lang.Object entity, java.io.Serializable id, java.lang.Object[] deletedState, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.- Parameters:
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.
-
-