Class InsertCoordinatorStandard
java.lang.Object
org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
org.hibernate.persister.entity.mutation.InsertCoordinatorStandard
- All Implemented Interfaces:
InsertCoordinator
,MutationCoordinator
@Internal
public class InsertCoordinatorStandard
extends AbstractMutationCoordinator
implements InsertCoordinator
Coordinates the insertion of an entity.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
dialect, entityPersister, factory, mutationExecutorService
-
Constructor Summary
ConstructorsConstructorDescriptionInsertCoordinatorStandard
(EntityPersister entityPersister, SessionFactoryImplementor factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
breakDownJdbcValue
(Object id, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings, EntityTableMapping tableDetails) coordinateInsert
(Object id, Object[] values, Object entity, SharedSessionContractImplementor session) Perform the insert(s).protected void
decomposeAttribute
(Object value, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings, AttributeMapping mapping) protected void
decomposeForInsert
(MutationExecutor mutationExecutor, Object id, Object[] values, MutationOperationGroup mutationGroup, boolean[] propertyInclusions, TableInclusionChecker tableInclusionChecker, SharedSessionContractImplementor session) protected GeneratedValues
doDynamicInserts
(Object id, Object[] values, Object object, SharedSessionContractImplementor session, boolean forceIdentifierBinding) protected GeneratedValues
doStaticInserts
(Object id, Object[] values, Object object, SharedSessionContractImplementor session) protected MutationOperationGroup
generateDynamicInsertSqlGroup
(boolean[] insertable, Object object, SharedSessionContractImplementor session, boolean forceIdentifierBinding) protected BatchKey
Deprecated.boolean[]
getPropertiesToInsert
(Object[] fields) Transform the array of property indexes to an array of booleans, true when the property is insertable and non-nullThe operation group used to perform the mutation unless some form of dynamic mutation is necessary.protected static TableInclusionChecker
getTableInclusionChecker
(InsertCoordinatorStandard.InsertValuesAnalysis insertValuesAnalysis) @Nullable GeneratedValues
insert
(Object entity, Object[] values, SharedSessionContractImplementor session) Persist an entity instance with a generated identifier.@Nullable GeneratedValues
insert
(Object entity, Object id, Object[] values, SharedSessionContractImplementor session) Persist an entity instance using the provided identifier.protected boolean
preInsertInMemoryValueGeneration
(Object[] values, Object entity, SharedSessionContractImplementor session) Methods inherited from class org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
applyKeyRestriction, bindPartitionColumnValueBindings, breakDownKeyJdbcValues, createOperation, createOperationGroup, dialect, entityPersister, factory, handleValueGeneration, needsRowId, resolveBatchKeyAccess
-
Constructor Details
-
InsertCoordinatorStandard
public InsertCoordinatorStandard(EntityPersister entityPersister, SessionFactoryImplementor factory)
-
-
Method Details
-
getStaticMutationOperationGroup
Description copied from interface:MutationCoordinator
The operation group used to perform the mutation unless some form of dynamic mutation is necessary.- Specified by:
getStaticMutationOperationGroup
in interfaceMutationCoordinator
-
getBatchKey
- Specified by:
getBatchKey
in classAbstractMutationCoordinator
-
getTableInclusionChecker
protected static TableInclusionChecker getTableInclusionChecker(InsertCoordinatorStandard.InsertValuesAnalysis insertValuesAnalysis) -
getPropertiesToInsert
Transform the array of property indexes to an array of booleans, true when the property is insertable and non-null -
generateStaticOperationGroup
-
getInsertBatchKey
Deprecated.UsegetBatchKey()
-
getBatchKey()