Record Class PhysicalCollectionMutation.RemoveAllAndCreateAll
java.lang.Object
java.lang.Record
org.hibernate.collection.spi.PhysicalCollectionMutation.RemoveAllAndCreateAll
- All Implemented Interfaces:
PhysicalCollectionMutation
- Enclosing interface:
PhysicalCollectionMutation
public static record PhysicalCollectionMutation.RemoveAllAndCreateAll(@Nonnull PhysicalCollectionMutation.RemovalMode removalMode, @Nonnull FrozenCollectionRows currentRows)
extends Record
implements PhysicalCollectionMutation
Physically replace all rows while retaining update lifecycle semantics.
- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PhysicalCollectionMutation
PhysicalCollectionMutation.CreateAll, PhysicalCollectionMutation.NoWork, PhysicalCollectionMutation.NoWorkHolder, PhysicalCollectionMutation.RemovalMode, PhysicalCollectionMutation.RemoveAll, PhysicalCollectionMutation.RemoveAllAndCreateAll, PhysicalCollectionMutation.RowChanges -
Constructor Summary
ConstructorsConstructorDescriptionRemoveAllAndCreateAll(PhysicalCollectionMutation.RemovalMode removalMode, FrozenCollectionRows currentRows) Creates an instance of aRemoveAllAndCreateAllrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentRowsrecord 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 theremovalModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RemoveAllAndCreateAll
public RemoveAllAndCreateAll(@Nonnull PhysicalCollectionMutation.RemovalMode removalMode, @Nonnull FrozenCollectionRows currentRows) Creates an instance of aRemoveAllAndCreateAllrecord class.- Parameters:
removalMode- the value for theremovalModerecord componentcurrentRows- the value for thecurrentRowsrecord 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). -
removalMode
Returns the value of theremovalModerecord component.- Returns:
- the value of the
removalModerecord component
-
currentRows
Returns the value of thecurrentRowsrecord component.- Returns:
- the value of the
currentRowsrecord component
-