// key/value data pair to a combined value object; a "tricky" binding
// that uses transient fields is used--see PartBinding, etc, for
// details. For keys, a one-to-one binding is implemented with
// DataBinding classes to bind the stored tuple data to a key Object.
//
DataBinding partKeyBinding =
new MarshalledKeyBinding(db.getPartKeyFormat(), PartKey.class);
EntityBinding partValueBinding =
new MarshalledEntityBinding(db.getPartKeyFormat(),
db.getPartValueFormat(),
Part.class);
DataBinding supplierKeyBinding =
new MarshalledKeyBinding(db.getSupplierKeyFormat(),
SupplierKey.class);
EntityBinding supplierValueBinding =
new MarshalledEntityBinding(db.getSupplierKeyFormat(),
db.getSupplierValueFormat(),
Supplier.class);
DataBinding shipmentKeyBinding =
new MarshalledKeyBinding(db.getShipmentKeyFormat(),
ShipmentKey.class);
EntityBinding shipmentValueBinding =
new MarshalledEntityBinding(db.getShipmentKeyFormat(),
db.getShipmentValueFormat(),
Shipment.class);
DataBinding cityKeyBinding =
TupleBinding.getPrimitiveBinding(String.class,
db.getCityKeyFormat());
// Create map views for all stores and indices.
// StoredSortedMap is used since the stores and indices are ordered