As you will recall from the Identifying backend system transactions and journal entries task, some of the data fields for the Java(TM) Client Sample Application will be in messages sent to the backend system, and the backend system requires a field identifier for each field. You must therefore extend the DataField class with a new one that contains a new attribute to represent the backend system identifier. This message attribute will be used when building the backend system message format. You will see how to implement a new data field called HostField and add it to the toolkit (later, in the Customizing the toolkit phase).
The following data fields are required for the Java Client Sample Application:
Data fields | Data type in the client | Data type in the server |
---|---|---|
Date | DataField | HostField |
AccountNumber | DataField | HostField |
AccountBalance | DataField | DataField |
MaxAmount | DataField | DataField |
CustomerId | DataField | HostField |
CustomerName | DataField | DataField |
TrxId | Constant | Constant |
Amount | DataField | HostField |
BranchId | DataField | HostField |
AccountList | iColl | iColl |
Account | kColl | kColl |
AccountNumber | DataField | DataField |
Type | DataField | DataField |
Name | DataField | DataField |
Balance | DataField | DataField |
accountStatement Details | iColl | iColl |
OpnDate | DataField | DataField |
OpnDescription | DataField | DataField |
OpnAmount | DataField | DataField |
OpnBalance | DataField | DataField |
TID | DataField | DataField |
UserId | DataField | DataField |
TrxReplyCode | DataField | DataField |
TrxErrorMessage | DataField | DataField |
HostBuff | DataField | DataField |
Some data contains information about the type of business objects it represents. This type-aware data also knows which business rules it should exhibit. This information is made available to the data element by its association with an object of the PropertyDescriptor class. A typed data element is an instance of a DataElement class in which the PropertyDescription property is not null. Each property descriptor is associated with a validator and a set of converters.
The following typed data elements are defined in the Java Client Sample Application:
Typed data name | PropertyDescriptor |
---|---|
String | StringPropertyDescriptor |
Float | FloatPropertyDescriptor |
Date | DatePropertyDescriptor |
Double | DoublePropertyDescriptor |
Amount | DoublePropertyDescriptor |
Account | KCollPropertyDescriptor |
AccountList | ICollPropertyDescriptor |