类 AbstractPreDatabaseOperationEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
-
- 所有已实现的接口:
Serializable,PermissionCheckEntityInformation
- 直接已知子类:
PreDeleteEvent,PreInsertEvent,PreUpdateEvent
public abstract class AbstractPreDatabaseOperationEvent extends AbstractEvent implements PermissionCheckEntityInformation
Represents an operation we are about to perform against the database.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AbstractPreDatabaseOperationEvent(EventSource source, Object entity, Serializable id, EntityPersister persister)Constructs an event containing the pertinent information.
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 ObjectgetEntity()Retrieves the entity involved in the database operation.StringgetEntityName()SerializablegetId()The id to be used in the database operation.SerializablegetIdentifier()EntityPersistergetPersister()The persister for theentity.EventSourcegetSource()已过时。UseAbstractEvent.getSession()instead-
从类继承的方法 org.hibernate.event.spi.AbstractEvent
getSession
-
-
-
-
构造器详细资料
-
AbstractPreDatabaseOperationEvent
public AbstractPreDatabaseOperationEvent(EventSource source, Object entity, Serializable id, EntityPersister persister)
Constructs an event containing the pertinent information.- 参数:
source- The session from which the event originated.entity- The entity to be involved in the database operation.id- The entity id to be involved in the database operation.persister- The entity's persister.
-
-
方法详细资料
-
getEntity
public Object getEntity()
Retrieves the entity involved in the database operation.- 指定者:
getEntity在接口中PermissionCheckEntityInformation- 返回:
- The entity.
-
getId
public Serializable getId()
The id to be used in the database operation.- 返回:
- The id.
-
getPersister
public EntityPersister getPersister()
The persister for theentity.- 返回:
- The entity persister.
-
getSource
@Deprecated public EventSource getSource()
已过时。UseAbstractEvent.getSession()insteadGetter for property 'source'. This is the session from which the event originated. Some of the pre-* events had previous exposed the event source using getSource() because they had not originally extended fromAbstractEvent.- 返回:
- Value for property 'source'.
-
getEntityName
public String getEntityName()
-
getIdentifier
public Serializable getIdentifier()
-
-