Code Table Files

Code table files allow a Cúram application to use a level of indirection when storing commonly used constants on the database. Like message files, code table files are shipped with Cúram and can be customized by adding new code table files to new components in the SERVER_DIR/components/<custom>/codetable directory, where <custom> is any new directory created under components that conforms to the same directory structure as components/core. Code table files can contain one code table or a number of code tables that are linked as a hierarchy.

Generating code tables produces two outputs: a code table SQL file to place the codes on the database, and a symbol definition file (a standard Java class file). The symbol definition file is a Java file containing constants for code table identifiers used in the code table XML file. The generation of code table hierarchies also produces.properties files as described in Artefacts Produced by ctgen Build Target.Generating code tables is supported by the build target ctgen.

For more information on code tables also consult the Domain Definitions chapter in the Cúram Modeling Reference Guide and the Cúram Web Client Reference Manual.