home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / help / idata.hlp (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1996-02-22  |  42.2 KB  |  1,201 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. File ΓòÉΓòÉΓòÉ
  3.  
  4. Select an item from the File menu to create classes or to perform file 
  5. management tasks in Data Access Builder. 
  6.  
  7. Select from the following list to get information about the items in the File 
  8. menu: 
  9.  
  10.  o New... 
  11.  o Create classes... 
  12.  o Open... 
  13.  o Save 
  14.  o Save as... 
  15.  o Exit 
  16.  
  17.  Select from the following list to get related information from an online book: 
  18.  
  19.  o Accessing Database Tables/Views 
  20.  o Saving a Data Access Builder Session 
  21.  o Saving a Data Access Builder Session under Another Name 
  22.  o Opening a Previously Saved Data Access Builder Session 
  23.  
  24.  
  25. ΓòÉΓòÉΓòÉ 2. View ΓòÉΓòÉΓòÉ
  26.  
  27. Select an item from the View menu to change how objects are displayed in the 
  28. Data Access Builder client area. 
  29.  
  30. You can display the table-to-class mapping arrows in a horizontal 
  31. (left-to-right) or a vertical (top-to-bottom) orientation. 
  32.  
  33. You can also change the size of the icons in the client area (small, medium, or 
  34. large). 
  35.  
  36. Select from the following list to get information about the items in the View 
  37. menu: 
  38.  
  39.  o Horizontal 
  40.  o Vertical 
  41.  o Icon size 
  42.  o Save and restore window size/position 
  43.  
  44.  
  45. ΓòÉΓòÉΓòÉ 3. Options ΓòÉΓòÉΓòÉ
  46.  
  47. Select an item from the Options menu to customize the way you interact with 
  48. Data Access Builder, and to specify the type of source code that you want Data 
  49. Access Builder to generate by default. 
  50.  
  51. Select from the following list to get information about the items in the 
  52. Options menu: 
  53.  
  54.  o Startup window 
  55.  o Information line 
  56.  o Confirm on delete 
  57.  o Full path in title bar 
  58.  o Class options... 
  59.  o Register Databases 
  60.  
  61.  
  62. ΓòÉΓòÉΓòÉ 4. Help ΓòÉΓòÉΓòÉ
  63.  
  64. Select an item from the Help menu to get online information about using Data 
  65. Access Builder. 
  66.  
  67. Select from the following list to get information about the items in the Help 
  68. menu: 
  69.  
  70.  o General help... 
  71.  o Using help... 
  72.  o How do I... 
  73.  o Product information... 
  74.  
  75.  
  76. ΓòÉΓòÉΓòÉ 5. New... ΓòÉΓòÉΓòÉ
  77.  
  78. Select New... from the File menu to end the current Data Access Builder session 
  79. and start a new one. If there are unsaved changes in the current session, you 
  80. are prompted to save or to discard them. 
  81.  
  82. Select from the following list to get related online help: 
  83.  
  84.  o Create classes 
  85.  o Open... 
  86.  o Save 
  87.  o Save as... 
  88.  
  89.  
  90. ΓòÉΓòÉΓòÉ 6. Create classes... ΓòÉΓòÉΓòÉ
  91.  
  92. Select Create classes... from the File menu to create new classes from tables 
  93. or views in your database. 
  94.  
  95. Note:   If a table or a view is already mapped to a class in the client area, 
  96. use Create class from the pop-up menu of that table or view to create another 
  97. class from it. A table or view can only be represented by one object at a time 
  98. in the client area. 
  99.  
  100. Select from the following list to get related online help: 
  101.  
  102.  o Create classes 
  103.  o Table or View. 
  104.  
  105.  Select Accessing Database Tables/Views to get related information from an 
  106.  online book. 
  107.  
  108.  
  109. ΓòÉΓòÉΓòÉ 7. Open... ΓòÉΓòÉΓòÉ
  110.  
  111. Select Open... from the File menu to retrieve a saved Data Access Builder 
  112. session. Table information in the saved session is not synchronized with the 
  113. database catalog. If there are unsaved changes in the current session, you are 
  114. prompted to save or to discard them. (Open... does not append the saved session 
  115. to the current session.) 
  116.  
  117. Select from the following list to get related online help: 
  118.  
  119.  o Save 
  120.  o Save as... 
  121.  
  122.  Select Opening a Previously Saved Data Access Builder Session to get related 
  123.  information from an online book. 
  124.  
  125.  
  126. ΓòÉΓòÉΓòÉ 8. Save ΓòÉΓòÉΓòÉ
  127.  
  128. Select Save from the File menu to save the current Data Access Builder session. 
  129. The current session consists of all objects displayed in the client area, and 
  130. the settings for those objects. 
  131.  
  132. If the session has been saved before, the current session is saved under the 
  133. existing file name, and replaces the contents of the existing file. The 
  134. existing file name (if any) is displayed in the title bar. 
  135.  
  136. If the session has not been saved before, the Save as... window displays, and 
  137. you are prompted to specify a file name. Use .dax as the file extension. 
  138.  
  139. Select from the following list to get related online help: 
  140.  
  141.  o Save as... 
  142.  o Open settings - Class 
  143.  o Delete - Class 
  144.  
  145.  
  146. ΓòÉΓòÉΓòÉ 9. Save as... ΓòÉΓòÉΓòÉ
  147.  
  148. Select Save as... from the File menu to save the current Data Access Builder 
  149. session under a new file name. The current session consists of all objects 
  150. displayed in the client area, and the settings for those objects. 
  151.  
  152. Use Save as... to save a session that has not been saved before, or to save a 
  153. session without overwriting the contents of an existing file. The existing file 
  154. name (if any) is displayed in the title bar. 
  155.  
  156. If you specify an existing file name, you are asked whether you want to 
  157. overwrite the contents of the existing file. 
  158.  
  159. Select from the following list to get related online help: 
  160.  
  161.  o Save As 
  162.  o Save 
  163.  
  164.  
  165. ΓòÉΓòÉΓòÉ 10. Horizontal ΓòÉΓòÉΓòÉ
  166.  
  167. Select Horizontal from the View menu to display the table objects mapped to 
  168. their class objects from left to right. 
  169.  
  170. A check mark appears beside Horizontal when it is selected. To turn this 
  171. selection off, select Vertical, the alternate mapping orientation. 
  172.  
  173. Select Vertical to get related online help. 
  174.  
  175.  
  176. ΓòÉΓòÉΓòÉ 11. Vertical ΓòÉΓòÉΓòÉ
  177.  
  178. Select Vertical from the View menu to display the table objects mapped to their 
  179. class objects from top to bottom. 
  180.  
  181. A check mark appears beside Vertical when it is selected. To turn this 
  182. selection off, select Horizontal, the alternate mapping orientation. 
  183.  
  184. Select Horizontal to get related online help. 
  185.  
  186.  
  187. ΓòÉΓòÉΓòÉ 12. Save and restore window size/position ΓòÉΓòÉΓòÉ
  188.  
  189. Select Save and restore window size/position from the View menu to save the 
  190. current window size and position for use in future Data Access Builder 
  191. sessions. 
  192.  
  193. To turn this option on, select the menu item to display the check mark. To turn 
  194. this option off, select the menu item again to remove the check mark. 
  195.  
  196.  
  197. ΓòÉΓòÉΓòÉ 13. Startup window ΓòÉΓòÉΓòÉ
  198.  
  199. Select the Startup window item from the Options menu to control whether the 
  200. Startup window appears in the client area each time you start Data Access 
  201. Builder. A check mark appears beside Startup window when this option is 
  202. selected. 
  203.  
  204. To turn this option on, select the menu item to display the check mark. The 
  205. next time you start Data Access Builder, the Startup window is displayed. 
  206.  
  207. To turn this option off, do one of the following: 
  208.  
  209.  o Select the Startup window item from the Options menu to remove the check 
  210.    mark 
  211.  o Click in the check box in the Startup window to remove the check mark. 
  212.  
  213.  Select Data Access Builder - Startup to get related online help. 
  214.  
  215.  
  216. ΓòÉΓòÉΓòÉ 14. Information line ΓòÉΓòÉΓòÉ
  217.  
  218. Select Information line from the Options menu to control whether an information 
  219. line appears at the bottom of the client area while you are using Data Access 
  220. Builder. A check mark appears beside Information line when this option is on. 
  221.  
  222. The information line displays messages about using the Data Access Builder 
  223. interface, and about the status of actions you initiate. 
  224.  
  225. To turn this option on, select Information line to display the check mark. To 
  226. turn it off, select Information line again to remove the check mark. 
  227.  
  228.  
  229. ΓòÉΓòÉΓòÉ 15. Class options... ΓòÉΓòÉΓòÉ
  230.  
  231. Select Class options... from the Options menu to see and change the options 
  232. that appear in the Class Options window. You can: 
  233.  
  234.  o Set the source code type (Visual Builder, IDL, or C++) 
  235.  o Set the access method you will use to access the database. The methods that 
  236.    are available to you depend on which database product you have chosen. If 
  237.    you selected DB2 version 1.2, the only available option is embedded SQL. If 
  238.    you selected DB2 version 2.1, there are two available options: embedded SQL, 
  239.    and DB2 CLI. If, however, your datasource is ODBC, the only available option 
  240.    is ODBC CLI. 
  241.  o Specify where the source code is to be generated. 
  242.  
  243.  If you do not want to be prompted with the Class Options window each time you 
  244.  create a class, click on the check box at the bottom of the window. 
  245.  
  246.  Select from the following list to get related online help: 
  247.  
  248.  o Create Class - Class Options 
  249.  o Class Options 
  250.  o Generate 
  251.  
  252.  Select Specifying Default Generation Options to get related information from 
  253.  an online book. 
  254.  
  255.  
  256. ΓòÉΓòÉΓòÉ 16. Register Databases ΓòÉΓòÉΓòÉ
  257.  
  258. Select Register Databases from the Options menu to have Data Access Builder 
  259. search your workstation for all recognized database products. This is done 
  260. automatically the first time that Data Access Builder is started on a specific 
  261. workstation, but if you upgrade, add, or remove database products, you must 
  262. register the changes so that Data Access Builder can recognize them when 
  263. creating classes. 
  264.  
  265. Select Create classes to get related online help. 
  266.  
  267.  
  268. ΓòÉΓòÉΓòÉ 17. General help... ΓòÉΓòÉΓòÉ
  269.  
  270. Select General help... from the Help menu to display information about the 
  271. active Data Access Builder window. 
  272.  
  273.  
  274. ΓòÉΓòÉΓòÉ 18. Using help... ΓòÉΓòÉΓòÉ
  275.  
  276. Select Using help... from the Help menu to display information about using the 
  277. online help facility. 
  278.  
  279.  
  280. ΓòÉΓòÉΓòÉ 19. How do I... ΓòÉΓòÉΓòÉ
  281.  
  282. Select How do I... from the Help menu to get help for a Data Access Builder 
  283. task. In the Data Access Builder: How Do I... help window, you can select from 
  284. a list of tasks, or you can search for a specific task. 
  285.  
  286.  
  287. ΓòÉΓòÉΓòÉ 20. VisualAge for C++ Help Menu Items ΓòÉΓòÉΓòÉ
  288.  
  289. The central portion of the Help pull-down menu is dedicated to all the online 
  290. documentation that is shipped with VisualAge for C++. Making a selection from 
  291. any of these cascade menus launches the VisualAge for C++ documentation 
  292. associated with the menu item. You can find the same documentation in the 
  293. Information notebook found in the VisualAge for C++ Desktop folder. 
  294.  
  295. The cascade menus are organized as follows: 
  296.  
  297.  At A Glance 
  298.            Provides general information about VisualAge for C++, such as 
  299.            installing the product, a notebook that accesses the sample 
  300.            programs, and answers to frequently asked questions. 
  301.  
  302.  Using VisualAge for C++ 
  303.            Provides direct access to the individual sections of the User's 
  304.            Guide. For example, if you are using the Browser, you would look in 
  305.            the Browsing section for more information. 
  306.  
  307.  How Do I... Selections 
  308.            Provides access to the How Do I... information for each component of 
  309.            VisualAge for C++. Use How Do I... information to find out how to 
  310.            perform common tasks within VisualAge for C++. 
  311.  
  312.  C/C++ 
  313.            Provides access to the information that is specific to programming 
  314.            in C and C++. 
  315.  
  316.  Class Libraries 
  317.            Provides access to the Open Class Library documentation. 
  318.  
  319.  Visual Programming 
  320.            Provides access to the information that is specific to creating your 
  321.            programs visually. 
  322.  
  323.  IPF, REXX, and Editing 
  324.            Provides access to the IPF and Editor references. 
  325.  
  326.  SOM 
  327.            Provides access to the information that is specific to SOM. 
  328.  
  329.  
  330. ΓòÉΓòÉΓòÉ 21. Product information... ΓòÉΓòÉΓòÉ
  331.  
  332. Select Product information... from the Help menu to see the product information 
  333. window for VisualAge for C++. 
  334.  
  335.  
  336. ΓòÉΓòÉΓòÉ 22. Confirm on delete ΓòÉΓòÉΓòÉ
  337.  
  338. Select Confirm on delete from the Options menu to control whether you are asked 
  339. to confirm each delete action before it is completed. A check mark appears 
  340. beside Confirm on delete when this option is on. 
  341.  
  342. To turn this option on, select Confirm on delete to display the check mark. 
  343.  
  344. To turn this option off, select Confirm on delete again to remove the check 
  345. mark. 
  346.  
  347. Select from the following list to get related online help: 
  348.  
  349.  o Delete - Table or View 
  350.  o Delete - Class 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 23. Icon size ΓòÉΓòÉΓòÉ
  354.  
  355. Select Icon size from the View menu to change the size of the icons. Icons can 
  356. be small, medium, or large (default). Small icons reduce the need for scrolling 
  357. when there are many objects in the client area. 
  358.  
  359. To override the default setting, select the Icon size arrow push button to see 
  360. the three options in a cascade menu, and then click on the option you want. 
  361.  
  362. Select from the following list to get related online help: 
  363.  
  364.  o Horizontal 
  365.  o Vertical 
  366.  
  367.  
  368. ΓòÉΓòÉΓòÉ 24. Full path in title bar ΓòÉΓòÉΓòÉ
  369.  
  370. Select Full path in title bar from the Options menu to control whether the full 
  371. path name of the saved Data Access Builder session appears in the window title 
  372. bar while you are using Data Access Builder. A check mark appears beside Full 
  373. path in title bar when this option is on. 
  374.  
  375. To turn this option on, select Full path in title bar to display the check 
  376. mark. 
  377.  
  378. To turn the option off, select Full path in title bar again to remove the check 
  379. mark. 
  380.  
  381.  
  382. ΓòÉΓòÉΓòÉ 25. Exit ΓòÉΓòÉΓòÉ
  383.  
  384. Select Exit from the File menu to close all windows and exit Data Access 
  385. Builder. If there are unsaved changes in the current session, you are prompted 
  386. to save or to discard them. 
  387.  
  388.  
  389. ΓòÉΓòÉΓòÉ 26. Open settings - Table or View ΓòÉΓòÉΓòÉ
  390.  
  391. Select Open settings from the Table or the View pop-up menu to open the 
  392. Settings notebook for a table or a view object in the client area. The Settings 
  393. notebook shows you details about the table or the view as it is defined in the 
  394. database. This information is read-only; you cannot change it. 
  395.  
  396. Updates to the database table are not automatically reflected in the Settings 
  397. notebook. To change the information in the Settings notebook, delete the old 
  398. mapping, recreate the class, and then customize as required. 
  399.  
  400. The Settings notebook for a table has three pages: Table, Columns, and Foreign 
  401. keys. 
  402.  
  403. The Settings notebook for a view has two pages: View, and Columns. 
  404.  
  405. Select from the following list to get related online help: 
  406.  
  407.  o Table 
  408.  o Columns - Table 
  409.  o Foreign keys 
  410.  o View 
  411.  o Columns - View 
  412.  
  413.  
  414. ΓòÉΓòÉΓòÉ 27. Table or View ΓòÉΓòÉΓòÉ
  415.  
  416. Select an item from the Table or the View pop-up menu to perform actions on a 
  417. table or a view object in the client area. The following actions are available: 
  418.  
  419.  o Open settings 
  420.  o Delete 
  421.  o Create class. 
  422.  
  423.  To display the Table or the View pop-up menu, move the mouse pointer to the 
  424.  table or the view object you want to work with, and then click mouse button 2. 
  425.  
  426.  Select from the following list to get related online help: 
  427.  
  428.  o Open settings - Table or View 
  429.  o Delete - Table or View 
  430.  o Create class 
  431.  
  432.  
  433. ΓòÉΓòÉΓòÉ 28. Delete - Table or View ΓòÉΓòÉΓòÉ
  434.  
  435. Select Delete from the Table or the View pop-up menu to delete a table or a 
  436. view object from the client area. The object is not dropped from the database 
  437. to which you are connected. 
  438.  
  439. Attention: This action deletes the entire mapping. If Confirm on delete in the 
  440. Options pull-down menu is not checked, you are not prompted before deletion. 
  441.  
  442. Select from the following list to get related online help: 
  443.  
  444.  o Delete - Class 
  445.  o Confirm on delete 
  446.  
  447.  
  448. ΓòÉΓòÉΓòÉ 29. Create class ΓòÉΓòÉΓòÉ
  449.  
  450. Select Create class from the Table or the View pop-up menu to create a new 
  451. class from an existing database table or view. The table or the view to be used 
  452. is the object you clicked with mouse button 2 to get the Table or the View 
  453. pop-up menu. The Class Options window then prompts you to: 
  454.  
  455.  o Set the source code type (Visual Builder, IDL, or C++) 
  456.  o Set the access method you will use to access the database. The methods that 
  457.    are available to you depend on which database product you have chosen. If 
  458.    you selected DB2 version 1.2, the only available option is embedded SQL. If 
  459.    you selected DB2 version 2.1, there are two available options: embedded SQL, 
  460.    and DB2 CLI. If, however, your datasource is ODBC, the only available option 
  461.    is ODBC CLI. 
  462.  
  463.  To turn this prompting off: 
  464.  
  465.   1. Select Class options... from the Options pull-down menu. 
  466.   2. Click in the Use these defaults without prompting check box. 
  467.   3. Click on the OK push button. 
  468.  
  469.  The new class is created with a default name and other settings. If you create 
  470.  more than one class from the same table or view, they will have similar 
  471.  default names, such as, for example: Name, Name1, Name2, and so on. To view or 
  472.  change these settings, select Open settings from the pop-up menu of the new 
  473.  class, or double-click on the new class object. 
  474.  
  475.  Select from the following list to get related online help: 
  476.  
  477.  o Create classes... 
  478.  o Open settings - Class 
  479.  o Delete - Class 
  480.  
  481.  Select from the following list to get related information from an online book: 
  482.  
  483.  o Accessing Database Tables/Views 
  484.  
  485.  
  486. ΓòÉΓòÉΓòÉ 30. Open settings - Class ΓòÉΓòÉΓòÉ
  487.  
  488. Select Open settings from the Class pop-up menu to open the Settings notebook 
  489. for a class object in the client area. You can then see or change the 
  490. information about a class. You can also change the mapping between a class and 
  491. its table. 
  492.  
  493. The class Settings notebook has three pages: Names, Attributes, and Part or IDL 
  494. Methods. The source code type (Visual Builder or IDL) that you selected in the 
  495. Class Options window determines the methods that are displayed. 
  496.  
  497. If you change any of the notebook settings after source code has been 
  498. generated, the color of the class icon's table piece changes from yellow, 
  499. green, or purple to black and white. 
  500.  
  501. Select from the following list to get related online help: 
  502.  
  503.  o Names 
  504.  o Attributes 
  505.  o Part Methods 
  506.  o IDL Methods 
  507.  
  508.  Select from the following list to get related information from an online book: 
  509.  
  510.  o Customizing the Class Mapping 
  511.  
  512.  
  513. ΓòÉΓòÉΓòÉ 31. Class ΓòÉΓòÉΓòÉ
  514.  
  515. Select an item from the Class pop-up menu to perform actions on a class object 
  516. in the client area. The following actions are available: 
  517.  
  518.  o Open settings 
  519.  o Delete 
  520.  o Generate 
  521.  o View source (available only after source code has been generated). 
  522.  
  523.  To display the Class pop-up menu, move the mouse pointer to the class object 
  524.  you want to work with, and then click mouse button 2. 
  525.  
  526.  Select from the following list to get related online help: 
  527.  
  528.  o Open settings - Class 
  529.  o Delete - Class 
  530.  o Generate 
  531.  o View source... 
  532.  
  533.  Select from the following list to get related information from an online book: 
  534.  
  535.  
  536. ΓòÉΓòÉΓòÉ 32. Delete - Class ΓòÉΓòÉΓòÉ
  537.  
  538. Select Delete from the Class pop-up menu to delete a class object and all its 
  539. settings from the client area. Any source files already generated for that 
  540. class will not be erased. 
  541.  
  542. Attention: If Confirm on delete in the Options pull-down menu is not checked, 
  543. you are not prompted before deletion. 
  544.  
  545. Select from the following list to get related online help: 
  546.  
  547.  o Delete - Table or View 
  548.  o Confirm on delete 
  549.  
  550.  
  551. ΓòÉΓòÉΓòÉ 33. Generate ΓòÉΓòÉΓòÉ
  552.  
  553. Select Generate from the Class pop-up menu to produce source code for a class 
  554. in the client area. The class to be used is the object you clicked with mouse 
  555. button 2 to get the Class pop-up menu. 
  556.  
  557. Note:   A class must have at least one attribute mapped to a column, and at 
  558. least one data identifier defined, before you can generate code for it. 
  559.  
  560. You can generate Visual Builder parts, IDL source code, or native C++ code. You 
  561. cannot choose the code type through this menu item; to change the generated 
  562. code type, you must create a new class. 
  563.  
  564. To change the default setting: 
  565.  
  566.   1. Select Class options... from the Options pull-down menu. 
  567.   2. Select one or more radio buttons in the Class Options window. 
  568.   3. Click on the OK push button. 
  569.  
  570.  After source code is generated, the class icon color changes to one of the 
  571.  following: 
  572.  
  573.  o Yellow (Visual Builder) 
  574.  o Green (IDL) 
  575.  o Purple (C++). 
  576.  
  577.  If you are using WorkFrame, the source files are saved in your project 
  578.  directory; otherwise, the source files are saved in the directory specified in 
  579.  the Class Options window. 
  580.  
  581.  Select from the following list to get related online help: 
  582.  
  583.  o Class options... 
  584.  o View source... 
  585.  
  586.  Select from the following list to get related information from an online book: 
  587.  
  588.  o Generating the Class Source Code 
  589.  o Viewing Generated Files 
  590.  o Accessing Data Using Visual Builder Programs 
  591.  o Accessing Data Using C++ Programs 
  592.  o Accessing Data Using SOM Programs 
  593.  
  594.  
  595. ΓòÉΓòÉΓòÉ 34. View source... ΓòÉΓòÉΓòÉ
  596.  
  597. Select View source... from the Class pop-up menu to see the files you generated 
  598. from a class using Data Access Builder. 
  599.  
  600. Note:   This action is available only after source code has been generated, and 
  601. the color of the class icon's table piece has become yellow, green, or purple. 
  602. If you change any of the notebook settings after source code has been 
  603. generated, the color of the class icon's table piece reverts to black and 
  604. white. Although the files are not deleted, they can no longer be viewed. 
  605.  
  606. Select from the following list to get related online help: 
  607.  
  608.  o View source 
  609.  o Open settings - Class 
  610.  o Generate 
  611.  o Class options... 
  612.  
  613.  Select from the following list to get related information from an online book: 
  614.  
  615.  o Viewing Generated Files 
  616.  o Accessing Data Using Visual Builder Programs 
  617.  o Accessing Data Using C++ Programs 
  618.  o Accessing Data Using SOM Programs 
  619.  
  620.  
  621. ΓòÉΓòÉΓòÉ 35. Table ΓòÉΓòÉΓòÉ
  622.  
  623. Use the Table page of the table Settings notebook to see the following 
  624. information about a table in the client area: 
  625.  
  626.  o The name of the table 
  627.  o The name of the database that contains the table 
  628.  o The user ID of the creator of the table 
  629.  o Any comments that the creator included with the table. 
  630.  
  631.    You can scroll up or down to see any comments that extend beyond the window 
  632.    boundaries. 
  633.  
  634.  You cannot change any information on this page. 
  635.  
  636.  Select from the following list to get related online help: 
  637.  
  638.  o Columns - Table 
  639.  o Foreign keys 
  640.  
  641.  
  642. ΓòÉΓòÉΓòÉ 36. Columns - Table ΓòÉΓòÉΓòÉ
  643.  
  644. Use the Columns page of the table Settings notebook to see column and key 
  645. information for a table in the client area. 
  646.  
  647. A yellow right-pointing key icon indicates a primary key. A gray left-pointing 
  648. key icon indicates a foreign key. 
  649.  
  650. To see information that may be hidden: 
  651.  
  652.  o Grab the vertical split bar with your mouse and drag it left or right 
  653.  o Use the scroll bars to scroll the contents vertically or horizontally. 
  654.  
  655.  Precision, refers to the total number of digits in a decimal type column. The 
  656.  precision cannot be greater than 31. 
  657.  
  658.  Scale, refers to the number of digits in the fractional part of the number. 
  659.  Scale cannot be negative, or greater than the precision. 
  660.  
  661.  Nulls refers to whether the column can contain a null value. A null value 
  662.  means that no value was set for that column. Key values cannot be nullable. 
  663.  
  664.  You cannot change any information on this page. 
  665.  
  666.  Select from the following list to get related online help: 
  667.  
  668.  o Table 
  669.  o Foreign keys 
  670.  
  671.  
  672. ΓòÉΓòÉΓòÉ 37. Foreign keys ΓòÉΓòÉΓòÉ
  673.  
  674. Use the Foreign keys page of the table Settings notebook to see the following 
  675. information about a table in the client area: 
  676.  
  677.  o Constraints on the table 
  678.  o The delete rule for each constraint 
  679.  o The referenced table for each constraint 
  680.  o Referenced keys and matching columns for each constraint. 
  681.  
  682.  If Data Access Builder cannot access the constraints information, it displays 
  683.  a message stating that the existence of foreign keys could not be determined. 
  684.  
  685.  Click on the arrow in the Constraint list box to see and select from a list of 
  686.  all constraints that apply to this table. When you select a constraint, the 
  687.  page updates with information that applies to that constraint. 
  688.  
  689.  You cannot change any information on this page. 
  690.  
  691.  Select from the following list to get related online help: 
  692.  
  693.  o Table 
  694.  o Columns - Table 
  695.  
  696.  
  697. ΓòÉΓòÉΓòÉ 38. View ΓòÉΓòÉΓòÉ
  698.  
  699. Use the View page of the view Settings notebook to see the following 
  700. information about a view in the client area: 
  701.  
  702.  o The name of the view 
  703.  o The name of the database that contains the view 
  704.  o The user ID of the creator of the view 
  705.  o Any comments the creator included with the view. 
  706.  
  707.    You can scroll up or down to see any comments that extend beyond the window 
  708.    boundaries. 
  709.  
  710.  You cannot change any information on this page. 
  711.  
  712.  Select Columns - View to get related online help. 
  713.  
  714.  
  715. ΓòÉΓòÉΓòÉ 39. Columns - View ΓòÉΓòÉΓòÉ
  716.  
  717. Use the Columns page of the view Settings notebook to see column information 
  718. for a view in the client area. 
  719.  
  720. To see information that may be hidden: 
  721.  
  722.  o Grab the vertical split bar with your mouse and drag it left or right 
  723.  o Use the scroll bars to scroll the contents vertically or horizontally. 
  724.  
  725.  Precision, refers to the total number of digits in a decimal type column. The 
  726.  precision cannot be greater than 31. 
  727.  
  728.  Scale, refers to the number of digits in the fractional part of the number. 
  729.  Scale cannot be negative, or greater than the precision. 
  730.  
  731.  Nulls refers to whether the column can contain a null value. A null value 
  732.  means that no value was set for that column. Key values cannot be nullable. 
  733.  
  734.  You cannot change any information on this page. 
  735.  
  736.  Select View to get related online help. 
  737.  
  738.  
  739. ΓòÉΓòÉΓòÉ 40. Names ΓòÉΓòÉΓòÉ
  740.  
  741. Use the Names page of the class Settings notebook to see or change the name of 
  742. the class, and the name of the files that will be generated if you select 
  743. Generate from the Class pop-up menu. 
  744.  
  745. Type new names in the Class name or the File stem entry fields. The file stem 
  746. is the file name without an extension. If your file system limits the length of 
  747. file names, Data Access Builder truncates the names that you enter accordingly. 
  748.  
  749. The class name, by default, is the name of the table from which it was created. 
  750. The file stem, by default, is the class name. 
  751.  
  752. The Read Only access to database check box allows you to force all instances of 
  753. the class to be read-only.  If your class is generated as read-only, and a 
  754. write access is attempted, an exception will be thrown. 
  755.  
  756. This check box is selected by Data Access Builder if the tool can determine 
  757. that the table or the view is read-only by querying the datastore. Although you 
  758. can override the default selection, the generated code may not compile, or may 
  759. not function properly, if the choice is incompatible with the table definition 
  760. within the datastore. 
  761.  
  762. The controls under the title DLL Build Control allow you to dictate how the 
  763. code that is generated will be built into a dynamic link library (DLL). If you 
  764. will not be using the compiled code in its own DLL, you do not need to use 
  765. these options. 
  766.  
  767. The Generate MAKEFILE check box allows you to control whether a makefile is 
  768. generated when the code for the class is generated. This option is on by 
  769. default if you started Data Access Builder from outside of WorkFrame. If you 
  770. are using WorkFrame to control your build environment, you will not need to 
  771. generate a makefile. 
  772.  
  773. If you choose to generate a makefile, you can supply any parameters you like to 
  774. the compiler by typing them in the Compile parameters entry field. You may wish 
  775. to do this if you will be compiling for Win32s and need to supply special 
  776. parameters. See below for more information on compiling for Win32s. 
  777.  
  778. The Generate DEF file check box allows you to control whether a module 
  779. definitions file is generated when the code for the class is generated. In a 
  780. Windows environment this option is not available. It is preferred that entry 
  781. points are exported using the ilib utility.  This is done for you if you will 
  782. be generating a makefile. 
  783.  
  784. The Automate link to application check box will cause the include file to 
  785. contain a precompiler directive that tells the name of the import library for 
  786. the DLL to any code that is compiled using that include file.  The directive is 
  787. #pragma library and if used, you will not have to explicitly add the import 
  788. library to your program's build parameters.  The linker will automatically know 
  789. where to look. 
  790.  
  791. If any of the DLL Build Control check boxes are checked, you will be able to 
  792. select the name of the DLL by typing it in the Library name entry field. This 
  793. will be the name of the DLL that will be created when compiled. 
  794.  
  795. The Generated Files list box shows all the file names that will be generated if 
  796. you select Generate from the Class pop-up menu. 
  797.  
  798. Database Access Method shows the database access method that has been set in 
  799. the Class Options window. 
  800.  
  801. Reset changes all options back to what they were when you last closed the 
  802. notebook. 
  803.  
  804. Note to Win32s Programmers:  To compile code targeted for a Win32s environment, 
  805. you can select the Generate MAKEFILE check box, and type -qautothread -qwin32s 
  806. in the Compile parameters entry field.  These options will cause the compiler 
  807. to take Win32s particulars into account. 
  808.  
  809. Select from the following list to get related online help: 
  810.  
  811.  o Attributes 
  812.  o Part Methods 
  813.  o IDL Methods 
  814.  o Generate 
  815.  o Class Options 
  816.  
  817.  
  818. ΓòÉΓòÉΓòÉ 41. Attributes ΓòÉΓòÉΓòÉ
  819.  
  820. Use the Attributes page of the class Settings notebook to see and change 
  821. details about how the class maps to the table from which it was created. By 
  822. default, each column in the table is mapped to one attribute in the class, and 
  823. each primary key in the table becomes a data identifier in the class. 
  824.  
  825. A right-pointing key icon indicates a primary key. A left-pointing key icon 
  826. indicates a foreign key. 
  827.  
  828. You can: 
  829.  
  830.  o Change the names of attributes. 
  831.  
  832.    Select an attribute, and type a new name in the Attribute Name entry field. 
  833.  
  834.  o Delete or add mappings from columns to attributes. 
  835.  
  836.    Select Delete or Add when the desired attribute is highlighted. 
  837.  
  838.  o Apply the data identifier label to, or remove it from, an attribute. 
  839.  
  840.    Click in the Data Identifier check box when the desired attribute is 
  841.    highlighted. 
  842.  
  843.    Note:   There must be at least one data identifier for each class. 
  844.    Attention: A primary key must be associated with each data identifier. If 
  845.    you attempt to move a data identifier previously associated with a primary 
  846.    key column to a nonprimary key column, a warning message appears when the 
  847.    change has been made and the attribute page has lost focus. If you do not 
  848.    undo the change, the generated code could unexpectedly delete or update 
  849.    multiple rows. 
  850.  
  851.  o Select the attributes that are to appear in their asString form in the 
  852.    IString returned for the entire object when the forDisplay method is called. 
  853.    The default action is to concatenate all of the attribute values to form a 
  854.    description of the object. 
  855.  
  856.    Click in the Is Displayed check box when a desired attribute is highlighted. 
  857.  
  858.  o Undo all changes to this page since you last closed the notebook. 
  859.  
  860.    Select Reset. 
  861.  
  862.  To see information that may be hidden: 
  863.  
  864.  o Grab the vertical split bar with your mouse and drag it left or right 
  865.  o Use the scroll bars to scroll the contents vertically or horizontally. 
  866.  
  867.  Select from the following list to get related online help: 
  868.  
  869.  o Names 
  870.  o Part Methods 
  871.  o IDL Methods 
  872.  
  873.  
  874. ΓòÉΓòÉΓòÉ 42. Part Methods ΓòÉΓòÉΓòÉ
  875.  
  876. Use the Part Methods page of the class Settings notebook to see which data 
  877. manipulation methods will be included in the client area if you generate a 
  878. Visual Builder part or native C++ code from the class. 
  879.  
  880. This page also shows the Manager class methods, which you can use to manipulate 
  881. multiple instances of the class. 
  882.  
  883. <Attribute> indicates a generic method that applies to all attributes by 
  884. substituting the attribute name for <Attribute>. 
  885.  
  886. You cannot change any information on this page. 
  887.  
  888. Select from the following list to get related online help: 
  889.  
  890.  o Names 
  891.  o Attributes 
  892.  o IDL Methods 
  893.  o Generate 
  894.  o Class options... 
  895.  
  896.  
  897. ΓòÉΓòÉΓòÉ 43. IDL Methods ΓòÉΓòÉΓòÉ
  898.  
  899. Use the IDL Methods page of the class Settings notebook to see which data 
  900. manipulation methods will be included in the client area if you generate IDL 
  901. source code from the class. 
  902.  
  903. This page also shows the Factory class methods, which you can use to manipulate 
  904. multiple instances of the class. 
  905.  
  906. <Attribute> indicates a generic method that applies to all attributes by 
  907. substituting the attribute name for <Attribute>. 
  908.  
  909. You cannot change any information on this page. 
  910.  
  911. Select from the following list to get related online help: 
  912.  
  913.  o Names 
  914.  o Attributes 
  915.  o Part Methods 
  916.  o Generate 
  917.  o Class options... 
  918.  
  919.  
  920. ΓòÉΓòÉΓòÉ 44. Data Access Builder ΓòÉΓòÉΓòÉ
  921.  
  922. The Data Access Builder product is an application development tool and a class 
  923. library that give you object-oriented access to relational databases. 
  924.  
  925. Select from the following list to get related information from an online book: 
  926.  
  927.  o Creating Table and Class Objects 
  928.  o Generating the Source Code 
  929.  o Accessing Data Using Visual Builder Programs 
  930.  o Accessing Data Using C++ Programs 
  931.  o Accessing Data Using SOM Programs 
  932.  
  933.  
  934. ΓòÉΓòÉΓòÉ 45. Data Access Builder - Startup ΓòÉΓòÉΓòÉ
  935.  
  936. The Startup window introduces Data Access Builder, and helps you to proceed. 
  937. You can: 
  938.  
  939.  o Start new work on existing database tables or views. 
  940.  
  941.    Select Create classes..., and then select one or more databases, tables, or 
  942.    views. (If no database product is installed, the Create classes... push 
  943.    button is disabled.) 
  944.  
  945.  o Resume work on a saved Data Access Builder session. 
  946.  
  947.    Select Open..., and then select a file name. 
  948.  
  949.  To close this window and work directly from the menu bar, click on the Cancel 
  950.  push button. 
  951.  
  952.  To turn off the Startup window (so that it does not appear each time you start 
  953.  Data Access Builder), do one of the following: 
  954.  
  955.  o Click in the Display this window on startup check box to remove the check 
  956.    mark. 
  957.  o Select Startup window from the Options pull-down menu to remove the check 
  958.    mark. 
  959.  
  960.  To turn this option on, select Startup window from the Options pull-down menu 
  961.  to display the check mark. The next time you start Data Access Builder, the 
  962.  Startup window is displayed. 
  963.  
  964.  Select Startup window to get related online help. 
  965.  
  966.  Select from the following list to get related information from an online book: 
  967.  
  968.  o Accessing Database Tables/Views 
  969.  o Opening a Previously Saved Data Access Builder Session 
  970.  
  971.  
  972. ΓòÉΓòÉΓòÉ 46. Create classes ΓòÉΓòÉΓòÉ
  973.  
  974. Use the Create classes window to create new classes based on existing database 
  975. tables or views. 
  976.  
  977. Click on the down arrow to the right of the Database Type list box to display 
  978. all of the supported database products on your system. Select a product from 
  979. the list. 
  980.  
  981. The Databases list box shows all currently accessible databases. Select a 
  982. database from the list, and then click on the Connect push button to connect to 
  983. that database. (Double-clicking on the database name does the same thing.) 
  984.  
  985. You can specify what tables are to be displayed in the Tables list box by using 
  986. the Table Filter; tables can be filtered by table owner, name, or type: 
  987.  
  988.  o Type an owner name in the Owner entry field. Owner name is case sensitive. 
  989.  o Type a table name in the Name entry field. Table name is case sensitive. 
  990.  o Click on the down arrow to the right of the Type list box to display all the 
  991.    table types on your system. Table type identifies a category of database 
  992.    table, such as user table, system catalog table, view, and so on. Select a 
  993.    type from the list. 
  994.  
  995.  You can use pattern-recognition (wildcard) characters in the Owner and the 
  996.  Name entry fields. Valid characters are: 
  997.  
  998.  o ? for single-character pattern recognition 
  999.  o *, for multiple-character pattern recognition. 
  1000.  
  1001.  The Tables list box shows all available tables and views in the selected 
  1002.  database. Select one or more names from the list. To select all the names at 
  1003.  once, click on the Select All push button. To remove all selections, click on 
  1004.  the Deselect All push button. 
  1005.  
  1006.  To create a new class for each table or view that you have selected, click on 
  1007.  the Create classes push button. 
  1008.  
  1009.  To turn off the Class Options window so that it does not appear each time you 
  1010.  create a new class, click in the Use these defaults without prompting check 
  1011.  box to display the check mark. 
  1012.  
  1013.  To close the Create classes window without creating any classes, click on the 
  1014.  Cancel push button. 
  1015.  
  1016.  Select Create class to get related online help. 
  1017.  
  1018.  Select from the following list to get related information from an online book: 
  1019.  
  1020.  o Accessing Database Tables/Views 
  1021.  
  1022.  
  1023. ΓòÉΓòÉΓòÉ 47. Class Options ΓòÉΓòÉΓòÉ
  1024.  
  1025. Use the Class Options window to set: 
  1026.  
  1027.  o The default directory where generated files will be written. 
  1028.  
  1029.    If you started Data Access Builder from a WorkFrame Project, this will 
  1030.    default to your project subdirectory. If you started Data Access Builder 
  1031.    from the command line, this will default to your current subdirectory. 
  1032.    Changing this value sets a new subdirectory where all subsequently generated 
  1033.    source files will be written. Changing this value does not affect any source 
  1034.    files that have already been generated. 
  1035.  
  1036.  o The default type of source code that will be generated by Data Access 
  1037.    Builder. Select one of the following: 
  1038.  
  1039.     - C++ Visual Builder part 
  1040.     - IDL 
  1041.     - C++. 
  1042.  
  1043.  o The default type of database access method that will be used by Data Access 
  1044.    Builder. Select one of the following: 
  1045.  
  1046.     - Embedded SQL for DB2. 
  1047.     - Call Level Interface (CLI) for DB2 
  1048.     - CLI for ODBC. This is the only valid option if your table belongs to an 
  1049.       ODBC database. 
  1050.  
  1051.    All three access methods are valid for DB2 Version 2.1. If you want to 
  1052.    access DB2 Version 2.1 through ODBC, select ODBC Datasources as the database 
  1053.    type. 
  1054.  
  1055.  To turn off the Class Options window so that it does not appear each time you 
  1056.  create a new class, click in the Use these defaults without prompting check 
  1057.  box to display the check mark. 
  1058.  
  1059.  To set the new default values, click on the OK push button. 
  1060.  
  1061.  To close the Class Options window without changing any settings, click on the 
  1062.  Cancel push button. 
  1063.  
  1064.  Select from the following list to get related online help: 
  1065.  
  1066.  o Class options... 
  1067.  o Create Class - Class Options 
  1068.  o Generate 
  1069.  
  1070.  Select from the following list to get related information from an online book: 
  1071.  
  1072.  o Generating the Source Code 
  1073.  o Accessing Data Using Visual Builder Programs 
  1074.  o Accessing Data Using C++ Programs 
  1075.  o Accessing Data Using SOM Programs 
  1076.  
  1077.  
  1078. ΓòÉΓòÉΓòÉ 48. Create Class - Class Options ΓòÉΓòÉΓòÉ
  1079.  
  1080. Use the Create Class - Class Options window to choose: 
  1081.  
  1082.  o The type of source code that will be generated by Data Access Builder. 
  1083.    Select one of the following: 
  1084.  
  1085.     - C++ Visual Builder part 
  1086.     - IDL 
  1087.     - C++. 
  1088.  
  1089.  o The type of database access method that will be used by Data Access Builder. 
  1090.    Select one of the following: 
  1091.  
  1092.     - Embedded SQL for DB2. 
  1093.     - Call Level Interface (CLI) for DB2 
  1094.     - CLI for ODBC. This is the only valid option if your table belongs to an 
  1095.       ODBC database. 
  1096.  
  1097.    Options that are not valid for the associated database do not appear. 
  1098.  
  1099.  To turn off the Class Options window so that it does not appear each time you 
  1100.  create a new class, select Class options... from the Options pull-down menu, 
  1101.  and click in the Use these defaults without prompting check box to set a check 
  1102.  mark. 
  1103.  
  1104.  To create the class or classes with the selected choices, click on the OK push 
  1105.  button. 
  1106.  
  1107.  To cancel the creation of classes, click on the Cancel push button. 
  1108.  
  1109.  Select from the following list to get related online help: 
  1110.  
  1111.  o Class options... 
  1112.  o Class Options 
  1113.  o Generate 
  1114.  
  1115.  Select from the following list to get related information from an online book: 
  1116.  
  1117.  o Generating the Source Code 
  1118.  o Accessing Data Using Visual Builder Programs 
  1119.  o Accessing Data Using C++ Programs 
  1120.  o Accessing Data Using SOM Programs 
  1121.  
  1122.  
  1123. ΓòÉΓòÉΓòÉ 49. Open ΓòÉΓòÉΓòÉ
  1124.  
  1125. Use the Open window to retrieve a previously saved Data Access Builder session: 
  1126.  
  1127.   1. Click on the down arrow to the right of the drives list box to display all 
  1128.      the drives on your system. To access drives that are mounted on the 
  1129.      network, click on the Network push button. 
  1130.   2. Select a drive. 
  1131.   3. Select a directory from the directories list box. 
  1132.   4. Select a file from the files list box, or type a file name in the entry 
  1133.      field. Use a file name extension of .dax. 
  1134.   5. Click on the OK push button. 
  1135.  
  1136.  The name of the retrieved session appears in the title bar. 
  1137.  
  1138.  To close the Open window without retrieving a session, click on the Cancel 
  1139.  push button. 
  1140.  
  1141.  Select Open... to get related online help. 
  1142.  
  1143.  Select Opening a Previously Saved Data Access Builder Session to get related 
  1144.  information from an online book. 
  1145.  
  1146.  
  1147. ΓòÉΓòÉΓòÉ 50. Save As ΓòÉΓòÉΓòÉ
  1148.  
  1149. Use the Save As window to save the current Data Access Builder session under a 
  1150. new file name. The current session consists of all objects currently displayed 
  1151. in the client area, and the settings for those objects. 
  1152.  
  1153.   1. Click on the down arrow to the right of the drives list box to display all 
  1154.      the drives on your system. To access drives that are mounted on the 
  1155.      network, click on the Network push button. 
  1156.   2. Select a drive. 
  1157.   3. Select a directory from the directories list box. 
  1158.   4. Select a file from the files list box, or type a file name in the entry 
  1159.      field. Use a file name extension of .dax. 
  1160.   5. Click on the OK push button. 
  1161.  
  1162.  If you specify an existing file name, you are asked whether you want to 
  1163.  replace the existing file. 
  1164.  
  1165.  To close the Save As window without saving the session, click on the Cancel 
  1166.  push button. 
  1167.  
  1168.  Select Save as... to get related online help. 
  1169.  
  1170.  Select Saving a Data Access Builder Session under Another Name to get related 
  1171.  information from an online book. 
  1172.  
  1173.  
  1174. ΓòÉΓòÉΓòÉ 51. View source ΓòÉΓòÉΓòÉ
  1175.  
  1176. Use the View source window to browse any source file generated by Data Access 
  1177. Builder. 
  1178.  
  1179. The View source window lists all of the source files that the Data Access 
  1180. Builder has generated for the class. The name of the subdirectory in which the 
  1181. files are located is displayed above the list of file names. Select one or more 
  1182. files to browse, and then click on the View push button. 
  1183.  
  1184. To close the View source window without viewing any files, click on the Cancel 
  1185. push button. 
  1186.  
  1187. Attention: Do not edit the source code generated by Data Access Builder. You 
  1188. should always generate source code directly from the information in the class 
  1189. notebook. If you edit a source file directly, your changes will be lost the 
  1190. next time that you use the tool to generate code for the same class. 
  1191.  
  1192. Select from the following list to get related online help: 
  1193.  
  1194.  o View source... 
  1195.  o Generate 
  1196.  
  1197.  Select from the following list to get related information from an online book: 
  1198.  
  1199.  o Generating the Source Code 
  1200.  o Viewing Generated Files 
  1201.