Thin specifications
The thin packages are used to supply the client with enough code to do
most simple data manipulation and display.
Whenever possible, utilities in the base packages are used to cut the
code size.
The Thin packages are split as follows:
-
db - Simple file/record/field manipulation
-
screen - Simple presentation of screens/transfer of db record data
The db record implementations serve two purposes (Two basic concrete
implementations)
-
Provide simple manipulation of record based data
-
Provide and easy (and standard) way to transfer data back and forth to
the host
The db field implementation:
-
Provide simple data validation
-
Provide simple data conversion and standardized display (using classes
from the JDK)
The field class figures out the data conversion by checking the data type
of the default value.
Valid conversions are:
Short: 1234
Integer: 123456789
Float: 12345.67 (Always assume fixed at two decimals)
Double: 123,456,789.01 (Two decimals)
Date: Mar 15, 1999 (MEDIUM date format)
Numbers use the NumberConverters.
Date uses the Calendar converters.