public final class EntityInsertAction extends AbstractEntityInsertAction
EntityIdentityInsertAction
,
Serialized FormConstructor and Description |
---|
EntityInsertAction(Serializable id,
Object[] state,
Object instance,
Object version,
EntityPersister persister,
boolean isVersionIncrementDisabled,
SharedSessionContractImplementor session)
Constructs an EntityInsertAction.
|
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 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, nullifyTransientReferencesIfNotAlready
beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, isVeto, listenerGroup, needsAfterTransactionCompletion, setVeto, toString
public EntityInsertAction(Serializable id, Object[] state, Object instance, Object version, EntityPersister persister, boolean isVersionIncrementDisabled, SharedSessionContractImplementor session)
id
- The entity identifierstate
- The current (extracted) entity stateinstance
- The entity instanceversion
- The current entity version valuepersister
- The entity's persisterisVersionIncrementDisabled
- Whether version incrementing is disabled.session
- The sessionpublic boolean isEarlyInsert()
AbstractEntityInsertAction
isEarlyInsert
in class AbstractEntityInsertAction
protected EntityKey getEntityKey()
AbstractEntityInsertAction
EntityKey
.getEntityKey
in class AbstractEntityInsertAction
EntityKey
.public void execute() throws HibernateException
Executable
HibernateException
- Indicates a problem during execution.public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session) throws HibernateException
AfterTransactionCompletionProcess
success
- Did the transaction complete successfully? True means it did.session
- The session on which the transaction is completing.HibernateException
protected boolean hasPostCommitEventListeners()
hasPostCommitEventListeners
in class EntityAction
Copyright © 2019 JBoss by Red Hat. All rights reserved.