Class KeyValue

  • All Implemented Interfaces:
    java.io.Serializable

    public class KeyValue
    extends java.lang.Object
    implements java.io.Serializable
    Represents the primitive value of a foreign key (potentially multiple values)
    See Also:
    Serialized Form
    • Field Detail

      • values

        protected java.lang.Object[] values
    • 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)
        Pulls the primary key values into an aggregate foreign key value
    • Method Detail

      • 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:
        toString in class java.lang.Object