org.hibernate.action.internal
Class EntityDeleteAction

java.lang.Object
  extended by org.hibernate.action.internal.EntityAction
      extended by org.hibernate.action.internal.EntityDeleteAction
All Implemented Interfaces:
Serializable, Comparable, AfterTransactionCompletionProcess, Executable
Direct Known Subclasses:
OrphanRemovalAction

public class EntityDeleteAction
extends EntityAction

The action for performing an entity deletion.

See Also:
Serialized Form

Constructor Summary
EntityDeleteAction(Serializable id, Object[] state, Object version, Object instance, EntityPersister persister, boolean isCascadeDeleteEnabled, SessionImplementor session)
           
 
Method Summary
 void doAfterTransactionCompletion(boolean success, SessionImplementor session)
          Perform whatever processing is encapsulated here after completion of the transaction.
 void execute()
          Execute this action
protected  boolean hasPostCommitEventListeners()
           
 
Methods inherited from class org.hibernate.action.internal.EntityAction
afterDeserialize, beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, listenerGroup, needsAfterTransactionCompletion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityDeleteAction

public EntityDeleteAction(Serializable id,
                          Object[] state,
                          Object version,
                          Object instance,
                          EntityPersister persister,
                          boolean isCascadeDeleteEnabled,
                          SessionImplementor session)
Method Detail

execute

public void execute()
             throws HibernateException
Description copied from interface: Executable
Execute this action

Throws:
HibernateException - Indicates a problem during execution.

doAfterTransactionCompletion

public void doAfterTransactionCompletion(boolean success,
                                         SessionImplementor session)
                                  throws HibernateException
Description copied from interface: AfterTransactionCompletionProcess
Perform whatever processing is encapsulated here after completion of the transaction.

Parameters:
success - Did the transaction complete successfully? True means it did.
session - The session on which the transaction is completing.
Throws:
HibernateException

hasPostCommitEventListeners

protected boolean hasPostCommitEventListeners()
Specified by:
hasPostCommitEventListeners in class EntityAction


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.