Class KeyValue
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.web.models.KeyValue
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class KeyValue extends java.lang.Object implements java.io.SerializableRepresents the primitive value of a foreign key (potentially multiple values)- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Object[]values
 - 
Constructor SummaryConstructors Constructor Description KeyValue(SFieldReference<?> field)Creates a 'null' foreign key value that matches the number of key values for the reference fieldKeyValue(SRecordInstance record)Pulls the primary key values into an aggregate foreign key valueKeyValue(SRecordInstance record, SFieldReference<?> field)Pulls the foreign key values into an aggregate foreign key value
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetAsLong()Convenience cast for the common case of a single, Long-valued keyjava.lang.Object[]getKeyValues()voidsetRecordValues(SRecordInstance record, SFieldReference<?> field)java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
KeyValuepublic KeyValue(SFieldReference<?> field) Creates a 'null' foreign key value that matches the number of key values for the reference field
 - 
KeyValuepublic KeyValue(SRecordInstance record, SFieldReference<?> field) Pulls the foreign key values into an aggregate foreign key value
 - 
KeyValuepublic KeyValue(SRecordInstance record) Pulls the primary key values into an aggregate foreign key value
 
- 
 - 
Method Detail- 
setRecordValuespublic void setRecordValues(SRecordInstance record, SFieldReference<?> field) 
 - 
getKeyValuespublic java.lang.Object[] getKeyValues() 
 - 
getAsLongpublic java.lang.Long getAsLong() Convenience cast for the common case of a single, Long-valued key
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-