Mapping attributes: Enterprise JavaBeans (EJB) and business object

This section provides a list of the EJB constructs defined in a JAR file and their corresponding business object attributes. For all business object attributes that are not child business objects, the data type is String. In a business object, the ASI holds the actual data type of the attribute and is used when invoking methods against the enterprise bean's remote interface.

For details about business object ASI, see Application-specific information.

Table 8. Object mapping: Enterprise bean to business object

EJB Construct Business object Attribute ASI type=
All classes whose reference is found in the JAR file Object proxy_class=<remote interface name>
boolean Boolean type=boolean/Boolean
char/Character String type=char/Character
Byte/Byte String type=byte/Byte
java.lang.String String type=string
Short/Short Integer type=short/Short
int/Integer Integer type=int/Integer
Long/Long Integer type=long/Long
float/Float Float type=float/Float
Double/double Double type=double/Double
java.math.BigDecimal String type=BigDecimal
class Object proxy_class=<fully qualified class name>
array Object
Child business object with multiple cardinality
type=ArrayOf_<datatype>
For example, type=ArrayOf_int
method Object
Child BO
method_name=<methodName>
method (no argument and void return type) String method_name=<methodName>
Note:
In cases where the attribute is not intended to be de-referenced, the ASI type=PlaceholderOnly should be used. This tells the connector to not populate this attribute. The attribute may still be used as part of a multi-call flow if it is either marked as a foreign key (IsForeignKey is set to true), or has the ASI use_attribute_value pointing to a compatible attribute.

Array types

Note the following about array types:

Copyright IBM Corp. 1997, 2003