Map single-valued fields
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
As described in a previous section (see Java SDO Foundations),
a DataObject (and its ProDataObject extension)
represents a temp-table field as a column Property object
containing its value, with an associated Type object,
specifying its data type. The following table shows the ProDataObject mappings
to temp-table fields supported by ABL.
| ABL temp-table field data type | Java ProDataObject Property data type |
|---|---|
BLOB
|
byte[]
|
CHARACTER
|
java.lang.String
|
CLOB
|
java.loan.String
|
COM-HANDLE
|
long
|
DATE
|
java.util.GregorianCalendar
|
DATETIME
|
java.util.GregorianCalendar
|
DATETIME-TZ
|
java.util.GregorianCalendar
|
DECIMAL
|
java.math.BigDecimal
|
INT64
|
long
|
INTEGER
|
int
|
LOGICAL
|
boolean
|
RAW
|
byte[]
|
RECID
|
long
|
ROWID
|
byte[]
|
WIDGET-HANDLE
|
long
|
In addition to the value, the Property object contains
other information about the ProDataObject column
that corresponds to the temp-table field, including its position
in the row of columns (indicated by a property index) and the property
name, which is identical to the ABL name of the temp-table field.
The ProDataObject class has methods for setting and
getting the values of its column Property objects, accessed
by property name or index according to data type. For more information,
see ProDataObject class.