Record Class CollectionInterpretationContext
java.lang.Object
java.lang.Record
org.hibernate.collection.spi.CollectionInterpretationContext
@Incubating(since="8.0",
group="collection-delta")
public record CollectionInterpretationContext(@Nonnull PersistentCollection<?> collection, @Nonnull CollectionPersister persister, @Nonnull CollectionTransition transition, @Nonnull CollectionBaseline baseline, boolean emptySnapshot, boolean removalSkipped, boolean semanticDeltaRequired, @Nonnull SharedSessionContractImplementor session)
extends Record
Runtime and mapping facts used to interpret a collection mutation.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionInterpretationContext(PersistentCollection<?> collection, CollectionPersister persister, CollectionTransition transition, CollectionBaseline baseline, boolean emptySnapshot, boolean removalSkipped, boolean semanticDeltaRequired, SharedSessionContractImplementor session) Creates an instance of aCollectionInterpretationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseline()Returns the value of thebaselinerecord component.Returns the value of thecollectionrecord component.booleanReturns the value of theemptySnapshotrecord 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 thepersisterrecord component.booleanReturns the value of theremovalSkippedrecord component.booleanReturns the value of thesemanticDeltaRequiredrecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransitionrecord component.
-
Constructor Details
-
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. -
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
persister
Returns the value of thepersisterrecord component.- Returns:
- the value of the
persisterrecord component
-
transition
Returns the value of thetransitionrecord component.- Returns:
- the value of the
transitionrecord component
-
baseline
Returns the value of thebaselinerecord component.- Returns:
- the value of the
baselinerecord component
-
emptySnapshot
public boolean emptySnapshot()Returns the value of theemptySnapshotrecord component.- Returns:
- the value of the
emptySnapshotrecord component
-
removalSkipped
public boolean removalSkipped()Returns the value of theremovalSkippedrecord component.- Returns:
- the value of the
removalSkippedrecord component
-
semanticDeltaRequired
public boolean semanticDeltaRequired()Returns the value of thesemanticDeltaRequiredrecord component.- Returns:
- the value of the
semanticDeltaRequiredrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-