Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Setting up parameters : Arrays as return values
 

Arrays as return values

Java Open Clients can return array values (called extents in ABL) from user-defined functions.
The following table provides the data type mappings for array parameters.
Table 35. Data type mappings between ABL and Java array types
ABL type with EXTENT
Java proxy return typefor values
Java proxy return typefor unknown
INTEGER
int[ ]
Integer[]
INT64
long[]
Long[]
DECIMAL
java.math.BigDecimal[ ]
CHARACTER
java.lang.String[ ]
LOGICAL
boolean[ ]
Boolean[]
DATE
DATETIME
DATETIME-TZ
java.util.GregorianCalendar[ ]
RECID
long[ ]
RAW
byte[ ][ ]
ROWID
com.progress.open4gl.Rowid[ ]
COM-HANDLE
com.progress.open4gl.COMHandle[ ]
WIDGET-HANDLE
com.progress.open4gl.Handle[ ]
* setIsReturnExtent( ) method
* Handling unknown values in arrays.
* setIsReturnUnknown( ) method