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

EntityAction (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.action
Class EntityAction

java.lang.Object
  extended byorg.hibernate.action.EntityAction
All Implemented Interfaces:
Comparable, Executable, Serializable
Direct Known Subclasses:
EntityDeleteAction, EntityIdentityInsertAction, EntityInsertAction, EntityUpdateAction

public abstract class EntityAction
extends Object
implements Executable, Serializable, Comparable

Any action relating to insert/update/delete of an entity instance

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
protected EntityAction(SessionImplementor session, Serializable id, Object instance, EntityPersister persister)
           
 
Method Summary
 void beforeExecutions()
          Called before executing any actions
 int compareTo(Object other)
           
protected  Serializable getId()
           
protected  Object getInstance()
           
protected  EntityPersister getPersister()
           
 Serializable[] getPropertySpaces()
          What spaces (tables) are affected by this action?
protected  SessionImplementor getSession()
           
 boolean hasAfterTransactionCompletion()
          Do we need to retain this instance until after the transaction completes?
protected abstract  boolean hasPostCommitEventListeners()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.hibernate.action.Executable
afterTransactionCompletion, execute
 

Constructor Detail

EntityAction

protected EntityAction(SessionImplementor session,
                       Serializable id,
                       Object instance,
                       EntityPersister persister)
Method Detail

getPropertySpaces

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

Specified by:
getPropertySpaces in interface Executable

getSession

protected final SessionImplementor getSession()

getId

protected final Serializable getId()

getPersister

protected final EntityPersister getPersister()

getInstance

protected final Object getInstance()

beforeExecutions

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

Specified by:
beforeExecutions in interface Executable

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

hasPostCommitEventListeners

protected abstract boolean hasPostCommitEventListeners()

toString

public String toString()

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable