Record Class CollectionAuditSupport.AuditCollectionChange
java.lang.Object
java.lang.Record
org.hibernate.persister.collection.mutation.CollectionAuditSupport.AuditCollectionChange
- Enclosing class:
CollectionAuditSupport
public static record CollectionAuditSupport.AuditCollectionChange(Object rawEntry, int position, ModificationType modificationType)
extends Record
One row-level collection audit change.
The raw entry is the collection entry used by the collection wrapper and
row mutation helper. For snapshot-map deletes, such as identifier bags, it
may be the snapshot Map.Entry so the original row identifier remains
available for transaction-end binding.
The position is the collection-entry iteration position used by collection wrappers when resolving identifiers or indexes.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionAuditCollectionChange(Object rawEntry, int position, ModificationType modificationType) Creates an instance of aAuditCollectionChangerecord 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 themodificationTyperecord component.intposition()Returns the value of thepositionrecord component.rawEntry()Returns the value of therawEntryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditCollectionChange
Creates an instance of aAuditCollectionChangerecord class.- Parameters:
rawEntry- the value for therawEntryrecord componentposition- the value for thepositionrecord componentmodificationType- the value for themodificationTyperecord 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. -
rawEntry
Returns the value of therawEntryrecord component.- Returns:
- the value of the
rawEntryrecord component
-
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
modificationType
Returns the value of themodificationTyperecord component.- Returns:
- the value of the
modificationTyperecord component
-