Add parameters using a generic method
- Last Updated: August 15, 2021
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
You can use the following generic method on the com.progress.open4gl.javaproxy.ParamArray class to set the parameters in the
ParamArray:
Syntax
|
- position
- Specifies a 0-based index indicating the parameter position.
- value
- Specifies a variable of the appropriate
Objectdata type that contains the value for the parameter, ornullfor anOUTPUTparameter. - 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
-
- proType
- Specifies the ABL data type of the parameter indicated by a class
constant defined in the
com.progress.open4gl.Parameterclass, as shown in the following table.Table 1. ABL parameter data types for the OpenAPI Progress data type com.progress.open4gl.Parameterclass constant CHARACTERPRO_CHARACTERCOM-HANDLEPRO_COMHANDLEDATASETPRO_DATASETDATASET-HANDLEPRO_ DATASETHANDLEDATEPRO_DATEDATETIMEPRO_DATETIMEDATETIME-TZPRO_DATETIMETZDECIMALPRO_DECIMALINT64PRO_INT64INTEGERPRO_INTEGERLOGICALPRO_LOGICALLONGCHARPRO_LONGCHARMEMPTRPRO_MEMPTRRAWPRO_RAWRECIDPRO_RECIDROWIDPRO_ROWIDTABLEPRO_TEMPTABLETABLE-HANDLEPRO_TABLEHANDLEWIDGET-HANDLEPRO_WIDGETHANDLE - extentValue
- Specifies the extent of an array, zero for a scalar value.
- metaData
- Specifies the schema for ProDataSet or temp-table parameters, where
proType is one of the following:
-
Parameter.PRO_DATASET -
Parameter.PRO_DATASETHANDLE -
Parameter.PRO_TEMPTABLE -
Parameter.PRO_TABLEHANDLE
The value can be specified using one of the following classes:
-
ProResultSetMetaDataImpl— To define the schema information for temp-table parameters that are mapped to ajava.sql.ResultSet. For more information on defining this schema, see Define the schema for a temp-table parameter mapped to a java.sql.ResultSet. -
ProDataGraphMetaData— To define the schema information for ProDataSet parameters and temp-table parameters that are mapped to acom.progress.open4gl.ProDataGraph. For more information on defining the schema for ProDataSet parameters, see Define the schema for a ProDataSet parameter. For more information on defining the schema for temp-table parameters mapped to aProDataGraph, see Define the schema for a temp-table parameter mapped to a ProDataGraph.
When mode is
ParamArrayMode.OUTPUTand proType isParameter.PRO_DATASETHANDLEorParameter.PRO_TABLEHANDLE(passing a dynamic ProDataSet or temp-table parameter), you can set this parameter tonull. -