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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne row the agent has asked us to add to the parameter table. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParameterMutationsMutations with both arrays empty — semantically equivalent to "no mutations block." -
Constructor Summary
ConstructorsConstructorDescriptionParameterMutations(List<String> remove, List<ParameterMutations.Add> add) Creates an instance of aParameterMutationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadd()Returns the value of theaddrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()remove()Returns the value of theremoverecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
Mutations with both arrays empty — semantically equivalent to "no mutations block."
-
-
Constructor Details
-
ParameterMutations
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
- true when neither
removenoraddcarries any entries.
-
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). -
remove
-
add
-