javaCatalog = new StoredClassCatalog(env, CLASS_CATALOG, null, flags);
// Create the data formats. In this example, all formats are
// SerialFormat.
//
partKeyFormat = new SerialFormat(javaCatalog, PartKey.class);
partValueFormat = new SerialFormat(javaCatalog, PartValue.class);
supplierKeyFormat = new SerialFormat(javaCatalog, SupplierKey.class);
supplierValueFormat =
new SerialFormat(javaCatalog, SupplierValue.class);
shipmentKeyFormat = new SerialFormat(javaCatalog, ShipmentKey.class);
shipmentValueFormat =
new SerialFormat(javaCatalog, ShipmentValue.class);
cityKeyFormat = new SerialFormat(javaCatalog, String.class);
// Open the Berkeley DB database, along with the associated
// DataStore, for the part, supplier and shipment stores.
// In this sample, the stores are opened with the DB_BTREE access
// method and no duplicate keys allowed. Although the DB_BTREE method