Record Class QueryParameterMetadata
java.lang.Object
java.lang.Record
com.inductiveautomation.perspective.common.config.binding.QueryParameterMetadata
- Record Components:
type- The parameter type (e.g., "Parameter", "In", "Out", "InOut")datatype- The datatype (e.g., "String", "Int4", "Boolean")
Represents parameter metadata (type and datatype) for query binding parameters. This record is
used to persist and restore parameter configuration details for expression mode query bindings.
The actual parameter name and value are stored separately in the parameters map.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryParameterMetadata(String type, String datatype) Creates an instance of aQueryParameterMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondatatype()Returns the value of thedatatyperecord component.final booleanIndicates whether some other object is "equal to" this one.static @Nullable QueryParameterMetadatafromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject json) Creates parameter metadata from JSON.final inthashCode()Returns a hash code value for this object.com.inductiveautomation.ignition.common.gson.JsonObjecttoJson()Converts this parameter metadata to JSON format.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Method Details
-
fromJson
public static @Nullable QueryParameterMetadata fromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject json) Creates parameter metadata from JSON.- Parameters:
json- The JSON object containing parameter metadata- Returns:
- A QueryParameterMetadata instance, or null if JSON is invalid
-
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson()Converts this parameter metadata to JSON format.- Returns:
- A JsonObject representing this parameter metadata
-
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. -
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. -
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
datatype
Returns the value of thedatatyperecord component.- Returns:
- the value of the
datatyperecord component
-