Record Class PlanningOptions
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.PlanningOptions
- All Implemented Interfaces:
Serializable
@Incubating
public record PlanningOptions(boolean orderByForeignKeys, boolean orderByUniqueKeySlots, boolean avoidBreakingDeferrable, boolean ignoreDeferrableForOrdering, PlanningOptions.UniqueCycleStrategy uniqueCycleStrategy)
extends Record
implements Serializable
Options for controlling operation planning and scheduling.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlanningOptions(boolean orderByForeignKeys, boolean orderByUniqueKeySlots, boolean avoidBreakingDeferrable, boolean ignoreDeferrableForOrdering, PlanningOptions.UniqueCycleStrategy uniqueCycleStrategy) Creates an instance of aPlanningOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavoidBreakingDeferrablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreDeferrableForOrderingrecord component.booleanReturns the value of theorderByForeignKeysrecord component.booleanReturns the value of theorderByUniqueKeySlotsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueCycleStrategyrecord component.
-
Constructor Details
-
PlanningOptions
public PlanningOptions(boolean orderByForeignKeys, boolean orderByUniqueKeySlots, boolean avoidBreakingDeferrable, boolean ignoreDeferrableForOrdering, PlanningOptions.UniqueCycleStrategy uniqueCycleStrategy) Creates an instance of aPlanningOptionsrecord class.- Parameters:
orderByForeignKeys- the value for theorderByForeignKeysrecord componentorderByUniqueKeySlots- the value for theorderByUniqueKeySlotsrecord componentavoidBreakingDeferrable- the value for theavoidBreakingDeferrablerecord componentignoreDeferrableForOrdering- the value for theignoreDeferrableForOrderingrecord componentuniqueCycleStrategy- the value for theuniqueCycleStrategyrecord 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. -
orderByForeignKeys
public boolean orderByForeignKeys()Returns the value of theorderByForeignKeysrecord component.- Returns:
- the value of the
orderByForeignKeysrecord component
-
orderByUniqueKeySlots
public boolean orderByUniqueKeySlots()Returns the value of theorderByUniqueKeySlotsrecord component.- Returns:
- the value of the
orderByUniqueKeySlotsrecord component
-
avoidBreakingDeferrable
public boolean avoidBreakingDeferrable()Returns the value of theavoidBreakingDeferrablerecord component.- Returns:
- the value of the
avoidBreakingDeferrablerecord component
-
ignoreDeferrableForOrdering
public boolean ignoreDeferrableForOrdering()Returns the value of theignoreDeferrableForOrderingrecord component.- Returns:
- the value of the
ignoreDeferrableForOrderingrecord component
-
uniqueCycleStrategy
Returns the value of theuniqueCycleStrategyrecord component.- Returns:
- the value of the
uniqueCycleStrategyrecord component
-