当前页面:
在线文档首页 >
Hibernate 3.2.3 正式版 API 英文文档
EntityAction (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档
org.hibernate.action
Class EntityAction
java.lang.Object
org.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
EntityAction
protected EntityAction(SessionImplementor session,
Serializable id,
Object instance,
EntityPersister persister)
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