Class AuditMutationWriter
java.lang.Object
org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
org.hibernate.persister.entity.mutation.AuditMutationWriter
- All Implemented Interfaces:
AuditWriter
Standalone legacy audit writer for entity audit rows.
-
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
ConstructorsConstructorDescriptionAuditMutationWriter(EntityPersister entityPersister, SessionFactoryImplementor factory) -
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 BatchKeyprotected 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, bindPartitionColumnValueBindings, breakDownKeyJdbcValues, createAuxiliaryTableMapping, createOperation, createOperationGroup, dialect, entityPersister, factory, handleValueGeneration, hasValueGenerationOnExecution, needsRowId, resolveBatchKeyAccess
-
Field Details
-
auditBatchKey
protected final org.hibernate.engine.jdbc.batch.internal.BasicBatchKey auditBatchKey -
auditedPropertyMask
protected final boolean[] auditedPropertyMask
-
-
Constructor Details
-
AuditMutationWriter
-
-
Method Details
-
getBatchKey
- Specified by:
getBatchKeyin classAbstractMutationCoordinator