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 Summary
Fields Modifier and Type Field Description protected java.lang.Object[]values 
- 
Constructor Summary
Constructors 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 Summary
All 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
- 
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 Detail
- 
setRecordValues
public void setRecordValues(SRecordInstance record, SFieldReference<?> field)
 
- 
getKeyValues
public java.lang.Object[] getKeyValues()
 
- 
getAsLong
public java.lang.Long getAsLong()
Convenience cast for the common case of a single, Long-valued key 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -