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 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 a Description record class.
      Parameters:
      source - the value for the source record component
      targetIds - the value for the targetIds record component
      unstoredTargetIds - the value for the unstoredTargetIds record component
      mayMaterialize - the value for the mayMaterialize record component
      relationshipSteps - the value for the relationshipSteps record component
      finalDeletedModelIds - the value for the finalDeletedModelIds record component
      cascadeRootIds - the value for the cascadeRootIds record component
      aliases - the value for the aliases record component
  • Method Details

    • affectsRelationships

      public boolean affectsRelationships()
    • relationshipStep

      public ModelCommitAssignment.RelationshipStep relationshipStep(int substep)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • source

      public CommitModels source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • targetIds

      public List<String> targetIds()
      Returns the value of the targetIds record component.
      Returns:
      the value of the targetIds record component
    • unstoredTargetIds

      public List<String> unstoredTargetIds()
      Returns the value of the unstoredTargetIds record component.
      Returns:
      the value of the unstoredTargetIds record component
    • mayMaterialize

      public boolean mayMaterialize()
      Returns the value of the mayMaterialize record component.
      Returns:
      the value of the mayMaterialize record component
    • relationshipSteps

      public List<ModelCommitAssignment.RelationshipStep> relationshipSteps()
      Returns the value of the relationshipSteps record component.
      Returns:
      the value of the relationshipSteps record component
    • finalDeletedModelIds

      public Set<String> finalDeletedModelIds()
      Returns the value of the finalDeletedModelIds record component.
      Returns:
      the value of the finalDeletedModelIds record component
    • cascadeRootIds

      public List<String> cascadeRootIds()
      Returns the value of the cascadeRootIds record component.
      Returns:
      the value of the cascadeRootIds record component
    • aliases

      Returns the value of the aliases record component.
      Returns:
      the value of the aliases record component