public final class EntityUpdateAction extends EntityAction
Constructor and Description |
---|
EntityUpdateAction(Serializable id,
Object[] state,
int[] dirtyProperties,
boolean hasDirtyCollection,
Object[] previousState,
Object previousVersion,
Object nextVersion,
Object instance,
Object rowId,
EntityPersister persister,
SessionImplementor session)
Constructs an EntityUpdateAction
|
Modifier and Type | Method and Description |
---|---|
void |
doAfterTransactionCompletion(boolean success,
SessionImplementor session)
Perform whatever processing is encapsulated here after completion of the transaction.
|
void |
execute()
Execute this action.
|
protected boolean |
hasPostCommitEventListeners() |
afterDeserialize, beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, listenerGroup, needsAfterTransactionCompletion, toString
public EntityUpdateAction(Serializable id, Object[] state, int[] dirtyProperties, boolean hasDirtyCollection, Object[] previousState, Object previousVersion, Object nextVersion, Object instance, Object rowId, EntityPersister persister, SessionImplementor session)
id
- The entity identifierstate
- The current (extracted) entity statedirtyProperties
- The indexes (in reference to state) properties with dirty statehasDirtyCollection
- Were any collections dirty?previousState
- The previous (stored) statepreviousVersion
- The previous (stored) versionnextVersion
- The incremented versioninstance
- The entity instancerowId
- The entity's rowidpersister
- The entity's persistersession
- The sessionpublic void execute() throws HibernateException
Executable
HibernateException
- Indicates a problem during execution.protected boolean hasPostCommitEventListeners()
hasPostCommitEventListeners
in class EntityAction
public void doAfterTransactionCompletion(boolean success, SessionImplementor session) throws CacheException
AfterTransactionCompletionProcess
success
- Did the transaction complete successfully? True means it did.session
- The session on which the transaction is completing.CacheException
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.