Top Fields Constructors Methods
org.hibernate.action

public final Class EntityInsertAction

extends EntityAction
Class Inheritance
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, org.hibernate.cache.CacheKey, org.hibernate.cache.entry.CacheEntry, org.hibernate.engine.EntityEntry, .SessionFactoryImplementor, .SessionImplementor, .Versioning, org.hibernate.event.PostInsertEvent, .PostInsertEventListener, .PreInsertEvent, .PreInsertEventListener, .EventSource, org.hibernate.persister.entity.EntityPersister

Field Summary

Modifier and TypeField and Description
private Object
private Object[]
private Object

Constructor Summary

AccessConstructor and Description
public
EntityInsertAction(Serializable id, Object[] state, Object instance, Object version, EntityPersister persister, SessionImplementor session)

Method Summary

Modifier and TypeMethod and Description
public void
doAfterTransactionCompletion(boolean
Did the transaction complete successfully? True means it did.
success
,
SessionImplementor
The session on which the transaction is completing.
session
)

Implements org.hibernate.action.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Perform whatever processing is encapsulated here after completion of the transaction.
public void
execute()

Implements org.hibernate.action.Executable.execute.

Execute this action
public Object[]
protected boolean
private boolean
private void
private void
private boolean
Inherited from org.hibernate.action.EntityAction:
beforeExecutionscompareTogetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetEntityNamegetIdgetInstancegetPersistergetPropertySpacesgetSessionneedsAfterTransactionCompletiontoString

Field Detail

cacheEntryback to summary
private Object cacheEntry
stateback to summary
private Object[] state
versionback to summary
private Object version

Constructor Detail

EntityInsertActionback to summary
public EntityInsertAction(Serializable id, Object[] state, Object instance, Object version, EntityPersister persister, SessionImplementor session) throws HibernateException

Method Detail

doAfterTransactionCompletionback to summary
public void doAfterTransactionCompletion(boolean success, SessionImplementor session) throws HibernateException

Implements org.hibernate.action.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Doc from org.hibernate.action.AfterTransactionCompletionProcess.doAfterTransactionCompletion.

Perform whatever processing is encapsulated here after completion of the transaction.

Parameters
success:boolean

Did the transaction complete successfully? True means it did.

session:SessionImplementor

The session on which the transaction is completing.

executeback to summary
public void execute() throws HibernateException

Implements org.hibernate.action.Executable.execute.

Doc from org.hibernate.action.Executable.execute.

Execute this action

Exceptions
HibernateException:
Indicates a problem during execution.
getStateback to summary
public Object[] getState()
hasPostCommitEventListenersback to summary
protected boolean hasPostCommitEventListeners()

Implements abstract org.hibernate.action.EntityAction.hasPostCommitEventListeners.

isCachePutEnabledback to summary
private boolean isCachePutEnabled(EntityPersister persister, SessionImplementor session)
postCommitInsertback to summary
private void postCommitInsert()
postInsertback to summary
private void postInsert()
preInsertback to summary
private boolean preInsert()