Record Class ParameterMutations

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.db.namedquery.workspace.ai.ParameterMutations
Record Components:
remove - parameter names to drop from the table. May be empty.
add - new rows to add. May be empty.

public record ParameterMutations(List<String> remove, List<ParameterMutations.Add> add) extends Record
Parameter-table changes the agent has proposed alongside a SQL revision: rows to drop by name and rows to add. Parsed by NamedQueryReplyRenderer from the named-query-changes fenced block; applied in remove-then-add order so an add can re-introduce a name whose previous row is being deleted.

Edits-in-place are deliberately omitted from the contract — renaming or retyping a parameter round-trips through a remove + add pair, which keeps the wire format minimal.

  • Field Details

    • EMPTY

      public static final ParameterMutations EMPTY
      Mutations with both arrays empty — semantically equivalent to "no mutations block."
  • Constructor Details

    • ParameterMutations

      public ParameterMutations(List<String> remove, List<ParameterMutations.Add> add)
      Creates an instance of a ParameterMutations record class.
      Parameters:
      remove - the value for the remove record component
      add - the value for the add record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns:
      true when neither remove nor add carries any entries.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • remove

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

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