Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Setting up parameters : Adding parameters using data type-specific methods : General syntax for add parameter methods
 
General syntax for add parameter methods
The general syntax of these methods is as follows:
Syntax
public void addProgressType(int position, DataTypevalue, int mode,
                     [ int extentValue|MetaTypemetaData])
            throws Open4GLException
ProgressType
Indicates the ABL data type of the parameter, such as Decimal in addDecimal(), for adding a parameter of data type DECIMAL.
position
Specifies a 0-based index indicating the parameter position.
DataType
Specifies the Java data type of the parameter, for example, java.math.BigDecimal or java.math.BigDecimal[].
value
Specifies a variable that contains the value of the parameter, or null for an OUTPUT parameter.
mode
Specifies the ABL mode (passing direction) of the parameter. This can be one of the following constant values:
*ParamArrayMode.INPUT
*ParamArrayMode.INPUT_OUTPUT
*ParamArrayMode.OUTPUT
extentValue
Specifies the extent of an array for methods that add an array parameter (where ProgressType is appended with Array, as in AddDecimalArray()).
MetaType
Specifies one of the following classes for methods that add a temp-table or ProDataSet parameter:
*ProResultSetMetaDataImpl — Provides the schema information for temp-table parameters that are mapped to a java.sql.ResultSet. For more information on defining this schema, see Defining the schema for a temp-table parameter mapped to a java.sql.ResultSet.
*ProDataGraphMetaData — Provides the schema information for ProDataSet parameters and temp-table parameters that are mapped to a com.progress.open4gl.ProDataGraph. For more information on defining the schema for ProDataSet parameters, see Defining the schema for a ProDataSet parameter. For more information on defining the schema for temp-table parameters mapped to a ProDataGraph, see Defining the schema for a temp-table parameter mapped to a ProDataGraph.
metaData
Specifies an instance of MetaType. When mode is ParamArrayMode.OUTPUT and ProgressType is DatasetHandle or TableHandle (passing a dynamic ProDataSet or temp-table parameter), you can set this parameter to null.