Try OpenEdge Now
skip to main content
Java Open Clients
Accessing ABL ProDataSets : Preparing and passing ProDataSets as ProDataGraph parameters : Managing ProDataObject mappings to temp-tables : Mapping single-valued fields
 
Mapping single-valued fields
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.
Table 11. Java ProDataObject mappings to temp-table fields
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.