类 PreDeleteEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
-
- org.hibernate.event.spi.PreDeleteEvent
-
- 所有已实现的接口:
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.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 PreDeleteEvent(Object entity, Serializable id, Object[] deletedState, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Object[]getDeletedState()Getter for property 'deletedState'.-
从类继承的方法 org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
getEntity, getEntityName, getId, getIdentifier, getPersister, getSource
-
从类继承的方法 org.hibernate.event.spi.AbstractEvent
getSession
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.secure.spi.PermissionCheckEntityInformation
getEntity, getEntityName, getIdentifier
-
-
-
-
构造器详细资料
-
PreDeleteEvent
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.
-
-
方法详细资料
-
getDeletedState
public Object[] getDeletedState()
Getter for property 'deletedState'. This is the entity state at the time of deletion (useful for optimistic locking and such).- 返回:
- Value for property 'deletedState'.
-
-