public abstract class

EntityAction

extends Object
implements Serializable Comparable<T> AfterTransactionCompletionProcess Executable
java.lang.Object
   ↳ org.hibernate.action.EntityAction
Known Direct Subclasses

Class Overview

Base class for actions relating to insert/update/delete of an entity instance.

Summary

Protected Constructors
EntityAction(SessionImplementor session, Serializable id, Object instance, EntityPersister persister)
Instantiate an action.
Public Methods
void beforeExecutions()
Called before executing any actions.
int compareTo(Object other)
AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
Get the after-transaction-completion process, if any, for this action.
BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
Get the before-transaction-completion process, if any, for this action.
String getEntityName()
entity name accessor
final Serializable getId()
entity id accessor
final Object getInstance()
entity instance accessor
final EntityPersister getPersister()
entity persister accessor
final Serializable[] getPropertySpaces()
What spaces (tables) are affected by this action?
final SessionImplementor getSession()
originating session accessor
boolean needsAfterTransactionCompletion()
String toString()
Protected Methods
abstract boolean hasPostCommitEventListeners()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable
From interface org.hibernate.action.AfterTransactionCompletionProcess
From interface org.hibernate.action.Executable

Protected Constructors

protected EntityAction (SessionImplementor session, Serializable id, Object instance, EntityPersister persister)

Instantiate an action.

Parameters
session The session from which this action is coming.
id The id of the entity
instance The entiyt instance
persister The entity persister

Public Methods

public void beforeExecutions ()

Called before executing any actions. Gives actions a chance to perform any preparation.

public int compareTo (Object other)

public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess ()

Get the after-transaction-completion process, if any, for this action.

Returns
  • The after-transaction-completion process, or null if we have no after-transaction-completion process

public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess ()

Get the before-transaction-completion process, if any, for this action.

Returns
  • The before-transaction-completion process, or null if we have no before-transaction-completion process

public String getEntityName ()

entity name accessor

Returns
  • The entity name

public final Serializable getId ()

entity id accessor

Returns
  • The entity id

public final Object getInstance ()

entity instance accessor

Returns
  • The entity instance

public final EntityPersister getPersister ()

entity persister accessor

Returns
  • The entity persister

public final Serializable[] getPropertySpaces ()

What spaces (tables) are affected by this action?

Returns
  • The spaces affected by this action.

public final SessionImplementor getSession ()

originating session accessor

Returns
  • The session from which this action originated.

public boolean needsAfterTransactionCompletion ()

public String toString ()

Protected Methods

protected abstract boolean hasPostCommitEventListeners ()