public class EntityDeleteAction extends EntityAction
Constructor and Description |
---|
EntityDeleteAction(Serializable id,
Object[] state,
Object version,
Object instance,
EntityPersister persister,
boolean isCascadeDeleteEnabled,
SessionImplementor session)
Constructs an EntityDeleteAction.
|
Modifier and Type | Method and Description |
---|---|
void |
doAfterTransactionCompletion(boolean success,
SharedSessionContractImplementor session)
Perform whatever processing is encapsulated here after completion of the transaction.
|
void |
execute()
Execute this action.
|
protected boolean |
hasPostCommitEventListeners() |
afterDeserialize, beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, isVeto, listenerGroup, needsAfterTransactionCompletion, setVeto, toString
public EntityDeleteAction(Serializable id, Object[] state, Object version, Object instance, EntityPersister persister, boolean isCascadeDeleteEnabled, SessionImplementor session)
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 sessionpublic void execute() throws HibernateException
Executable
HibernateException
- Indicates a problem during execution.public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session) throws HibernateException
AfterTransactionCompletionProcess
success
- Did the transaction complete successfully? True means it did.session
- The session on which the transaction is completing.HibernateException
protected boolean hasPostCommitEventListeners()
hasPostCommitEventListeners
in class EntityAction
Copyright © 2019 JBoss by Red Hat. All rights reserved.