Skip to main content

 
Servers  > Mainframe servers  > Software  > Java on z/OS  > 

Record Framework Overview

(last updated November, 2006)

  
dblue_rule.gif

The VisualAge for Java Enterprise Edition Record Framework

The VisualAge for Java Enterprise Edition Record Framework is a collection of predefined classes of objects that work together to handle record-oriented data in Java. It adds function that is not provided in java.io. It provides the capability of creating a Java Bean, which encapsulates a record by providing accessors (get and set methods) to the fields of a record. The Record Framework runtime handles any data conversion on the fields. The java.io programmer must define fields (a field can be a byte, string, object, and so on) and the relationships between them and manage that relationship. With the Record Framework, the programmer defines the structure of the record by defining all the fields in the record (simple fields, arrays, overlays, nested records), and the Record Framework manages all interactions with the record.

JRIO can be used with, but does not require, the Record Framework. The Record Framework is provided with JRIO to make it easier for Java applications to access fields within records. The Visual Age for Java Enterprise Edition for the workstation (NT, OS/2, Windows 95 and 98, AIX) has tools that allow the programmer to create record beans without requiring any knowledge of the Record Framework or even writing a single line of code. The tools are contained in the Enterprise Access Builder (EAB) feature of the product. There is an importer (which imports COBOL source code to create a record bean) and a Record Editor (which allows the programmer to create, manipulate, or examine records graphically. Currently there is support only for C, COBOL, and 3270 records, but the advanced programmer can extend the Record Framework to support other types of records. The records generated by tools provide access to the fields of a record as properties of the generated record bean. You should test the generated record bean independently before exporting it to OS/390.


grey_rule.gif

Important Update on IDE Tools

VisualAge for Java Professional Edition V4.0 has been withdrawn from marketing effective March 10, 2003. The VAJava record framework function is mostly some interfaces to JRIO for convenience. The key function that this provided was to generate interface code to parse a COBOL record layout of a zOS file and generate Java code to do the byte manipulations to access it. This assumes that you have a COBOL copybook and that you have some mechanism of your own for getting the records from zOS to the workstation where you want to test. The VAJ Record concept has been replaced by equivalent support in WSAD IE, and now RAD4J J2C. WSAD IE will generate beans and formatHandlers for COBOL and C, which match the function of VAJ EAB COBOL and C Records. RAD4J J2C generates COBOL and C Java Records. It's similar in that it generates Java code to convert from a Java Bean like format to a zOS Cobol, 3270 or C record layout. Support for this has been withdrawn but you can copy or use this code on an as-is basis.


grey_rule.gif

For More Information

For more information about Record Framework for Java, you may want to access:


 

suncup.gif