public final class EntityInsertAction extends AbstractEntityInsertAction
| Constructor and Description |
|---|
EntityInsertAction(Serializable id,
Object[] state,
Object instance,
Object version,
EntityPersister persister,
boolean isVersionIncrementDisabled,
SessionImplementor session) |
| 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 EntityKey |
getEntityKey()
Returns the
EntityKey. |
protected boolean |
hasPostCommitEventListeners() |
boolean |
isEarlyInsert()
Does this insert action need to be executed as soon as possible
(e.g., to generate an ID)?
|
afterDeserialize, findNonNullableTransientEntities, getState, handleNaturalIdPostSaveNotifications, handleNaturalIdPreSaveNotifications, makeEntityManaged, markExecuted, nullifyTransientReferencesIfNotAlreadybeforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, listenerGroup, needsAfterTransactionCompletion, toStringpublic EntityInsertAction(Serializable id, Object[] state, Object instance, Object version, EntityPersister persister, boolean isVersionIncrementDisabled, SessionImplementor session) throws HibernateException
HibernateExceptionpublic boolean isEarlyInsert()
AbstractEntityInsertActionisEarlyInsert in class AbstractEntityInsertActionprotected EntityKey getEntityKey()
AbstractEntityInsertActionEntityKey.getEntityKey in class AbstractEntityInsertActionEntityKey.public void execute()
throws HibernateException
ExecutableHibernateException - Indicates a problem during execution.public void doAfterTransactionCompletion(boolean success,
SessionImplementor session)
throws HibernateException
AfterTransactionCompletionProcesssuccess - Did the transaction complete successfully? True means it did.session - The session on which the transaction is completing.HibernateExceptionprotected boolean hasPostCommitEventListeners()
hasPostCommitEventListeners in class EntityActionCopyright © 2018 JBoss by Red Hat. All rights reserved.