public final class EntityUpdateAction extends EntityAction
| Constructor and Description |
|---|
EntityUpdateAction(java.io.Serializable id,
java.lang.Object[] state,
int[] dirtyProperties,
boolean hasDirtyCollection,
java.lang.Object[] previousState,
java.lang.Object previousVersion,
java.lang.Object nextVersion,
java.lang.Object instance,
java.lang.Object rowId,
EntityPersister persister,
SharedSessionContractImplementor session)
Constructs an EntityUpdateAction
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAfterTransactionCompletion(boolean success,
SharedSessionContractImplementor 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, isVeto, listenerGroup, needsAfterTransactionCompletion, setVeto, toStringpublic EntityUpdateAction(java.io.Serializable id,
java.lang.Object[] state,
int[] dirtyProperties,
boolean hasDirtyCollection,
java.lang.Object[] previousState,
java.lang.Object previousVersion,
java.lang.Object nextVersion,
java.lang.Object instance,
java.lang.Object rowId,
EntityPersister persister,
SharedSessionContractImplementor 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
ExecutableHibernateException - Indicates a problem during execution.protected boolean hasPostCommitEventListeners()
hasPostCommitEventListeners in class EntityActionpublic void doAfterTransactionCompletion(boolean success,
SharedSessionContractImplementor session)
throws CacheException
AfterTransactionCompletionProcesssuccess - Did the transaction complete successfully? True means it did.session - The session on which the transaction is completing.CacheExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.