类 EntityAction
- java.lang.Object
-
- org.hibernate.action.internal.EntityAction
-
public abstract class EntityAction extends Object implements Executable, Serializable, Comparable, AfterTransactionCompletionProcess
Base class for actions relating to insert/update/delete of an entity instance.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 protectedEntityAction(SharedSessionContractImplementor session, Serializable id, Object instance, EntityPersister persister)Instantiate an action.
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidafterDeserialize(SharedSessionContractImplementor session)Reconnect to session after deserialization...voidbeforeExecutions()Called before executing any actions.intcompareTo(Object other)protected EventSourceeventSource()AfterTransactionCompletionProcessgetAfterTransactionCompletionProcess()Get the after-transaction-completion process, if any, for this action.BeforeTransactionCompletionProcessgetBeforeTransactionCompletionProcess()Get the before-transaction-completion process, if any, for this action.DelayedPostInsertIdentifiergetDelayedId()StringgetEntityName()entity name accessorSerializablegetId()entity id accessorObjectgetInstance()entity instance accessorEntityPersistergetPersister()entity persister accessorSerializable[]getPropertySpaces()What spaces (tables) are affected by this action?SharedSessionContractImplementorgetSession()originating session accessorprotected abstract booleanhasPostCommitEventListeners()booleanisVeto()protected <T> EventListenerGroup<T>listenerGroup(EventType<T> eventType)protected booleanneedsAfterTransactionCompletion()voidsetVeto(boolean veto)StringtoString()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.action.spi.AfterTransactionCompletionProcess
doAfterTransactionCompletion
-
从接口继承的方法 org.hibernate.action.spi.Executable
execute
-
-
-
-
构造器详细资料
-
EntityAction
protected EntityAction(SharedSessionContractImplementor session, Serializable id, Object instance, EntityPersister persister)
Instantiate an action.- 参数:
session- The session from which this action is coming.id- The id of the entityinstance- The entity instancepersister- The entity persister
-
-
方法详细资料
-
isVeto
public boolean isVeto()
-
setVeto
public void setVeto(boolean veto)
-
getBeforeTransactionCompletionProcess
public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
从接口复制的说明:ExecutableGet the before-transaction-completion process, if any, for this action.- 指定者:
getBeforeTransactionCompletionProcess在接口中Executable- 返回:
- The before-transaction-completion process, or null if we have no before-transaction-completion process
-
getAfterTransactionCompletionProcess
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
从接口复制的说明:ExecutableGet the after-transaction-completion process, if any, for this action.- 指定者:
getAfterTransactionCompletionProcess在接口中Executable- 返回:
- The after-transaction-completion process, or null if we have no after-transaction-completion process
-
hasPostCommitEventListeners
protected abstract boolean hasPostCommitEventListeners()
-
needsAfterTransactionCompletion
protected boolean needsAfterTransactionCompletion()
-
getEntityName
public String getEntityName()
entity name accessor- 返回:
- The entity name
-
getId
public final Serializable getId()
entity id accessor- 返回:
- The entity id
-
getDelayedId
public final DelayedPostInsertIdentifier getDelayedId()
-
getInstance
public final Object getInstance()
entity instance accessor- 返回:
- The entity instance
-
getSession
public final SharedSessionContractImplementor getSession()
originating session accessor- 返回:
- The session from which this action originated.
-
getPersister
public final EntityPersister getPersister()
entity persister accessor- 返回:
- The entity persister
-
getPropertySpaces
public final Serializable[] getPropertySpaces()
从接口复制的说明:ExecutableWhat spaces (tables) are affected by this action?- 指定者:
getPropertySpaces在接口中Executable- 返回:
- The spaces affected by this action.
-
beforeExecutions
public void beforeExecutions()
从接口复制的说明:ExecutableCalled before executing any actions. Gives actions a chance to perform any preparation.- 指定者:
beforeExecutions在接口中Executable
-
compareTo
public int compareTo(Object other)
- 指定者:
compareTo在接口中Comparable
-
afterDeserialize
public void afterDeserialize(SharedSessionContractImplementor session)
Reconnect to session after deserialization...- 指定者:
afterDeserialize在接口中Executable- 参数:
session- The session being deserialized
-
listenerGroup
protected <T> EventListenerGroup<T> listenerGroup(EventType<T> eventType)
-
eventSource
protected EventSource eventSource()
-
-