类 BulkOperationCleanupAction
- java.lang.Object
-
- org.hibernate.action.internal.BulkOperationCleanupAction
-
- 所有已实现的接口:
Serializable,Executable
public class BulkOperationCleanupAction extends Object implements Executable, Serializable
AnActionQueueExecutablefor ensuring shared cache cleanup in relation to performed bulk HQL queries. NOTE: currently this executes for INSERT queries as well as UPDATE and DELETE queries. For INSERT it is really not needed as we'd have no invalid entity/collection data to cleanup (we'd still nee to invalidate the appropriate update-timestamps regions) as a result of this query.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 BulkOperationCleanupAction(SharedSessionContractImplementor session, Set tableSpaces)Constructs an action to cleanup "affected cache regions" based on a set of affected table spaces.BulkOperationCleanupAction(SharedSessionContractImplementor session, Queryable... affectedQueryables)Constructs an action to cleanup "affected cache regions" based on the affected entity persisters.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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?
-
-
-
构造器详细资料
-
BulkOperationCleanupAction
public BulkOperationCleanupAction(SharedSessionContractImplementor session, Queryable... affectedQueryables)
Constructs an action to cleanup "affected cache regions" based on the affected entity persisters. The affected regions are defined as the region (if any) of the entity persisters themselves, plus the collection regions for any collection in which those entity persisters participate as elements/keys/etc.- 参数:
session- The session to which this request is tied.affectedQueryables- The affected entity persisters.
-
BulkOperationCleanupAction
public BulkOperationCleanupAction(SharedSessionContractImplementor session, Set tableSpaces)
Constructs an action to cleanup "affected cache regions" based on a set of affected table spaces. This differs fromBulkOperationCleanupAction(SharedSessionContractImplementor, Queryable[])in that here we have the affected table names. From those we deduce the entity persisters which are affected based on the definedtable spaces; and from there, we determine the affected collection regions based on any collections in which those entity persisters participate as elements/keys/etc.- 参数:
session- The session to which this request is tied.tableSpaces- The table spaces.
-
-
方法详细资料
-
getPropertySpaces
public Serializable[] getPropertySpaces()
从接口复制的说明:ExecutableWhat spaces (tables) are affected by this action?- 指定者:
getPropertySpaces在接口中Executable- 返回:
- The spaces affected by this action.
-
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
-
beforeExecutions
public void beforeExecutions() throws HibernateException从接口复制的说明:ExecutableCalled before executing any actions. Gives actions a chance to perform any preparation.- 指定者:
beforeExecutions在接口中Executable- 抛出:
HibernateException- Indicates a problem during preparation.
-
execute
public void execute() throws HibernateException从接口复制的说明:ExecutableExecute this action.- 指定者:
execute在接口中Executable- 抛出:
HibernateException- Indicates a problem during execution.
-
afterDeserialize
public void afterDeserialize(SharedSessionContractImplementor session)
从接口复制的说明:ExecutableReconnect to session after deserialization- 指定者:
afterDeserialize在接口中Executable- 参数:
session- The session being deserialized
-
-