File:  [NeXTSTEP 3.3 examples] / Examples / DatabaseKit / AssociationSybase / README.rtf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:49:00 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f1\fmodern Ohlfs;}
\paperw13700
\paperh11540
\margl120
\margr120
{\colortbl;\red0\green0\blue0;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b\i0\ulnone\fs36\fc0\cf0 AssociationExample
\b0\fs24 \
by Mai Nguyen, NeXT Developer Support Team\
\

\b\fs28 Overview
\f1\b0\fs20 \

\f0\i\fs24 This is a twin example to the Oracle AssociationExample. To be used by Sybase developers.
\i0 \
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 quantity field and pressing the 
\b Fetch: 
\b0 button. The example is built such that you can easily reuse the object 
\b QualifiedAssociation
\b0  in your custom application.\
In order to run this application, you need to have access to a Sybase server and a pubs demo database as described in the 
\b SybaseDemo.dbmodela 
\b0 model file.\

\fc1\cf1 \

\b\fs28 Program Organization\

\b0\fs24 \

\b Major Classes in the Application
\b0 \
\
 \

\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.\

\pard\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-1900\li1900\fc1\cf1 \

\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. \
 
\fi-1900\li1900 \

\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \

\b\fs28 Topics Of Interest\

\pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fs24\fc1\cf1 \

\pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc1\cf1 - How to set up a new DBAssociation between the master fetchgroup and the detail fetchgroup 
\b0 \
See the method 
\b initAndReplaceAssociationTo:
\b0  in the file QualifiedAssociation.m\

\pard\tx1340\tx2680\tx4020\tx5360\tx6720\tx8060\tx9400\tx10740\tx12080\tx13440\fc1\cf1 \
Last Edited: July 1993
}

unix.superglobalmegacorp.com

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