类 BulkOperationCleanupAction

  • 所有已实现的接口:
    Serializable, Executable

    public class BulkOperationCleanupAction
    extends Object
    implements Executable, Serializable
    An ActionQueue Executable for 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

        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 from BulkOperationCleanupAction(SharedSessionContractImplementor, Queryable[]) in that here we have the affected table names. From those we deduce the entity persisters which are affected based on the defined table 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.