ATTR Class
 

Parameter:


Optional modifiers: DOM, NULL, PREF, SUF, LOWER, UPPER.

Algorithm:
If DOM is specified, finds within the domain the rule corresponding to the attribute value and processes the rule (domains are described in a lower section); otherwise converts the attribute value to a character string.
If the result string is empty, processes the rule specified by NULL, and returns the NULL result; otherwise processes the rule specified by PREF and inscribes the PRED result as a prefix for the result string; then processes the rule specified by SUF and inscribes the SUF result as a suffix for the result string.

Example 1

columnDefault     ATTR ColumnDefault
                  PREF = "DEFAULT ";

If the value returned by the columnDefault repository function is "USA", the result will be "DEFAULT USA" if the value is null, the result will be an empty string.

Example 2

columnDefault     ATTR "org.modelsphere.sms.or.db.DbORColumn.fInitialValue"
                  PREF = "DEFAULT ";

If the value returned by the fInitialValue API meta field is "USA", the result will be "DEFAULT USA" if the value is null, the result will be an empty string.