org.hibernate.action
Class BulkOperationCleanupAction

java.lang.Object
  extended by org.hibernate.action.BulkOperationCleanupAction
All Implemented Interfaces:
java.io.Serializable, Executable

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

Implementation of BulkOperationCleanupAction.

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
BulkOperationCleanupAction(SessionImplementor session, Queryable[] affectedQueryables)
           
BulkOperationCleanupAction(SessionImplementor session, java.util.Set querySpaces)
          Create an action that will evict collection and entity regions based on queryspaces (table names).
 
Method Summary
 void afterTransactionCompletion(boolean success)
          Called after the transaction completes
 void beforeExecutions()
          Called before executing any actions
 void execute()
          Execute this action
 java.io.Serializable[] getPropertySpaces()
          What spaces (tables) are affected by this action?
 boolean hasAfterTransactionCompletion()
          Do we need to retain this instance until after the transaction completes?
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkOperationCleanupAction

public BulkOperationCleanupAction(SessionImplementor session,
                                  Queryable[] affectedQueryables)

BulkOperationCleanupAction

public BulkOperationCleanupAction(SessionImplementor session,
                                  java.util.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.

Method Detail

init

public void init()

hasAfterTransactionCompletion

public boolean hasAfterTransactionCompletion()
Description copied from interface: Executable
Do we need to retain this instance until after the transaction completes?

Specified by:
hasAfterTransactionCompletion in interface Executable
Returns:
false if this class defines a no-op hasAfterTransactionCompletion()

afterTransactionCompletion

public void afterTransactionCompletion(boolean success)
                                throws HibernateException
Description copied from interface: Executable
Called after the transaction completes

Specified by:
afterTransactionCompletion in interface Executable
Throws:
HibernateException

getPropertySpaces

public java.io.Serializable[] getPropertySpaces()
Description copied from interface: Executable
What spaces (tables) are affected by this action?

Specified by:
getPropertySpaces in interface Executable

beforeExecutions

public void beforeExecutions()
                      throws HibernateException
Description copied from interface: Executable
Called before executing any actions

Specified by:
beforeExecutions in interface Executable
Throws:
HibernateException

execute

public void execute()
             throws HibernateException
Description copied from interface: Executable
Execute this action

Specified by:
execute in interface Executable
Throws:
HibernateException


Copyright © 2008 Hibernate.org. All Rights Reserved.