Previous Topic: Default ValuesNext Topic: Code to Invoke the EJB Server


Data Type Mappings

Since the import and export objects are designed to have no runtime dependencies, the attribute data types must be native data types supported by the EJB Framework. The following table shows the mappings applied:

CA Gen Attribute Definition

EJB Framework Data Type

Text/Mixed Text/DBCS Text

java.lang.String

Number (no decimals, =< 4 digits)

short

Number (no decimals, =< 9 digits)

int

Number (no decimals, > 9 digits)

double

Number (with decimals)

double

Number (with precision turned on)

java.math.BigDecimal

Date

java.sql.Date (null represents optional data)

Time

java.sql.Time (null represents optional data)

Timestamp

java.sql.Timestamp (null represents optional data)