Temp-table field data type conversion
- Last Updated: August 15, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
When the getDataType() method you use to
get the value of a temp-table field does not match the default Java data type of the field
(see Prepare and manage temp-table parameters), a valid conversion occurs as long as the
getDataType() method corresponds to the
ABL data type, as shown in the following table. Otherwise, an exception is thrown with a
message explaining that the conversion is not supported. For example, if the temp-table field
is defined as LOGICAL, you can use any of getString(),
getInt(), or getBoolean() to retrieve the field value.
| ABL data type | Valid Java data type accessor methods |
|---|---|
BLOB
|
byte[] getBytes()
|
CHARACTER
|
java.lang.String getString()
|
CLOB
|
java.lang.String getString()
|
COM-HANDLE
|
java.lang.String getString()
|
DATE
|
java.lang.String getString()
|
DATETIME
|
java.lang.String getString()
|
DATETIME-TZ
|
java.lang.String getString()
|
DECIMAL
|
java.lang.String getString()
|
INT64
|
java.lang.String getString()
|
INTEGER
|
java.lang.String getString()
|
LOGICAL
|
java.lang.String getString()
|
RAW
|
byte[] getBytes()
|
RECID
|
java.lang.String getString()
|
ROWID
|
byte[] getBytes()
|
WIDGET-HANDLE
|
java.lang.String getString()
|