类 EntityDeleteAction
- java.lang.Object
-
- org.hibernate.action.internal.EntityAction
-
- org.hibernate.action.internal.EntityDeleteAction
-
- 直接已知子类:
OrphanRemovalAction
public class EntityDeleteAction extends EntityAction
The action for performing an entity deletion.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 EntityDeleteAction(Serializable id, Object[] state, Object version, Object instance, EntityPersister persister, boolean isCascadeDeleteEnabled, SessionImplementor session)Constructs an EntityDeleteAction.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddoAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session)Perform whatever processing is encapsulated here after completion of the transaction.voidexecute()Execute this action.protected SoftLockgetLock()protected Object[]getNaturalIdValues()Object[]getState()ObjectgetVersion()protected booleanhasPostCommitEventListeners()booleanisCascadeDeleteEnabled()protected voidpostCommitDelete(boolean success)protected voidpostDelete()protected booleanpreDelete()protected voidsetLock(SoftLock lock)-
从类继承的方法 org.hibernate.action.internal.EntityAction
afterDeserialize, beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, isVeto, listenerGroup, needsAfterTransactionCompletion, setVeto, toString
-
-
-
-
构造器详细资料
-
EntityDeleteAction
public EntityDeleteAction(Serializable id, Object[] state, Object version, Object instance, EntityPersister persister, boolean isCascadeDeleteEnabled, SessionImplementor session)
Constructs an EntityDeleteAction.- 参数:
id- The entity identifierstate- The current (extracted) entity stateversion- The current entity versioninstance- The entity instancepersister- The entity persisterisCascadeDeleteEnabled- Whether cascade delete is enabledsession- The session
-
-
方法详细资料
-
getVersion
public Object getVersion()
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
-
getState
public Object[] getState()
-
getNaturalIdValues
protected Object[] getNaturalIdValues()
-
getLock
protected SoftLock getLock()
-
setLock
protected void setLock(SoftLock lock)
-
execute
public void execute() throws HibernateException从接口复制的说明:ExecutableExecute this action.- 抛出:
HibernateException- Indicates a problem during execution.
-
preDelete
protected boolean preDelete()
-
postDelete
protected void postDelete()
-
postCommitDelete
protected void postCommitDelete(boolean success)
-
doAfterTransactionCompletion
public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session) throws HibernateException从接口复制的说明:AfterTransactionCompletionProcessPerform whatever processing is encapsulated here after completion of the transaction.- 参数:
success- Did the transaction complete successfully? True means it did.session- The session on which the transaction is completing.- 抛出:
HibernateException
-
hasPostCommitEventListeners
protected boolean hasPostCommitEventListeners()
- 指定者:
hasPostCommitEventListeners在类中EntityAction
-
-