Top Fields Constructors Methods
org.hibernate.action

public final Class EntityDeleteAction

extends EntityAction
Class Inheritance
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, org.hibernate.cache.CacheKey, org.hibernate.cache.access.SoftLock, org.hibernate.engine.EntityEntry, .EntityKey, .PersistenceContext, .SessionImplementor, org.hibernate.event.PostDeleteEvent, .PostDeleteEventListener, .PreDeleteEvent, .PreDeleteEventListener, .EventSource, org.hibernate.persister.entity.EntityPersister

Field Summary

Modifier and TypeField and Description
private final boolean
private SoftLock
private final Object[]
private final Object

Constructor Summary

AccessConstructor and Description
public
EntityDeleteAction(final Serializable id, final Object[] state, final Object version, final Object instance, final EntityPersister persister, final boolean isCascadeDeleteEnabled, final SessionImplementor session)

Method Summary

Modifier and TypeMethod and Description
public void
doAfterTransactionCompletion(boolean
Did the transaction complete successfully? True means it did.
success
,
SessionImplementor
The session on which the transaction is completing.
session
)

Implements org.hibernate.action.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Perform whatever processing is encapsulated here after completion of the transaction.
public void
execute()

Implements org.hibernate.action.Executable.execute.

Execute this action
protected boolean
private void
private void
private boolean
Inherited from org.hibernate.action.EntityAction:
beforeExecutionscompareTogetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetEntityNamegetIdgetInstancegetPersistergetPropertySpacesgetSessionneedsAfterTransactionCompletiontoString

Field Detail

isCascadeDeleteEnabledback to summary
private final boolean isCascadeDeleteEnabled
lockback to summary
private SoftLock lock
stateback to summary
private final Object[] state
versionback to summary
private final Object version

Constructor Detail

EntityDeleteActionback to summary
public EntityDeleteAction(final Serializable id, final Object[] state, final Object version, final Object instance, final EntityPersister persister, final boolean isCascadeDeleteEnabled, final SessionImplementor session)

Method Detail

doAfterTransactionCompletionback to summary
public void doAfterTransactionCompletion(boolean success, SessionImplementor session) throws HibernateException

Implements org.hibernate.action.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Doc from org.hibernate.action.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Perform whatever processing is encapsulated here after completion of the transaction.

Parameters
success:boolean

Did the transaction complete successfully? True means it did.

session:SessionImplementor

The session on which the transaction is completing.

executeback to summary
public void execute() throws HibernateException

Implements org.hibernate.action.Executable.execute.

Doc from org.hibernate.action.Executable.execute.

Execute this action

Exceptions
HibernateException:
Indicates a problem during execution.
hasPostCommitEventListenersback to summary
protected boolean hasPostCommitEventListeners()

Implements abstract org.hibernate.action.EntityAction.hasPostCommitEventListeners.

postCommitDeleteback to summary
private void postCommitDelete()
postDeleteback to summary
private void postDelete()
preDeleteback to summary
private boolean preDelete()