home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5741 < prev    next >
Encoding:
Text File  |  1992-08-21  |  3.4 KB  |  72 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!usc!sdd.hp.com!mips!carbon!news.cs.indiana.edu!syscon!gator!towers!mwhhlaw!bob
  3. From: uunet!mwhhlaw!bob (Robert L. Hartley Jr.)
  4. Subject: Re: DBKit Help (puhleeze)
  5. Message-ID: <1992Aug21.183205.4726@mwhhlaw.uucp>
  6. Sender: bob@mwhhlaw.uucp
  7. Reply-To: bob@mwhhlaw.com
  8. Organization: Martin Wade Hartley & Hollingsworth
  9. References: <1992Aug20.224819.1@capd.jhuapl.edu>
  10. Date: Fri, 21 Aug 1992 18:32:05 GMT
  11. Lines: 59
  12.  
  13. In article <1992Aug20.224819.1@capd.jhuapl.edu> waltrip@capd.jhuapl.edu  
  14. writes:
  15. > If you can find the time
  16. I don't know if it's a question of time.  We signed contracts not  
  17. circulate Beta stuff.
  18.  
  19. Maybe this will help.  To use use DBKit you must have an "Adaptor" to  
  20. your database.  3.0 will have Sybase and Oracle adaptors with it.  Then  
  21. within Sybase or Oracle you have to build your tables.  Then you run a  
  22. program called DBModeler, in which you spell out to DBKit what parts of  
  23. your database you want your application to see, and how you want them  
  24. to be seen.  Essentially a table is called an entity, and a column or  
  25. field is called a property.  You select entities and properties.  You  
  26. establish relationships between any two (note this limit) properties in  
  27. the same entity or different entities.  Your model can include as many  
  28. relationships as you want.  After you have made your model, you can use  
  29. Interface Builder, in which DBKit must be loaded as a palette.  On that  
  30. palette, you find three icons.  One represents a DBModel, which you can  
  31. drag into your application, and then you get access to all the  
  32. entities, properties, and relationships you included in your model  (I  
  33. think you can include more than one DBModel if you want.)  The other  
  34. two icons on the palette represent interface objects.  One is an image  
  35. field, which you can drag into a window and to which you can then  
  36. connect to a property in the DBModel.  You would use an image to  
  37. display data from binary fields.  The other is a Table View (much like  
  38. a browser), which has rows and columns and is scrollable, which you can  
  39. drag onto a window and to which you can connect properties from your  
  40. model.  You can also connect properties from your model to other  
  41. palette object like views, text fields, etc.
  42.  
  43. About the time 3.0 comes out look for some third party objects and  
  44. palettes to enhance the list of interface objects to which properties  
  45. from the model can be connected.
  46.  
  47. From my limited experience so far, you can only do the simplest of  
  48. database operations with interface builder.  To do anything  
  49. sophisticated, you must write the code.  DBKit includes dozens of  
  50. objects and methods by which you can do this.  But it is complex.  As I  
  51. understand it, DBKit keeps the stuff it gets from the database in  
  52. stream objects.  It keeps all the display stuff in other objects, and  
  53. another set of objects keeps the streams and display objects in sync.
  54.  
  55. While DBKIt appears very rich in functionality, it does have limits.   
  56. For example the relationships is recognizes are not in any way complex.   
  57. Since there are mechanisms to pass SQL commands through to the  
  58. database, I assume that with enough effort, one could programatically  
  59. accomplish about anything, but the solution would not necessarily be  
  60. elegant.
  61.  
  62. Without sending you the Beta documentation (which we are not allowed to  
  63. do), I don't know what else to say.
  64.  
  65.  
  66.  
  67. -- 
  68. Bob Hartley
  69. MARTIN, WADE, HARTLEY & HOLLINGSWORTH
  70. P. O. Box 88676
  71. 3590 N. Meridian St.
  72.