CodeGen Tweaks

 

Tweak Name

 

Purpose

GROUP_PREFIX_ALWAYS

 

Causes any group prefixes to be automatically applied to group fields, even if the "Use by compiler" option is not set.

PARAMDEFSTR

 

Causes the <PARAMETER_ATTRIBUTE>, <PARAMETER_DEFINITION>, <PARAMETER_DEFINITION_NOARRAY>, <PARAMETER_STRUCTURE>, <PARAMETER_STRUCTURE_NOPLURAL> and <PARAMETER_STRUCTURE_PLURAL> expansion tokens to prefix structure names with "STR_".

 

SMC_CAMEL_CASE

 

Causes the upper case variants of the <INTERFACE_NAME>, <METHOD_NAME> and <PARAMETER_NAME> method catalog expansion tokens to be output in camel case.

 

SMC_PASCAL_CASE

 

Causes the upper case variants of the <INTERFACE_NAME>, <METHOD_NAME> and <PARAMETER_NAME> method catalog expansion tokens to be output in pascal case.

 

SQLNAME$$ID

 

Causes $$ in field names to be replaced by the text "Id" when using the <FIELD_SQLNAME> field loop expansion token.

SQLNAMENO$

 

Causes any $ characters in field names to be suppressed when using the <FIELD_SQLNAME> field loop expansion token.

SQL_NAME_CONTIGUOUS_ARRAY

 

Changes the field naming rules when expanding arrays into individual fields and using the <FIELD_SQLNAME> field loop expansion token. With this tweak active the array fields are numbered in one numeric sequence, regardless of the number of array dimensions. The first element of the array retains the name of the original field, and additional elements are suffixed with an incrementing number starting at 2.

 

The following examples use this template code:

 

<FIELD_LOOP>

<FIELD_NAME> <FIELD_SQLNAME>

</FIELD_LOOP>

 

Example 1, for a field defined as PHONE, [3]D10

 

PHONE[1] PHONE

PHONE[2] PHONE2

PHONE[3] PHONE3

 

Example 2, for a field defined as MATRIX, [2,2,2,2]A1

 

MATRIX[1,1,1,1] MATRIX

MATRIX[1,1,1,2] MATRIX2

MATRIX[1,1,2,1] MATRIX3

MATRIX[1,1,2,2] MATRIX4

MATRIX[1,2,1,1] MATRIX5

MATRIX[1,2,1,2] MATRIX6

MATRIX[1,2,2,1] MATRIX7

MATRIX[1,2,2,2] MATRIX8

MATRIX[2,1,1,1] MATRIX9

MATRIX[2,1,1,2] MATRIX10

MATRIX[2,1,2,1] MATRIX11

MATRIX[2,1,2,2] MATRIX12

MATRIX[2,2,1,1] MATRIX13

MATRIX[2,2,1,2] MATRIX14

MATRIX[2,2,2,1] MATRIX15

MATRIX[2,2,2,2] MATRIX16

 

 

 

 


Copyright © 2021  Synergex International, Inc.