Progress
Open Client
Developer’s Guide


Data Type Mapping

INPUT 4GL parameters are mapped directly to Java data types and classes. OUTPUT and INPUT-OUTPUT parameters, with the exception of TEMP-TABLE and TABLE-HANDLE parameters, are mapped to Holder classes in the com.progress.open4gl package. The contents of the holder class are the same Java data types and classes as the INPUT parameters.

The Java proxy data type applies to both INPUT and OUTPUT parameters for all except TEMP-TABLE and TABLE-HANDLE parameters, where the data type differs for INPUT and OUTPUT parameters.

Table 5–1 shows the 4GL-to-Java data type mapping for parameters.

Table 5–1: Progress To Java Data Type Mapping For Parameters  
Progress Data Type
Java Proxy Data Type
CHARACTER
String
COM-HANDLE
com.progress.open4gl.COMHandle
DATE
java.util.GregorianCalendar
DECIMAL
Java.math.BigDecimal
INTEGER
int
LOGICAL
boolean
MEMPTR
com.progress.open4gl.Memptr
RAW
byte[]
RECID
long
ROWID
com.progress.open4gl.Rowid
TABLE-HANDLE
java.sql.ResultSet (input)
com.progress.open4gl.ProResultSet (output)
TEMP-TABLE
java.sql.ResultSet (input)
com.progress.open4gl.ProResultSet (output)
WIDGET-HANDLE
com.progress.open4gl.Handle

The COM-HANDLE, WIDGET-HANDLE, RECID, or ROWID 4GL data types are not meaningful outside of the Progress environment. Their use is restricted to obtaining the value from a Progress procedure and being able to pass it back to another Progress procedure.

The mapping for the individual fields of a TEMP-TABLE differs from that of other parameters. For information on data type mapping for TEMP-TABLE or TABLE-HANDLE parameters, see Table 5–3.

NOTE: Open Clients do not support the Progress BUFFER parameter.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095