Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Value Tables

The value tables store the actual rows of the lookup table. It is the combination of LookupTable.type and LookupTable.valueType that determines which value type table will be used. The table below contain these details.

type (string)valueType (string)Table (class)

MATRIX

MATRIX

HelloMatrixLookupTableValue

MATRIX

MATRIX2

HelloMatrixLookupTableValue2Key

MATRIX

MATRIX3

HelloMatrixLookupTableValue3Key

MATRIX

MATRIX4

HelloMatrixLookupTableValue4Key

MATRIX

MATRIX5

HelloMatrixLookupTableValue5Key

MATRIX

MATRIX6

HelloMatrixLookupTableValue6Key

SIMPLE

REAL | INT | STRING | DATE

HelloLookupTableValue

SIMPLE_DATE_KEY

REAL | INT | STRING | DATE

HelloLookupTableValue

SIMPLE_INT_KEY

REAL | INT | STRING | DATE

HelloLookupTableValue

SIMPLE_REAL_KEY

REAL | INT | STRING | DATE

HelloLookupTableValue

RANGE

REAL | INT | STRING | DATE

HelloLookupTableValue

JSON

JSON

HelloJsonLookupTableValue

JSON

JSON2

HelloJsonLookupTableValue2Key

MatrixLookupTableValue

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the MatrixLookupTableValue table.

LookupTable.typeMATRIX
LookupTable.valueTypeMATRIX
Value TableMatrixLookupTableValue

The MatrixLookupTableValue has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
name – A primary key that is used to uniquely identify a row in a lookup table.
attribute1..30 – Fields that can be customized with attribute metadata.
Note
When the LookupTable.valueType is MATRIX, the name of the key property is name — rather than key.

MatrixLookupTableValue2Key

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the MatrixLookupTableValue2Key table.

LookupTable.typeMATRIX
LookupTable.valueTypeMATRIX2
Value TableMatrixLookupTableValue2Key

The MatrixLookupTableValue2Key has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
key1..2 – Primary keys, whose combination uniqely identifies a single lookup table row.
attribute1..30 – Fields that can be customized with attribute metadata.
Note
When the LookupTable.valueType is not MATRIX, the name of the key property is key — rather than name.

MatrixLookupTableValue3Key

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the MatrixLookupTableValue3Key table.

LookupTable.typeMATRIX
LookupTable.valueTypeMATRIX3
Value TableMatrixLookupTableValue3Key

The MatrixLookupTableValue3Key has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
key1..3 – Primary keys, whose combination uniqely identifies a single lookup table row.
attribute1..30 – Fields that can be customized with attribute metadata.
Note
When the LookupTable.valueType is not MATRIX, the name of the key property is key — rather than name.

MatrixLookupTableValue4Key

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the MatrixLookupTableValue4Key table.

LookupTable.typeMATRIX
LookupTable.valueTypeMATRIX4
Value TableMatrixLookupTableValue4Key

The MatrixLookupTableValue4Key has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
key1..4 – Primary keys, whose combination uniqely identifies a single lookup table row.
attribute1..30 – Fields that can be customized with attribute metadata.
Note
When the LookupTable.valueType is not MATRIX, the name of the key property is key — rather than name.

MatrixLookupTableValue5Key

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the MatrixLookupTableValue5Key table.

LookupTable.typeMATRIX
LookupTable.valueTypeMATRIX5
Value TableMatrixLookupTableValue5Key

The MatrixLookupTableValue5Key has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
key1..5 – Primary keys, whose combination uniqely identifies a single lookup table row.
attribute1..30 – Fields that can be customized with attribute metadata.
Note
When the LookupTable.valueType is not MATRIX, the name of the key property is key — rather than name.

MatrixLookupTableValue6Key

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the MatrixLookupTableValue6Key table.

LookupTable.typeMATRIX
LookupTable.valueTypeMATRIX6
Value TableMatrixLookupTableValue6Key

The MatrixLookupTableValue6Key has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
key1..6 – Primary keys, whose combination uniqely identifies a single lookup table row.
attribute1..30 – Fields that can be customized with attribute metadata.
Note
When the LookupTable.valueType is not MATRIX, the name of the key property is key — rather than name.

LookupTableValue

The LookupTableValue table is used for two different types of lookup tables:

  • If the LookupTable.type is SIMPLE, SIMPLE_REAL_KEY, SIMPLE_INT_KEY, or SIMPLE_DATE_KEY, then the LookupTableValue table is used to store key-value pairs. In this case, the LookupTable.valueType defines the type of the value in the key-value pair. The key is determined by LookupTable.type, while the value is determined by the LookupTable.valueType.

  • If the LookupTable.type is RANGE, then the LookupTableValue table is used to store key-value pairs, where the value is a pair of integers. This pair denotes a range. In this case, the LookupTable.valueType defines the type of the key in the key-value pair.

Note
The LookupTable.valueType is used for different purposes depending on the LookupTable.type.

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the LookupTableValue table.

LookupTable.typeSIMPLE | SIMPLE_REAL_KEY | SIMPLE_INT_KEY | SIMPLE_DATE_KEY | RANGE
LookupTable.valueTypeREAL | INT | STRING | DATE
Value TableLookupTableValue

The LookupTableValue has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.
name – A primary key that can be used to uniquely identify a row. If LookupTable.type is RANGE, the LookupTable.valueType determines the type of name. Otherwise, the type of name is determined by LookupTable.type.
value – If and only if the LookupTable.type is not RANGE, this field is used to store a value. The type of the value is determined by LookupTable.valueType.
lowerBound – If and only if the type is RANGE, this field is used to store an integer that denotes the minimum value.
upperBound – If and only if the type is RANGE, this field is used to store an integer that denotes the maximum value.

JsonLookupTableValue

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the JsonLookupTableValue table.

LookupTable.typeJSON
LookupTable.valueTypeJSON
Value TableJsonLookupTableValue

The JsonLookupTableValue has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.

JsonLookupTableValue2Key

When an instance of LookupTable has the following combination of type and valueType, the lookup table’s rows will be stored in the JsonLookupTableValue2Key table.

LookupTable.typeJSON
LookupTable.valueTypeJSON2
Value TableJsonLookupTableValue2Key

The JsonLookupTableValue2Key has the following properties

lookupTable.id – A reference to the LookupTable row to which this row belongs. This property can be used in queries, but will not be part of the results.