A control system for enabling user access of data records stored in a relational
database in an object oriented way has a first object model representing a class
mapped to a table in the relational database, a second object model representing
a query object modeled after the first object model according to the same modeling
framework, a software parser for reading the information contained in the first
and second object models, a model generator for building a representative model
from aggregated information from the first and second models, and a code generator
for scanning the representative model and generating the appropriate application
code for each node in the representative model. The system is characterized in
that a user supplies the input parameters for accessing the records desired from
the database into a text receptacle of the second object model and executes the
model causing subsequent application code-generation processing that drives the
access to the records in the ordered manner, the records served as an object or
objects to a user program from which such records were retrieved in a fashion requested
and interpretable by the user program.