Annotation of Examples/DatabaseKit/AssociationOracle/README.rtf, revision 1.1.1.1

1.1       root        1: {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f1\fmodern Ohlfs;}
                      2: \paperw13700
                      3: \paperh11540
                      4: \margl120
                      5: \margr120
                      6: {\colortbl;\red0\green0\blue0;}
                      7: \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 AssociationExample
                      8: \b0\fs24 \
                      9: by Mai Nguyen, NeXT Developer Support Team\
                     10: \
                     11: 
                     12: \b\fs28 Overview
                     13: \f1\b0\fs20 \
                     14: 
                     15: \f0\fs24 \
                     16: The current version of DBKit does not provide a way to filter the records fetched by a detail FetchGroup. DBKit does not allow a qualifier to be built into a relationship, nor does it allow a qualifier to be permanently attached to a FetchGroup. The Association example provides a way to do filtering of detail records by using a subclass of DBAssociation that replaces the default association which exists between the master FetchGroup and the detail FetchGroup. In this example, the user can change the criteria of the qualifier by entering a new value in the salary field and pressing the 
                     17: \b Fetch: 
                     18: \b0 button. The example is built such that you can easily reuse the object 
                     19: \b QualifiedAssociation
                     20: \b0  in your custom application.\
                     21: In order to run this example, you need to have access to an Oracle server and an Oracle demo database as described by the 
                     22: \b OracleDemo.dbmodela
                     23: \b0  model file.\
                     24: 
                     25: \fc1\cf1 \
                     26: 
                     27: \b\fs28 Program Organization\
                     28: 
                     29: \b0\fs24 \
                     30: 
                     31: \b Major Classes in the Application
                     32: \b0 \
                     33: \
                     34:  \
                     35: 
                     36: \pard\tx2880\tx2900\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-1900\li1900\fc1\cf1 Controller A general tester object.  This object is for testing whether the custom association works       properly. It is managing the UI of this example.\
                     37: 
                     38: \pard\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-1900\li1900\fc1\cf1 \
                     39: 
                     40: \pard\tx2880\tx2900\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-2920\li2920\fc1\cf1  QualifiedAssociation      A subclass of  DBAssociation. It overrides the method called when fetching, and add some new methods for setting up the proper qualifier. \
                     41:  
                     42: \fi-1900\li1900 \
                     43: 
                     44: \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \
                     45: 
                     46: \b\fs28 Topics Of Interest\
                     47: 
                     48: \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fs24\fc1\cf1 \
                     49: - How to set up a new DBAssociation between the master fetchgroup and the detail fetchgroup 
                     50: \b0 \
                     51: See the method 
                     52: \b initAndReplaceAssociationTo:
                     53: \b0  in the file QualifiedAssociation.m\
                     54: 
                     55: \pard\tx1340\tx2680\tx4020\tx5360\tx6720\tx8060\tx9400\tx10740\tx12080\tx13440\fc1\cf1 \
                     56: Last Edited: July 1993
                     57: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.