About this task
To add a record, the application can use the method addRecord(),
which is defined in the TableService interface. The format of a record is
defined at customization time and is implementation-dependent. The toolkit
formatting facilities can be used, so the record can be built from different
data fields found anywhere in the operation context. This is done using a
Hashtable Format, which describes which data fields must be stored and how
they have to be formatted before constructing the table record. A Hashtable
instance is obtained by calling the format(Context aContext) method for the
specific format element object.
The TableService interface, which is implemented
by the JDBCTable class, accepts formatted data, a context and a formatter
name, or a context and a formatter, as addRecord() method arguments. (When
a formatter or formatter name is passed, the service itself calls the format()
method of the formatter object to build the data into the JDBCTable table
record.)