An Order Entry district.
Fields map to definition in TPC-C for the DISTRICT table. The Java names of fields do not include the D_ prefix and are in lower case. For clarity this field are renamed in Java
- w_id => warehouse (SQL column D_W_ID)
The columns that map to an address are extracted out as a Address object with the corresponding Java field address.
All fields have Java bean setters and getters.
Fields that are DECIMAL in the database map to String in Java (rather than BigDecimal) to allow running on J2ME/CDC/Foundation.
Primary key maps to {warehouse, id}.
Implemented by extending Warehouse as they share the same basic format.
A District object may sparsely populated, when returned from a business transaction it is only guaranteed to contain the information required to display the result of that transaction.