Interface ReactiveEntityInsertAction
- All Superinterfaces:
Comparable<org.hibernate.engine.spi.ComparableExecutable>,org.hibernate.engine.spi.ComparableExecutable,org.hibernate.action.spi.Executable,ReactiveExecutable,Serializable
- All Known Implementing Classes:
ReactiveEntityIdentityInsertAction,ReactiveEntityRegularInsertAction
public interface ReactiveEntityInsertAction
extends ReactiveExecutable, org.hibernate.engine.spi.ComparableExecutable
Abstracts over
ReactiveEntityRegularInsertAction and ReactiveEntityIdentityInsertAction.
Needed in ReactiveActionQueue.- See Also:
-
AbstractEntityInsertAction
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCollectionsByKeyToPersistenceContext(org.hibernate.engine.spi.PersistenceContext persistenceContext, Object[] objects) booleanorg.hibernate.action.internal.AbstractEntityInsertActionorg.hibernate.engine.internal.NonNullableTransientDependenciesorg.hibernate.engine.spi.EntityKeyorg.hibernate.persister.entity.EntityPersistergetRowId()org.hibernate.engine.spi.SharedSessionContractImplementorObject[]getState()booleanbooleanbooleanbooleanisVeto()default CompletionStage<org.hibernate.engine.internal.NonNullableTransientDependencies>default CompletionStage<Void>Make the entity "managed" by the persistence context.default CompletionStage<Void>Nullifies any references to transient entities in the entity state maintained by this action.voidMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.hibernate.engine.spi.ComparableExecutable
getPrimarySortClassifier, getSecondarySortIndexMethods inherited from interface org.hibernate.action.spi.Executable
afterDeserialize, beforeExecutions, execute, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getPropertySpacesMethods inherited from interface org.hibernate.reactive.engine.ReactiveExecutable
reactiveExecute
-
Method Details
-
isEarlyInsert
boolean isEarlyInsert() -
findNonNullableTransientEntities
org.hibernate.engine.internal.NonNullableTransientDependencies findNonNullableTransientEntities() -
getSession
org.hibernate.engine.spi.SharedSessionContractImplementor getSession() -
isVeto
boolean isVeto() -
getInstance
Object getInstance() -
getEntityName
String getEntityName() -
getState
Object[] getState() -
getRowId
Object getRowId() -
getPersister
org.hibernate.persister.entity.EntityPersister getPersister() -
isExecuted
boolean isExecuted() -
isVersionIncrementDisabled
boolean isVersionIncrementDisabled() -
areTransientReferencesNullified
boolean areTransientReferencesNullified() -
setTransientReferencesNullified
void setTransientReferencesNullified() -
getEntityKey
org.hibernate.engine.spi.EntityKey getEntityKey() -
reactiveNullifyTransientReferencesIfNotAlready
Nullifies any references to transient entities in the entity state maintained by this action. References to transient entities should be nullified when an entity is made "managed" or when this action is executed, whichever is first. References will only be nullified the first time this method is called for a this object, so it can safely be called both when the entity is made "managed" and when this action is executed.- See Also:
-
reactiveMakeEntityManaged
Make the entity "managed" by the persistence context.- See Also:
-
AbstractEntityInsertAction.makeEntityManaged()
-
addCollectionsByKeyToPersistenceContext
void addCollectionsByKeyToPersistenceContext(org.hibernate.engine.spi.PersistenceContext persistenceContext, Object[] objects) -
reactiveFindNonNullableTransientEntities
default CompletionStage<org.hibernate.engine.internal.NonNullableTransientDependencies> reactiveFindNonNullableTransientEntities() -
asAbstractEntityInsertAction
org.hibernate.action.internal.AbstractEntityInsertAction asAbstractEntityInsertAction()
-