Previous Topic: Default ValuesNext Topic: Using a Java Proxy


Data Type Mappings

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

CA Gen Attribute Definition

Java 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)

Timestamp

java.sql.Timestamp (null represents optional data)

Time

java.sql.Time (null represents optional data)

BLOB

byte[]