Creating the Customer business object

Follow these steps to create the Customer business object which has these attributes:
  • customerNumber (string)
  • customerSince (string)
  • firstName (string)
  • lastName (string)
  • address (use the already created AddressBO business object)
  • phoneNumber (string)
  • SIN (string)
  • cashBalance (double)
  • maximumTransactionAmount (double)
  • numberOfStockSymbols (int)
  • quantityOfShares (int)
  • stockSymbols (string)
  • oldData (use the already created OldCustomer business object)
  1. From the menu, select File > New > Other. The New window opens.
  2. In the navigation tree, click Business Integration > Business Object.
  3. Click Next.
  4. From the Module list, click BrokerageModule. The Inherit from field is set to <none>.
  5. In the Folder field, type com.emerged.brokerage.
  6. In the Name field, type CustomerBO.
    Picture of the New Business Object window
    The Namespace field is set to http://BrokerageModule/com/emerged/brokerage.
  7. Click Finish. The editor opens for CustomerBO.
  8. Click the Add an attribute to a business object. button Add an attribute to a business object..
  9. Switch to the Properties view.
  10. In the Name field, type customerNumber.
  11. In the Type list, type string.
  12. From the list, click string.
  13. Switch to the CustomerBO editor.
  14. Click the Add an attribute to a business object. button Add an attribute to a business object..
  15. Switch to the Properties view.
  16. In the Name field, type customerSince.
  17. In the Type list, type string.
  18. From the list, click string.
  19. Switch to the CustomerBO editor.
  20. Click the Add an attribute to a business object. button Add an attribute to a business object..
  21. Switch to the Properties view.
  22. In the Name field, type firstName.
  23. In the Type list, type string.
  24. From the list, click string.
  25. Switch to the CustomerBO editor.
  26. Click the Add an attribute to a business object. button Add an attribute to a business object..
  27. Switch to the Properties view.
  28. In the Name field, type lastName.
  29. In the Type list, type string.
  30. From the list, click string.
  31. Switch to the CustomerBO editor.
  32. Click the Add an attribute to a business object. button Add an attribute to a business object..
  33. Switch to the Properties view.
  34. In the Name field, type address.
  35. From the Type list, click AddressBO { http://BrokerageModule/com/emerged/brokerage }.
  36. From the list, click AddressBO { http://BrokerageModule/com/emerged/brokerage }.
  37. Switch to the CustomerBO editor.
  38. Click the Add an attribute to a business object. button Add an attribute to a business object..
  39. Switch to the Properties view.
  40. In the Name field, type phoneNumber.
  41. In the Type list, type string.
  42. From the list, click string.
  43. Switch to the CustomerBO editor.
  44. Click the Add an attribute to a business object. button Add an attribute to a business object..
  45. Switch to the Properties view.
  46. In the Name field, type sin.
  47. In the Type list, type string.
  48. From the list, click string.
  49. Switch to the CustomerBO editor.
  50. Click the Add an attribute to a business object. button Add an attribute to a business object..
  51. Switch to the Properties view.
  52. In the Name field, type cashBalance.
  53. In the Type list, type double.
  54. From the list, click double.
  55. Switch to the CustomerBO editor.
  56. Click the Add an attribute to a business object. button Add an attribute to a business object..
  57. Switch to the Properties view.
  58. In the Name field, type maximumTransactionAmount.
  59. In the Type list, type double.
  60. From the list, click double.
  61. Switch to the CustomerBO editor.
  62. Click the Add an attribute to a business object. button Add an attribute to a business object..
  63. Switch to the Properties view.
  64. In the Name field, type returnCode.
  65. In the Type list, type int.
  66. From the list, click int.
  67. Switch to the CustomerBO editor.
  68. Click the Add an attribute to a business object. button Add an attribute to a business object..
  69. Switch to the Properties view.
  70. In the Name field, type numberOfStockSymbols.
  71. In the Type list, type int.
  72. From the list, click int.
  73. Switch to the CustomerBO editor.
  74. Click the Add an attribute to a business object. button Add an attribute to a business object..
  75. Switch to the Properties view.
  76. In the Name field, type quantityOfShares.
  77. In the Type list, type int.
  78. From the list, click int.
  79. Select the Array check box.
  80. Switch to the CustomerBO editor.
  81. Click the Add an attribute to a business object. button Add an attribute to a business object..
  82. Switch to the Properties view.
  83. In the Name field, type stockSymbols.
  84. In the Type list, type string.
  85. From the list, click string.
  86. Select the Array check box.
  87. Switch to the CustomerBO editor.
  88. Click the Add an attribute to a business object. button Add an attribute to a business object..
  89. Switch to the Properties view.
  90. In the Name field, type oldData.
  91. From the Type list, click OldCustomerBO { http://BrokerageModule/com/emerged/brokerage }.
  92. From the list, click OldCustomerBO { http://BrokerageModule/com/emerged/brokerage }.
  93. From the menu, select File > Save (or press Ctrl+S).
    CustomerBO
  94. From the menu, select File > Close (or press Ctrl+F4). The editor closes for CustomerBO.

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.