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 voidbreakDownJdbcValue(Object id, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings, EntityTableMapping tableDetails) coordinateInsert(Object id, Object[] values, Object entity, SharedSessionContractImplementor session) Perform the insert(s).protected voiddecomposeAttribute(Object value, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings, AttributeMapping mapping) protected voiddecomposeForInsert(MutationExecutor mutationExecutor, Object id, Object[] values, MutationOperationGroup mutationGroup, boolean[] propertyInclusions, TableInclusionChecker tableInclusionChecker, SharedSessionContractImplementor session) protected GeneratedValuesdoDynamicInserts(Object id, Object[] values, Object object, SharedSessionContractImplementor session, boolean forceIdentifierBinding) protected GeneratedValuesdoStaticInserts(Object id, Object[] values, Object object, SharedSessionContractImplementor session) protected MutationOperationGroupgenerateDynamicInsertSqlGroup(boolean[] insertable, Object object, SharedSessionContractImplementor session, boolean forceIdentifierBinding) protected BatchKeyDeprecated.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 TableInclusionCheckergetTableInclusionChecker(InsertCoordinatorStandard.InsertValuesAnalysis insertValuesAnalysis) @Nullable GeneratedValuesinsert(Object entity, Object[] values, SharedSessionContractImplementor session) Persist an entity instance with a generated identifier.@Nullable GeneratedValuesinsert(Object entity, Object id, Object[] values, SharedSessionContractImplementor session) Persist an entity instance using the provided identifier.protected booleanpreInsertInMemoryValueGeneration(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:MutationCoordinatorThe operation group used to perform the mutation unless some form of dynamic mutation is necessary.- Specified by:
getStaticMutationOperationGroupin interfaceMutationCoordinator
-
getBatchKey
- Specified by:
getBatchKeyin 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()