Creating Internal Value Objects
Internal value object classes and their components extend the foundation ValueObject class.
The business service foundation provides value object class wizards that help you create internal value object classes that follow methodology rules. The value object wizards also assist you by pulling useful information from the JD Edwards EnterpriseOne data dictionary into the Javadoc for value objects. You must create accessor methods (getter and setter methods) because the value object wizards do not generate these methods. Also, you must provide the description name of the field for the Javadoc.
The value object wizards enable you to create value object classes from the data structures that are defined within a business function or from database tables or business views. Remember that the wizard uses the field name that comes from the data structure, table, or business view to generate member variables for the internal value object class. These generated variables look very much like JD Edwards EnterpriseOne data items.
This code sample is from a business function:
/** * Address Line 1 * EnterpriseOne Alias: ADD1 * EnterpriseOne field length: 40 */ private String szAddressLine1 = null;
This code sample is from a table:
/** * CreditMessage * A value in the user defined code table * that indicates the credit status of a customer or supplier * EnterpriseOne Alias: CM * EnterpriseOne field length: 2 * EnterpriseOne User Defined Code: 00/CM */ private String F0101_CM = null;