java.lang.Object
com.inductiveautomation.ignition.gateway.web.models.KeyValue
All Implemented Interfaces:
Serializable

public class KeyValue extends Object implements Serializable
Represents the primitive value of a foreign key (potentially multiple values)
See Also:
  • Field Details

    • values

      protected Object[] values
  • Constructor Details

    • KeyValue

      public KeyValue(SFieldReference<?> field)
      Creates a 'null' foreign key value that matches the number of key values for the reference field
    • KeyValue

      public KeyValue(SRecordInstance record, SFieldReference<?> field)
      Pulls the foreign key values into an aggregate foreign key value
    • KeyValue

      public KeyValue(SRecordInstance record)
      Pulls the primary key values into an aggregate foreign key value
  • Method Details

    • setRecordValues

      public void setRecordValues(SRecordInstance record, SFieldReference<?> field)
    • getKeyValues

      public Object[] getKeyValues()
    • getAsLong

      public Long getAsLong()
      Convenience cast for the common case of a single, Long-valued key
    • toString

      public String toString()
      Overrides:
      toString in class Object