Arguments - EJB Component Builder Wizard (Magic xpa 2.x)
You can click Program Arguments to open the Arguments dialog box. All the defined parameters of the selected program are displayed in the table. They are later generated into the Java code.
The Argument name is taken from the parameters table of the selected program. The Java Type is calculated according to the field’s picture return value defined in the selected program. The Java Type list only displays the allowed types according to the attribute or picture definitions defined in the program field or expression.
This dialog box lets you specify Java classes for arguments and BLOB-type return values. For each argument/return value, if the Java type is set to Object, you can specify the complete Java class name that includes the package name, for example java.util.Vector. Note: The package name of an EJB generated with Magic xpa is com.magicsoftware.j2ee.
The Java class name specified should implement the java.io.Serializable class. If the Java class does not implement the java.io.Serializable class or if the Java class is not recognized, Magic xpa issues a warning.
When the Magic xpa Enterprise Server receives a request from the EJB, each BLOB parameter corresponding to an argument mapped to a Java object, will automatically be set to a Java reference of the passed object. To return a Java object, the BLOB return value should be set to a Java reference to a Java object.
The Precision slider is only visible for expressions that can return a numeric value. The Java Type list and Expression field will be unavailable for numeric arguments and for programs without a returned value.
Comparing Magic xpa and Java Types