File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / ExampleGuide.rtf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:40 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\f2\fnil Times-Roman;\f1\fmodern Ohlfs;}
\paperw10320
\paperh11260
\margl120
\margr120
{\colortbl;\red0\green0\blue0;}
\pard\tx740\tx6500\f2\b\i0\ulnone\fs32\fc0\cf0 Enterprise Objects Examples Quick Reference\

\b0\i\fs24 For EOF Release 1.1\

\b\i0\fs32 \
Overview
\fs36 \

\pard\tx380\tx6500\b0\fs24\li440\fc0\cf0 This Quick Reference gives a brief description of each example in /NextDeveloper/Examples/EnterpriseObjects to facilitate your searching for a particular topic as well as the level of difficulty for those of you who are new to EOF. The following examples are available:\

\pard\tx6500\fs32\fi-500\li880\fc0\cf0 \

\i\fs24\fi0\up10 Archiving\
Distributed Enterprise Objects *\
EOController \
FlatFileDataSource\
ManyToMany Relationship\
Mastering Details *\
QueryByExample and Sorting �\
Radio Matrix Association\
SQL Execution\
Unique Key Generation\
Validation *\
 \
 Misc\
 SHL Examples (All these examples require Sybase and the Pubs demo database)\
 DB Scripts to install th ePEOPLE demo databases\
 \
 * New in EOF 1.1\
 � Significantly enhanced for 1.1\
\

\pard\tx60\tx6500\b\i0\fs32\fi-20\li40\fc0\cf0 \
Archiving In A Mixed World (Simple)\

\fs36 \

\pard\tx720\tx6500\fs28\fi-20\li760\fc0\cf0 Archiving a subclass of NSObject
\b0\fs32 \

\pard\tx1120\tx6500\fs24\fi-20\li1120\fc0\cf0 ArchivingNSObject (Owner.m)
\fs36 \

\pard\tx720\tx6500\b\fs28\fi-20\li760\fc0\cf0 Archving a subclass of Object
\b0\fs36 \

\pard\tx1120\tx6500\fs24\fi-20\li1120\fc0\cf0 ArchvingObject (Owner.m)
\fs36 \

\pard\tx720\tx6500\fs28\fi-20\li760\fc0\cf0 	\

\pard\tx60\tx6500\b\fi-20\li40\fc0\cf0 Distributed Enterprise Objects (Advanced)\

\fs36 \

\pard\tx720\tx6500\fs28\fi-20\li760\fc0\cf0 How to use the NSNotification protocol to propagate  basic DB Operations like fetch, update, insert between a server and remote clients.\
The example shows how to send enterprise objects over the wire by following certain conventions. This example supersedes the Distributed Objects example in EOF 1.0 Release.
\fs32 \

\pard\tx1120\tx6500\fs28\fi-20\li1120\fc0\cf0  
\b0\fs24  \

\pard\tx700\tx6500\fs36\fi20\li760\fc0\cf0 	
\pard\tx920\tx6500\fi-180\li560\fc0\cf0 \

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 EOController (Simple)\

\b0 	\

\pard\tx720\tx6500\b\fs28\fi-20\li760\fc0\cf0 How to build a master/detail controller and master/detail tableview in IB\

\pard\tx1120\tx6500\fi-20\li1120\fc0\cf0  
\b0\fs24 See PeopleDemo.nib\

\pard\tx720\tx6500\b\fs28\fi-20\li760\fc0\cf0 Simple validation and sorting\

\pard\tx1120\tx6500\fi-20\li1120\fc0\cf0  
\b0\fs24 See MainController.[hm]
\pard\tx700\tx6500\fs36\fi20\li760\fc0\cf0 	
\pard\tx920\tx6500\fi-180\li560\fc0\cf0 \

\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fs32\fc0\cf0  
\fs36 	\

\b\fs32 FlatFileDataSource (Intermediate)\

\b0 	\

\pard\tx720\tx6500\b\fs28\fi-20\li760\fc0\cf0 How to build a custom data source that reads a table of data from a flat file to generate EO generic records\

\pard\tx1120\tx6500\fi-20\li1120\fc0\cf0  
\b0\fs24 See TableDataSource.[hm]\
\
\

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 ManyToMany (Intermediate)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 How to perform Insert/Delete on the master and Add/Delete on the detail in a many-to-many relationship\
 
\b0\fs24 See Projects.[hm]\
\

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 MasteringDetails (Advanced)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 A generic approach to handle insertion and deletion in detail controllers without writing custom code to assign the keys used to join the records in the database.\

\pard\tx20\tx6500\fs32\fi-20\li20\fc0\cf0 \
QueryByExample (Intermediate)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 How to connect to an EOController to construct qualifiers built from the UI and execute them\
 
\b0\fs24 See QBE.[hm]\

\b\fs28 How to perform either descending or ascending ordering on any entity and its associated attributes tied to any tableview\
 
\b0\fs24 See SortOrderSetter.[hm]\
\

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 RadioMatrixAssociation (Simple)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 How to write a custom association\
 
\b0\fs24 See RadioAssociation.[hm]\

\b\fs28  
\b0\fs24 \
\

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 SQLExecutor (Intermediate)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 How to evaluate an arbitrary SQL statement for Sybase or Oracle. Also executes stored procedures (Result sets can only be processed for Sybase adaptor).\
 
\b0\fs24 See Evaluator.[hm] and SybaseDelegate.[hm]\
\
 \

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 UniqueKey (Intermediate)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 How to generate unique keys using custom code and a custom table .\
 
\b0\fs24 See UniqueKey.[hm] and UniqueKey.eomodel. \
 UniqueKey uses a separate table to hold the external entity name and current max reserved integer key.  The UniqueKey objects share a database channel that is sure to be free to allow immediate reservation of a block of keys.\
\

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 Validation (Intermediate)\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 A generic scheme to allow validation logic to be specified in EOs.\
 
\b0\fs24 See KeyValueValidation.[hm] and ValidatingDelegate.[hm] in the Validation subproject\
 \
 \

\pard\tx20\tx6500\b\fs32\fi-20\li20\fc0\cf0 SystemHouse (SHL) Examples\

\pard\tx1120\tx6500\b0\fi-20\li1120\fc0\cf0 	\

\b\fs28 Access Layer (Simple)\
How to etasblish connection and fetch from the database using either the database level API or the adaptor level API\
 
\b0\fs24 See DatabaseLevel.[hm] and AccessLevel.[hm]\
  \

\b\fs28 Buffering (Simple)\
How the different buffering schemes of EOController work\
\
Data Source (Simple)\
How to build a custom data source whose records are stored in memory\
 
\b0\fs24 See DataSource.[hm]\
 \

\b\fs28\fc1\cf1 Delegation (
\fc0\cf0 Simple)\
Tracing the various delegation methods from EOController, EODatabase, and EOAdaptor\
 
\b0\fs24 See EOFDelegateControllerCategory.[hm], EOFDelegateDatabaseCategory.[hm], and EOFDelegateAdaptorCategory.[hm]\
 \

\b\fs28 Enterprise Object(Simple)\
How to build custom enterprise objects\
 \
KeyValueCoding (Simple)\
Illustrate the KeyValueCoding protocol\
 \
Querying (Intermediate)\
How to build a query and display its results dynamically in a tableview\
 
\b0\fs24 See QueryController.[hm]
\b\fs28 \
\
Sorting (Intermediate)\
How to apply ordering based on a list of attributes from an entity or columns in the tableview\
 
\b0\fs24 See SortController.[hm]\
 \
 \

\pard\tx6500\fc0\cf0  
\i Last updated: February 1995\
 Mai Nguyen
\b\i0\fs32 \

}

unix.superglobalmegacorp.com

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