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
org.hibernate.AssertionFailure, .HibernateException, org.hibernate.cache.spi.access.EntityDataAccess, .SoftLock, org.hibernate.engine.spi.EntityEntry, .EntityKey, .PersistenceContext, .SharedSessionContractImplementor, org.hibernate.event.service.spi.EventListenerGroup, org.hibernate.event.spi.EventSource, .PostCommitDeleteEventListener, .PostDeleteEvent, .PostDeleteEventListener, .PreDeleteEvent, .PreDeleteEventListener, org.hibernate.metamodel.mapping.NaturalIdMapping, 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 Object
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 EventSource
The session
session
)

Constructs an EntityDeleteAction.

public
EntityDeleteAction(final Object
The entity identifier
id
,
final EntityPersister
The entity persister
persister
,
final EventSource
The session
session
)

Constructs an EntityDeleteAction for an unloaded proxy.

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 Object
protected SoftLock
protected Object
public Object[]
public Object
protected boolean
public boolean
private boolean
protected Object
pack-priv PostDeleteEvent
protected void
postCommitDelete(boolean success)

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

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 Object id, final Object[] state, final Object version, final Object instance, final EntityPersister persister, final boolean isCascadeDeleteEnabled, final EventSource session)

Constructs an EntityDeleteAction.

Parameters
id:Object

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:EventSource

The session

EntityDeleteActionback to summary
public EntityDeleteAction(final Object id, final EntityPersister persister, final EventSource session)

Constructs an EntityDeleteAction for an unloaded proxy.

Parameters
id:Object

The entity identifier

persister:EntityPersister

The entity persister

session:EventSource

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.
getCurrentVersionback to summary
protected Object getCurrentVersion()
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()
isInstanceLoadedback to summary
private boolean isInstanceLoaded()
lockCacheItemback to summary
protected Object lockCacheItem()
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()
postDeleteLoadedback to summary
protected void postDeleteLoaded(Object id, EntityPersister persister, SharedSessionContractImplementor session, Object instance, Object ck)
postDeleteUnloadedback to summary
protected void postDeleteUnloaded(Object id, EntityPersister persister, SharedSessionContractImplementor session, Object ck)
preDeleteback to summary
protected boolean preDelete()
removeCacheItemback to summary
protected void removeCacheItem(Object ck)
setLockback to summary
protected void setLock(SoftLock lock)
unlockCacheItemback to summary
protected void unlockCacheItem()