org.hibernate.action
Class EntityAction
java.lang.Object
org.hibernate.action.EntityAction
- Comparable, Executable, Serializable
public abstract class EntityAction
extends java.lang.Object
Base class for actions relating to insert/update/delete of an entity
instance.
EntityAction
protected EntityAction(SessionImplementor session,
Serializable id,
Object instance,
EntityPersister persister)
Instantiate an action.
session
- The session from which this action is coming.id
- The id of the entityinstance
- The entiyt instancepersister
- The entity persister
compareTo
public int compareTo(Object other)
getEntityName
public String getEntityName()
entity name accessor
getId
public final Serializable getId()
entity id accessor
getInstance
public final Object getInstance()
entity instance accessor
getPersister
public final EntityPersister getPersister()
entity persister accessor
getSession
public final SessionImplementor getSession()
originating session accessor
- The session from which this action originated.
hasPostCommitEventListeners
protected abstract boolean hasPostCommitEventListeners()
toString
public String toString()