接口 Executable
-
- 所有已知实现类:
AbstractEntityInsertAction,BulkOperationCleanupAction,CollectionAction,CollectionRecreateAction,CollectionRemoveAction,CollectionUpdateAction,EntityAction,EntityDeleteAction,EntityIdentityInsertAction,EntityInsertAction,EntityUpdateAction,OrphanRemovalAction,QueuedOperationCollectionAction
public interface ExecutableAn operation which may be scheduled for later execution. Usually, the operation is a database insert/update/delete, together with required second-level cache management.- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidafterDeserialize(SharedSessionContractImplementor session)Reconnect to session after deserializationvoidbeforeExecutions()Called before executing any actions.voidexecute()Execute this action.AfterTransactionCompletionProcessgetAfterTransactionCompletionProcess()Get the after-transaction-completion process, if any, for this action.BeforeTransactionCompletionProcessgetBeforeTransactionCompletionProcess()Get the before-transaction-completion process, if any, for this action.Serializable[]getPropertySpaces()What spaces (tables) are affected by this action?
-
-
-
方法详细资料
-
getPropertySpaces
Serializable[] getPropertySpaces()
What spaces (tables) are affected by this action?- 返回:
- The spaces affected by this action.
-
beforeExecutions
void beforeExecutions() throws HibernateExceptionCalled before executing any actions. Gives actions a chance to perform any preparation.- 抛出:
HibernateException- Indicates a problem during preparation.
-
execute
void execute() throws HibernateExceptionExecute this action.- 抛出:
HibernateException- Indicates a problem during execution.
-
getAfterTransactionCompletionProcess
AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
Get the after-transaction-completion process, if any, for this action.- 返回:
- The after-transaction-completion process, or null if we have no after-transaction-completion process
-
getBeforeTransactionCompletionProcess
BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
Get the before-transaction-completion process, if any, for this action.- 返回:
- The before-transaction-completion process, or null if we have no before-transaction-completion process
-
afterDeserialize
void afterDeserialize(SharedSessionContractImplementor session)
Reconnect to session after deserialization- 参数:
session- The session being deserialized
-
-