public abstract class EntityAction extends java.lang.Object implements Executable, java.io.Serializable, java.lang.Comparable, AfterTransactionCompletionProcess
| Modifier | Constructor and Description |
|---|---|
protected |
EntityAction(SessionImplementor session,
java.io.Serializable id,
java.lang.Object instance,
EntityPersister persister)
Instantiate an action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeExecutions()
Called before executing any actions.
|
int |
compareTo(java.lang.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.
|
java.lang.String |
getEntityName()
entity name accessor
|
java.io.Serializable |
getId()
entity id accessor
|
java.lang.Object |
getInstance()
entity instance accessor
|
EntityPersister |
getPersister()
entity persister accessor
|
java.io.Serializable[] |
getPropertySpaces()
What spaces (tables) are affected by this action?
|
SessionImplementor |
getSession()
originating session accessor
|
protected abstract boolean |
hasPostCommitEventListeners() |
boolean |
needsAfterTransactionCompletion() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecutedoAfterTransactionCompletionprotected EntityAction(SessionImplementor session, java.io.Serializable id, java.lang.Object instance, EntityPersister persister)
session - The session from which this action is coming.id - The id of the entityinstance - The entiyt instancepersister - The entity persisterpublic BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
ExecutablegetBeforeTransactionCompletionProcess in interface Executablepublic AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
ExecutablegetAfterTransactionCompletionProcess in interface Executableprotected abstract boolean hasPostCommitEventListeners()
public boolean needsAfterTransactionCompletion()
public java.lang.String getEntityName()
public final java.io.Serializable getId()
public final java.lang.Object getInstance()
public final SessionImplementor getSession()
public final EntityPersister getPersister()
public final java.io.Serializable[] getPropertySpaces()
ExecutablegetPropertySpaces in interface Executablepublic void beforeExecutions()
ExecutablebeforeExecutions in interface Executablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.ComparableCopyright © 2013. All Rights Reserved.