站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

Executable (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.action
Interface Executable

All Known Implementing Classes:
BulkOperationCleanupAction, CollectionAction, EntityAction

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 Detail

beforeExecutions

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

Throws:
HibernateException

execute

public void execute()
             throws HibernateException
Execute this action

Throws:
HibernateException

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()

afterTransactionCompletion

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

Throws:
HibernateException

getPropertySpaces

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