Class InsertCoordinatorAudit
java.lang.Object
org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
org.hibernate.persister.entity.mutation.InsertCoordinatorAudit
- All Implemented Interfaces:
AuditWriter, InsertCoordinator, MutationCoordinator
public class InsertCoordinatorAudit
extends AbstractMutationCoordinator
implements InsertCoordinator
Insert coordinator for audited entities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.hibernate.engine.jdbc.batch.internal.BasicBatchKeyprotected final boolean[]Fields inherited from class AbstractMutationCoordinator
dialect, entityPersister, factory, mutationExecutorService -
Constructor Summary
ConstructorsConstructorDescriptionInsertCoordinatorAudit(EntityPersister entityPersister, SessionFactoryImplementor factory, InsertCoordinator currentInsertCoordinator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidenqueueAuditEntry(EntityKey entityKey, Object entity, Object[] values, ModificationType modificationType, SharedSessionContractImplementor session) Enqueue an audit entry for deferred writing at transaction completion.protected BatchKeyThe operation group used to perform the mutation unless some form of dynamic mutation is necessary.insert(Object entity, Object[] values, SharedSessionContractImplementor session) Persist an entity instance with a generated identifier.insert(Object entity, Object id, Object[] values, SharedSessionContractImplementor session) Persist an entity instance using the provided identifier.protected EntityKeyresolveEntityKey(Object entity, Object id, SharedSessionContractImplementor session) voidwriteAuditRow(EntityKey entityKey, Object entity, Object[] values, ModificationType modificationType, SharedSessionContractImplementor session) Write an audit row, called byAuditWorkQueueat transaction completion.Methods inherited from class AbstractMutationCoordinator
applyKeyRestriction, applyTenantRestriction, bindPartitionColumnValueBindings, bindTenantRestriction, breakDownKeyJdbcValues, createAuxiliaryTableMapping, createOperation, createOperationGroup, dialect, entityPersister, factory, handleValueGeneration, hasValueGenerationOnExecution, needsRowId, resolveBatchKeyAccess
-
Field Details
-
auditedPropertyMask
protected final boolean[] auditedPropertyMask -
auditBatchKey
protected final org.hibernate.engine.jdbc.batch.internal.BasicBatchKey auditBatchKey
-
-
Constructor Details
-
InsertCoordinatorAudit
public InsertCoordinatorAudit(EntityPersister entityPersister, SessionFactoryImplementor factory, InsertCoordinator currentInsertCoordinator)
-
-
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
-