org.hibernate.action

Class BulkOperationCleanupAction

Implemented Interfaces:
Executable, Serializable

public class BulkOperationCleanupAction
extends java.lang.Object
implements Executable, Serializable

Implementation of BulkOperationCleanupAction.
Author:
Steve Ebersole

Constructor Summary

BulkOperationCleanupAction(SessionImplementor session, Set querySpaces)
Create an action that will evict collection and entity regions based on queryspaces (table names).
BulkOperationCleanupAction(SessionImplementor session, Queryable[] affectedQueryables)

Method Summary

void
afterTransactionCompletion(boolean success)
void
beforeExecutions()
void
execute()
Serializable[]
getPropertySpaces()
boolean
hasAfterTransactionCompletion()
void
init()

Constructor Details

BulkOperationCleanupAction

public BulkOperationCleanupAction(SessionImplementor session,
                                  Set querySpaces)
Create an action that will evict collection and entity regions based on queryspaces (table names). TODO: cache the autodetected information and pass it in instead.

BulkOperationCleanupAction

public BulkOperationCleanupAction(SessionImplementor session,
                                  Queryable[] affectedQueryables)

Method Details

afterTransactionCompletion

public void afterTransactionCompletion(boolean success)
            throws HibernateException
Specified by:
afterTransactionCompletion in interface Executable

beforeExecutions

public void beforeExecutions()
            throws HibernateException
Specified by:
beforeExecutions in interface Executable

execute

public void execute()
            throws HibernateException
Specified by:
execute in interface Executable

getPropertySpaces

public Serializable[] getPropertySpaces()
Specified by:
getPropertySpaces in interface Executable

hasAfterTransactionCompletion

public boolean hasAfterTransactionCompletion()
Specified by:
hasAfterTransactionCompletion in interface Executable

init

public void init()