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 |
afterDeserialize(SessionImplementor session)
Reconnect to session after deserialization...
|
void |
beforeExecutions()
Called before executing any actions.
|
int |
compareTo(java.lang.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() |
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() |
protected <T> EventListenerGroup<T> |
listenerGroup(EventType<T> eventType) |
protected boolean |
needsAfterTransactionCompletion() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute
doAfterTransactionCompletion
protected 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 entity instancepersister
- The entity persisterpublic BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
Executable
getBeforeTransactionCompletionProcess
in interface Executable
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
Executable
getAfterTransactionCompletionProcess
in interface Executable
protected abstract boolean hasPostCommitEventListeners()
protected boolean needsAfterTransactionCompletion()
public java.lang.String getEntityName()
public final java.io.Serializable getId()
public final DelayedPostInsertIdentifier getDelayedId()
public final java.lang.Object getInstance()
public final SessionImplementor getSession()
public final EntityPersister getPersister()
public final java.io.Serializable[] getPropertySpaces()
Executable
getPropertySpaces
in interface Executable
public void beforeExecutions()
Executable
beforeExecutions
in interface Executable
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public void afterDeserialize(SessionImplementor session)
afterDeserialize
in interface Executable
session
- The session being deserializedprotected <T> EventListenerGroup<T> listenerGroup(EventType<T> eventType)
protected EventSource eventSource()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.