Record Class ChangelogSupplier.ChangesetContext<T>
java.lang.Object
java.lang.Record
org.hibernate.audit.spi.ChangelogSupplier.ChangesetContext<T>
- Type Parameters:
T- the changeset identifier type- Record Components:
changesetId- the identifier stored in audit rowschangelog- the persisted changelog entitychangesetSession- the child session used for deferred changelog collection work
- Enclosing class:
ChangelogSupplier<T>
public static record ChangelogSupplier.ChangesetContext<T>(T changesetId, Object changelog, Session changesetSession)
extends Record
Complete transaction changeset context produced by a
ChangelogSupplier.- Since:
- 7.4
-
Constructor Summary
ConstructorsConstructorDescriptionChangesetContext(T changesetId, Object changelog, Session changesetSession) Creates an instance of aChangesetContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangelogrecord component.Returns the value of thechangesetIdrecord component.Returns the value of thechangesetSessionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChangesetContext
Creates an instance of aChangesetContextrecord class.- Parameters:
changesetId- the value for thechangesetIdrecord componentchangelog- the value for thechangelogrecord componentchangesetSession- the value for thechangesetSessionrecord 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). -
changesetId
Returns the value of thechangesetIdrecord component.- Returns:
- the value of the
changesetIdrecord component
-
changelog
-
changesetSession
Returns the value of thechangesetSessionrecord component.- Returns:
- the value of the
changesetSessionrecord component
-