Salesforce

Comparing Magic xpa and Java Types (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Comparing Magic xpa and Java Types (Magic xpa 2.x)

The following table shows the different Magic xpa types with the corresponding Java types:

Magic xpa type

Java type

Alpha

String / StringBuffer

Blob

String / StringBuffer / byte [ ] /Object

Numeric

byte / short / long / float / double

Logical

Boolean

Date/Time

String

To maintain accuracy, Numeric parameters must properly map the parameters of the activated program. The Component Builder assigns the Java type based on the parameter’s attribute and picture, using the same rules used to assign a storage type to fields of database tables. You cannot choose another type.

For a Numeric task’s returned value, i.e. an expression returning a numeric value, the Component Builder does let you choose the Java type. If the selected type is Float or Double, you have to specify the precision.

The default type is Double with a Precision of 2. If Precision is 0, the Java Type changes to Long.

Reference
Attachment 
Attachment