home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv7.zip
/
VACPP
/
IBMCPP
/
smarts
/
DAX
/
READ.ME
Wrap
Text File
|
1995-06-02
|
3KB
|
63 lines
Project Smarts - Data Access Builder Application README
-------------------------------------------------------
Two kinds of Data Access Builder applications can be generated
using Project Smarts: A C++ application, and a SOM application.
A source file that contains client code to access data in a DB2/2
table is generated with the project. You provide your own database
table, and the Data Access Builder tool generates files that contain
the access methods for the table.
Building the Project
--------------------
┌───────────────────────────────────────────────────────────────┐
│ NOTE: You cannot build this project until you perform the │
│ following steps. You also need to have DB2/2 installed. │
└───────────────────────────────────────────────────────────────┘
First, ensure that you are logged on to the database system and
that the DBM (Database Manager) is started.
Next, use the Data Access Builder tool to generate the files
that contain the access methods for your table. Invoke the
Data Access Builder by selecting "Database" under the "Project" menu.
In the Data Access Builder tool, select the following values:
─────────────────────────────────────────────────────────┬──────────────────
Database name selected for creating classes: │ %DATASTORE_NAME%
─────────────────────────────────────────────────────────┴──────────────────
Class Name used in the Names page of the class notebook: │ %DAX_CLASS%
─────────────────────────────────────────────────────────┴──────────────────
File stem used in the Names page of the class notebook: │ %DAX_FILE%
─────────────────────────────────────────────────────────┴──────────────────
The generate option should be: │ %GENTYPE%
─────────────────────────────────────────────────────────┴──────────────────
Now, proceed to generate the data access source files (%GENTYPE%).
After the files have been generated, exit the Data Access Builder
tool. You are now ready to modify the source for any
application-specific processing.
%IDLNote%
Build the project by selecting "Build" under the "Project" menu.
Note on the SOM Compile action
------------------------------
A hand-coded make file is provided with the SOM Data Access Builder
application. This is because no special actions support is available
for the SOM Compiler, so an incomplete list of dependencies are
provided to the MakeMake utility for the SOM Compile action.
You can either edit the provided make file to suit your own needs, or
you can use MakeMake to create a make file for only the Compile and
Link steps, and perform the SOM Compile action manually (select
"Compile" from the pop-up menu of the IDL file).