Top Fields Constructors Methods
org.hibernate.action

public final Class EntityUpdateAction

extends EntityAction
Class Inheritance
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, org.hibernate.cache.CacheException, .CacheKey, org.hibernate.cache.access.SoftLock, org.hibernate.cache.entry.CacheEntry, org.hibernate.engine.EntityEntry, .SessionFactoryImplementor, .SessionImplementor, .Status, .Versioning, org.hibernate.event.PostUpdateEvent, .PostUpdateEventListener, .PreUpdateEvent, .PreUpdateEventListener, .EventSource, org.hibernate.persister.entity.EntityPersister, org.hibernate.type.TypeHelper

Field Summary

Modifier and TypeField and Description
private Object
private final int[]
private final boolean
private SoftLock
private Object
private final Object[]
private final Object
private final Object
private final Object[]

Constructor Summary

AccessConstructor and Description
public
EntityUpdateAction(final Serializable id, final Object[] state, final int[] dirtyProperties, final boolean hasDirtyCollection, final Object[] previousState, final Object previousVersion, final Object nextVersion, final Object instance, final Object rowId, final EntityPersister persister, final 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
protected boolean
private void
private void
private boolean
Inherited from org.hibernate.action.EntityAction:
beforeExecutionscompareTogetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetEntityNamegetIdgetInstancegetPersistergetPropertySpacesgetSessionneedsAfterTransactionCompletiontoString

Field Detail

cacheEntryback to summary
private Object cacheEntry
dirtyFieldsback to summary
private final int[] dirtyFields
hasDirtyCollectionback to summary
private final boolean hasDirtyCollection
lockback to summary
private SoftLock lock
nextVersionback to summary
private Object nextVersion
previousStateback to summary
private final Object[] previousState
previousVersionback to summary
private final Object previousVersion
rowIdback to summary
private final Object rowId
stateback to summary
private final Object[] state

Constructor Detail

EntityUpdateActionback to summary
public EntityUpdateAction(final Serializable id, final Object[] state, final int[] dirtyProperties, final boolean hasDirtyCollection, final Object[] previousState, final Object previousVersion, final Object nextVersion, final Object instance, final Object rowId, final EntityPersister persister, final SessionImplementor session) throws HibernateException

Method Detail

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

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.
hasPostCommitEventListenersback to summary
protected boolean hasPostCommitEventListeners()

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

postCommitUpdateback to summary
private void postCommitUpdate()
postUpdateback to summary
private void postUpdate()
preUpdateback to summary
private boolean preUpdate()