Browse Prior Art Database

Code Generation for an Object Oriented Application

IP.com Disclosure Number: IPCOM000105425D
Original Publication Date: 1993-Jul-01
Included in the Prior Art Database: 2005-Mar-19
Document File: 2 page(s) / 77K

Publishing Venue

IBM

Related People

Anderson, JB: AUTHOR [+4]

Abstract

Disclosed with this bulletin are programs which generate the data handling layer of a ProductManager based application. Essential elements of the invention include:

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 53% of the total text.

Code Generation for an Object Oriented Application

      Disclosed with this bulletin are programs which generate the
data handling layer of a ProductManager based application.  Essential
elements of the invention include:

1.  A flexible template processing mechanism which operates within
    the ProductManager environment.
Generation of source code is a special case of the general problem of
generating a sequential file which has a predictable pattern but
variable content.  The predictable pattern is the template for the
file, which consists of literal text with substitution variables and
procedural exits (macros) to retrieve data and make decisions.  The
procedural exits are ProductManager metaclasses which inherit from a
common class which provides a consistent interface to the template
processor.  These macros also handle iterations (if lines must be
repeated in the output file based on data conditions), and they can
invoke other templates to write out lines determined by logic within
the macro.  These templates can in turn access other macros.

Template creation and editing support is provided.  Templates are
stored in ProductManager using DB2 sequential files, and they are
presented to the user using a text editor available in the
ProductManager operating environment (for TSO/MVS, this is the
standard ISPF editor).
2.  Specific support for code generation.  Specific templates and
    macros for generation of data handling code are provided.  These
    include the following:
    a.  Declaration of persistent attributes
    b.  The corresponding assign methods
    c.  Object oriented clauses to export both the attributes and the
        assign methods.
    d.  The methods needed for communication with panels and Product
        Data Interface type 2 (PDI2).
    e.  The methods needed for object-oriented data base
        communication deferred from the Persistent Object (EKNDPERS).
    f.  Common find  and stream methods, with their c...