org.hibernate.action

Interface Executable

Known Implementing Classes:
BulkOperationCleanupAction, CollectionAction, CollectionRecreateAction, CollectionRemoveAction, CollectionUpdateAction, EntityAction, EntityDeleteAction, EntityIdentityInsertAction, EntityInsertAction, EntityUpdateAction

public interface Executable

An operation which may be scheduled for later execution. Usually, the operation is a database insert/update/delete, together with required second-level cache management.
Author:
Gavin King

Method Summary

void
afterTransactionCompletion(boolean success)
Called after the transaction completes
void
beforeExecutions()
Called before executing any actions
void
execute()
Execute this action
Serializable[]
getPropertySpaces()
What spaces (tables) are affected by this action?
boolean
hasAfterTransactionCompletion()
Do we need to retain this instance until after the transaction completes?

Method Details

afterTransactionCompletion

public void afterTransactionCompletion(boolean success)
            throws HibernateException
Called after the transaction completes

beforeExecutions

public void beforeExecutions()
            throws HibernateException
Called before executing any actions

execute

public void execute()
            throws HibernateException
Execute this action

getPropertySpaces

public Serializable[] getPropertySpaces()
What spaces (tables) are affected by this action?

hasAfterTransactionCompletion

public boolean hasAfterTransactionCompletion()
Do we need to retain this instance until after the transaction completes?
Returns:
false if this class defines a no-op hasAfterTransactionCompletion()