public final class EntityIdentityInsertAction extends AbstractEntityInsertAction
EntityInsertAction
,
Serialized FormConstructor and Description |
---|
EntityIdentityInsertAction(Object[] state,
Object instance,
EntityPersister persister,
boolean isVersionIncrementDisabled,
SharedSessionContractImplementor session,
boolean isDelayed)
Constructs an EntityIdentityInsertAction
|
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.
|
EntityKey |
getDelayedEntityKey()
Deprecated.
No Hibernate code currently uses this method
|
protected EntityKey |
getEntityKey()
Returns the
EntityKey . |
Serializable |
getGeneratedId()
Access to the generated identifier
|
protected boolean |
hasPostCommitEventListeners() |
boolean |
isEarlyInsert()
Does this insert action need to be executed as soon as possible
(e.g., to generate an ID)?
|
boolean |
needsAfterTransactionCompletion() |
afterDeserialize, findNonNullableTransientEntities, getState, handleNaturalIdPostSaveNotifications, handleNaturalIdPreSaveNotifications, makeEntityManaged, markExecuted, nullifyTransientReferencesIfNotAlready
beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, isVeto, listenerGroup, setVeto, toString
public EntityIdentityInsertAction(Object[] state, Object instance, EntityPersister persister, boolean isVersionIncrementDisabled, SharedSessionContractImplementor session, boolean isDelayed)
state
- The current (extracted) entity stateinstance
- The entity instancepersister
- The entity persisterisVersionIncrementDisabled
- Whether version incrementing is disabledsession
- The sessionisDelayed
- Are we in a situation which allows the insertion to be delayed?HibernateException
- Indicates an illegal statepublic void execute() throws HibernateException
Executable
HibernateException
- Indicates a problem during execution.public boolean needsAfterTransactionCompletion()
needsAfterTransactionCompletion
in class EntityAction
protected boolean hasPostCommitEventListeners()
hasPostCommitEventListeners
in class EntityAction
public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session)
AfterTransactionCompletionProcess
success
- Did the transaction complete successfully? True means it did.session
- The session on which the transaction is completing.public final Serializable getGeneratedId()
@Deprecated public EntityKey getDelayedEntityKey()
public boolean isEarlyInsert()
AbstractEntityInsertAction
isEarlyInsert
in class AbstractEntityInsertAction
protected EntityKey getEntityKey()
AbstractEntityInsertAction
EntityKey
.getEntityKey
in class AbstractEntityInsertAction
EntityKey
.Copyright © 2019 JBoss by Red Hat. All rights reserved.