Top Description Fields Constructors Methods
org.hibernate.action.internal

public Class EntityDeleteAction

extends EntityAction
Class Inheritance
Known Direct Subclasses
org.hibernate.action.internal.OrphanRemovalAction
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, org.hibernate.cache.spi.access.EntityDataAccess, .SoftLock, org.hibernate.engine.spi.EntityEntry, .PersistenceContext, .SessionImplementor, .SharedSessionContractImplementor, org.hibernate.event.service.spi.EventListenerGroup, org.hibernate.event.spi.PostCommitDeleteEventListener, .PostDeleteEvent, .PostDeleteEventListener, .PreDeleteEvent, .PreDeleteEventListener, org.hibernate.persister.entity.EntityPersister, org.hibernate.stat.spi.StatisticsImplementor

The action for performing an entity deletion.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
EntityDeleteAction(final Serializable
The entity identifier
id
,
final Object[]
The current (extracted) entity state
state
,
final Object
The current entity version
version
,
final Object
The entity instance
instance
,
final EntityPersister
The entity persister
persister
,
final boolean
Whether cascade delete is enabled
isCascadeDeleteEnabled
,
final SessionImplementor
The session
session
)

Deprecated as a consequence of SessionImplementor being deprecated.
Constructs an EntityDeleteAction.

Method Summary

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

Implements org.hibernate.action.spi.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

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

Implements org.hibernate.action.spi.Executable.execute.

Execute this action.
protected SoftLock
protected Object[]
public Object[]
public Object
protected boolean
public boolean
pack-priv PostDeleteEvent
protected void
postCommitDelete(boolean success)

private static void
protected void
protected boolean
protected void
Inherited from org.hibernate.action.internal.EntityAction:
afterDeserializebeforeExecutionscompareToeventSourcegetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetDelayedIdgetEntityNamegetFastSessionServicesgetIdgetInstancegetPersistergetPropertySpacesgetSessionisVetolistenerGroupneedsAfterTransactionCompletionsetVetotoString

Field Detail

isCascadeDeleteEnabledback to summary
private final boolean isCascadeDeleteEnabled
lockback to summary
private SoftLock lock
naturalIdValuesback to summary
private Object[] naturalIdValues
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)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Constructs an EntityDeleteAction.

Parameters
id:Serializable

The entity identifier

state:Object[]

The current (extracted) entity state

version:Object

The current entity version

instance:Object

The entity instance

persister:EntityPersister

The entity persister

isCascadeDeleteEnabled:boolean

Whether cascade delete is enabled

session:SessionImplementor

The session

Method Detail

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

Implements org.hibernate.action.spi.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Doc from org.hibernate.action.spi.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:SharedSessionContractImplementor

The session on which the transaction is completing.

Annotations
@Override
executeback to summary
public void execute() throws HibernateException

Implements org.hibernate.action.spi.Executable.execute.

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

Execute this action.

Annotations
@Override
Exceptions
HibernateException:
Indicates a problem during execution.
getLockback to summary
protected SoftLock getLock()
getNaturalIdValuesback to summary
protected Object[] getNaturalIdValues()
getStateback to summary
public Object[] getState()
getVersionback to summary
public Object getVersion()
hasPostCommitEventListenersback to summary
protected boolean hasPostCommitEventListeners()

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

Annotations
@Override
isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()
newPostDeleteEventback to summary
pack-priv PostDeleteEvent newPostDeleteEvent()
postCommitDeleteback to summary
protected void postCommitDelete(boolean success)
postCommitDeleteOnUnsuccessfulback to summary
private static void postCommitDeleteOnUnsuccessful(PostDeleteEventListener listener, PostDeleteEvent event)
postDeleteback to summary
protected void postDelete()
preDeleteback to summary
protected boolean preDelete()
setLockback to summary
protected void setLock(SoftLock lock)