Record Class ParameterMutations.Add
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.db.namedquery.workspace.ai.ParameterMutations.Add
- Record Components:
name- the identifier (without leading:or surrounding{}).kind-NamedQuery.ParameterType.ParameterorNamedQuery.ParameterType.QueryString;NamedQuery.ParameterType.Databaseis rejected at parse time.dataType- the SQL data type whenkindisNamedQuery.ParameterType.Parameter. QueryString parameters always carryDataType.Stringfor storage but the field is meaningless in that case.
- Enclosing class:
ParameterMutations
public static record ParameterMutations.Add(String name, NamedQuery.ParameterType kind, DataType dataType)
extends Record
One row the agent has asked us to add to the parameter table.
-
Constructor Summary
ConstructorsConstructorDescriptionAdd(String name, NamedQuery.ParameterType kind, DataType dataType) Creates an instance of aAddrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.static DataTypeparseDataType(@Nullable String raw) static ParameterMutations.AddqueryString(String name) Convenience constructor that defaults the data type toDataType.Stringfor QueryString rows.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Add
-
-
Method Details
-
queryString
Convenience constructor that defaults the data type toDataType.Stringfor QueryString rows. -
parseDataType
- Parameters:
raw- the data-type string from the agent's reply, e.g. "Int4". Falls back toDataType.Stringfor null/blank/unknown values per the contract documented inNamedQueryAgent.
-
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). -
name
-
kind
-
dataType
-