Record Class ModelCommitAssignment.Description
java.lang.Object
java.lang.Record
io.fluxzero.common.modeling.ModelCommitAssignment.Description
- Enclosing class:
ModelCommitAssignment
public static record ModelCommitAssignment.Description(CommitModels source, List<String> targetIds, List<String> unstoredTargetIds, boolean mayMaterialize, List<ModelCommitAssignment.RelationshipStep> relationshipSteps, Set<String> finalDeletedModelIds, List<String> cascadeRootIds, ModelCommitAssignment.Aliases aliases)
extends Record
Storage-neutral work known before assignment.
-
Constructor Summary
ConstructorsConstructorDescriptionDescription(CommitModels source, List<String> targetIds, List<String> unstoredTargetIds, boolean mayMaterialize, List<ModelCommitAssignment.RelationshipStep> relationshipSteps, Set<String> finalDeletedModelIds, List<String> cascadeRootIds, ModelCommitAssignment.Aliases aliases) Creates an instance of aDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaliases()Returns the value of thealiasesrecord component.Returns the value of thecascadeRootIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinalDeletedModelIdsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themayMaterializerecord component.relationshipStep(int substep) Returns the value of therelationshipStepsrecord component.source()Returns the value of thesourcerecord component.Returns the value of thetargetIdsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunstoredTargetIdsrecord component.
-
Constructor Details
-
Description
public Description(CommitModels source, List<String> targetIds, List<String> unstoredTargetIds, boolean mayMaterialize, List<ModelCommitAssignment.RelationshipStep> relationshipSteps, Set<String> finalDeletedModelIds, List<String> cascadeRootIds, ModelCommitAssignment.Aliases aliases) Creates an instance of aDescriptionrecord class.- Parameters:
source- the value for thesourcerecord componenttargetIds- the value for thetargetIdsrecord componentunstoredTargetIds- the value for theunstoredTargetIdsrecord componentmayMaterialize- the value for themayMaterializerecord componentrelationshipSteps- the value for therelationshipStepsrecord componentfinalDeletedModelIds- the value for thefinalDeletedModelIdsrecord componentcascadeRootIds- the value for thecascadeRootIdsrecord componentaliases- the value for thealiasesrecord component
-
-
Method Details
-
affectsRelationships
public boolean affectsRelationships() -
relationshipStep
-
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. -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
targetIds
-
unstoredTargetIds
-
mayMaterialize
public boolean mayMaterialize()Returns the value of themayMaterializerecord component.- Returns:
- the value of the
mayMaterializerecord component
-
relationshipSteps
Returns the value of therelationshipStepsrecord component.- Returns:
- the value of the
relationshipStepsrecord component
-
finalDeletedModelIds
-
cascadeRootIds
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-