Record Class EntityAuditSupport.AuditMutationOperation
java.lang.Object
java.lang.Record
org.hibernate.persister.entity.mutation.EntityAuditSupport.AuditMutationOperation
- Enclosing class:
EntityAuditSupport
public static record EntityAuditSupport.AuditMutationOperation(int tableIndex, EntityTableDescriptor tableDescriptor, MutationOperation operation)
extends Record
A resolved per-table audit mutation operation.
The descriptor identifies the audit table as seen by the graph queue, while the mutation operation is the SQL-model operation shared with legacy mutation execution infrastructure.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionAuditMutationOperation(int tableIndex, EntityTableDescriptor tableDescriptor, MutationOperation operation) Creates an instance of aAuditMutationOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.Returns the value of thetableDescriptorrecord component.intReturns the value of thetableIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditMutationOperation
public AuditMutationOperation(int tableIndex, EntityTableDescriptor tableDescriptor, MutationOperation operation) Creates an instance of aAuditMutationOperationrecord class.- Parameters:
tableIndex- the value for thetableIndexrecord componenttableDescriptor- the value for thetableDescriptorrecord componentoperation- the value for theoperationrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
tableIndex
public int tableIndex()Returns the value of thetableIndexrecord component.- Returns:
- the value of the
tableIndexrecord component
-
tableDescriptor
Returns the value of thetableDescriptorrecord component.- Returns:
- the value of the
tableDescriptorrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-