public abstract class EntityAction extends Object implements Executable, Serializable, Comparable, AfterTransactionCompletionProcess
| Modifier | Constructor and Description |
|---|---|
protected |
EntityAction(SharedSessionContractImplementor session,
Serializable id,
Object instance,
EntityPersister persister)
Instantiate an action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterDeserialize(SharedSessionContractImplementor session)
Reconnect to session after deserialization...
|
void |
beforeExecutions()
Called before executing any actions.
|
int |
compareTo(Object other) |
protected EventSource |
eventSource() |
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.
|
DelayedPostInsertIdentifier |
getDelayedId() |
String |
getEntityName()
entity name accessor
|
Serializable |
getId()
entity id accessor
|
Object |
getInstance()
entity instance accessor
|
EntityPersister |
getPersister()
entity persister accessor
|
Serializable[] |
getPropertySpaces()
What spaces (tables) are affected by this action?
|
SharedSessionContractImplementor |
getSession()
originating session accessor
|
protected abstract boolean |
hasPostCommitEventListeners() |
boolean |
isVeto() |
protected <T> EventListenerGroup<T> |
listenerGroup(EventType<T> eventType) |
protected boolean |
needsAfterTransactionCompletion() |
void |
setVeto(boolean veto) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecutedoAfterTransactionCompletionprotected EntityAction(SharedSessionContractImplementor session, Serializable id, Object instance, EntityPersister persister)
session - The session from which this action is coming.id - The id of the entityinstance - The entity instancepersister - The entity persisterpublic boolean isVeto()
public void setVeto(boolean veto)
public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
ExecutablegetBeforeTransactionCompletionProcess in interface Executablepublic AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
ExecutablegetAfterTransactionCompletionProcess in interface Executableprotected abstract boolean hasPostCommitEventListeners()
protected boolean needsAfterTransactionCompletion()
public String getEntityName()
public final Serializable getId()
public final DelayedPostInsertIdentifier getDelayedId()
public final Object getInstance()
public final SharedSessionContractImplementor getSession()
public final EntityPersister getPersister()
public final Serializable[] getPropertySpaces()
ExecutablegetPropertySpaces in interface Executablepublic void beforeExecutions()
ExecutablebeforeExecutions in interface Executablepublic int compareTo(Object other)
compareTo in interface Comparablepublic void afterDeserialize(SharedSessionContractImplementor session)
afterDeserialize in interface Executablesession - The session being deserializedprotected <T> EventListenerGroup<T> listenerGroup(EventType<T> eventType)
protected EventSource eventSource()
Copyright © 2019 JBoss by Red Hat. All rights reserved.