Record Class AuditChangeSet.EntityChange<E>
java.lang.Object
java.lang.Record
org.hibernate.audit.spi.AuditChangeSet.EntityChange<E>
- Type Parameters:
E- the entity audit handler type- Record Components:
entityKey- the persistence-context key of the audited entityentity- the entity instance, when still availablevalues- the entity state to write into the audit rowmodificationType- the merged audit modification typeentityAuditHandler- the execution-specific handler used to consume this change
- Enclosing class:
AuditChangeSet<E,C>
-
Constructor Summary
ConstructorsConstructorDescriptionEntityChange(EntityKey entityKey, Object entity, Object[] values, ModificationType modificationType, E entityAuditHandler) Creates an instance of aEntityChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.Returns the value of theentityAuditHandlerrecord component.Returns the value of theentityKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodificationTyperecord component.final StringtoString()Returns a string representation of this record class.Object[]values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
EntityChange
public EntityChange(EntityKey entityKey, Object entity, Object[] values, ModificationType modificationType, E entityAuditHandler) Creates an instance of aEntityChangerecord class.- Parameters:
entityKey- the value for theentityKeyrecord componententity- the value for theentityrecord componentvalues- the value for thevaluesrecord componentmodificationType- the value for themodificationTyperecord componententityAuditHandler- the value for theentityAuditHandlerrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
entityKey
-
entity
-
values
-
modificationType
Returns the value of themodificationTyperecord component.- Returns:
- the value of the
modificationTyperecord component
-
entityAuditHandler
Returns the value of theentityAuditHandlerrecord component.- Returns:
- the value of the
entityAuditHandlerrecord component
-