Previous Topic: User Action Outside of CA GenNext Topic: Create a CA Gen Runtime JAR File


Access Individual Class Members

The import and export views are placed into separate classes in their own source files. For example, the action block DEMO_EAB will be generated as the class DEMOEAB; its import and export views are generated as the classes DEMOEAB_IA and DEMOEAB_OA, respectively.

Within each class are the individual class members that hold the view data. Each view, entity and attribute name is concatenated together and generated as a single flattened variable without underscores for spacing. The single variable may contain non-ASCII characters since Java allows them in variable names. The variable follows the uppercase and lowercase rules typically used in Java programming. Specifically, the first letter of each word is in uppercase and all remaining characters are in lowercase, the first character in the variable name is always in lowercase.

For example:

Entity View: IMPORT_CUSTOMER
Entity: ADDRESS
Attribute: POSTAL_CODE

becomes

importCustomerAddressPostalCode

Each member of the class may be defined as one of the following native Java data types:

char
short
int
double

Further, some members of the class are defined as one of the following native Java classes:

BigDecimal
String

Within a view, each attribute may be accessed as a standard Java property on an object. For example:

int id = wIa.importCustomerAddressId;
wOa.exportCustomerAddressId = id;