Package com.progress.open4gl.javaproxy
Class ParamArray
java.lang.Object
com.progress.open4gl.javaproxy.ParamArray
An object containing an array for passing parameters to an ABL procedure or
user-defined function.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCharacter
(int position, String val, int mode) Adds a Character parametervoid
addCharacterArray
(int position, String[] val, int mode, int extentValue) Adds a Character array parametervoid
addCOMHandle
(int position, COMHandle val, int mode) Adds a COMHandle parametervoid
addCOMHandleArray
(int position, COMHandle[] val, int mode, int extentValue) Adds a COMHandle array parametervoid
addDataset
(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) Adds a Dataset parameter as a ProDataGraph objectvoid
addDataset
(int position, String val, int mode) Adds a Dataset parameter (Version for serialized dataset)void
addDataset
(int position, String val, int mode, boolean writeBeforeImage) Adds a Dataset parameter (Version for serialized dataset)void
addDataset
(int position, String val, int mode, boolean writeBeforeImage, int serializeFormat) Adds a Dataset parameter (Version for serialized dataset)void
addDatasetHandle
(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) Adds a Dataset Handle parameter as a ProDataGraph objectvoid
addDatasetHandle
(int position, String val, int mode) Adds a Dataset Handle parameter (Version for serialized dataset)void
addDatasetHandle
(int position, String val, int mode, boolean writeBeforeImage) Adds a Dataset Handle parameter (Version for serialized dataset)void
addDatasetHandle
(int position, String val, int mode, boolean writeBeforeImage, int serializeFormat) Adds a Dataset Handle parameter (Version for serialized dataset)void
addDate
(int position, GregorianCalendar val, int mode) Adds a Date parametervoid
addDateArray
(int position, GregorianCalendar[] val, int mode, int extentValue) Adds a Date array parametervoid
addDatetime
(int position, GregorianCalendar val, int mode) Adds a DateTime parametervoid
addDatetimeArray
(int position, GregorianCalendar[] val, int mode, int extentValue) Adds a DateTime array parametervoid
addDatetimeTZ
(int position, GregorianCalendar val, int mode) Adds a DateTimeTZ parametervoid
addDatetimeTZArray
(int position, GregorianCalendar[] val, int mode, int extentValue) Adds a DateTimeTZ array parametervoid
addDecimal
(int position, BigDecimal val, int mode) Adds a Decimal parametervoid
addDecimalArray
(int position, BigDecimal[] val, int mode, int extentValue) Adds a Decimal array parametervoid
Adds a Handle parametervoid
addHandleArray
(int position, Handle[] val, int mode, int extentValue) Adds a Handle array parametervoid
addInt64
(int position, long val, int mode) Adds an Int64 parametervoid
Adds an Int64 parametervoid
addInt64Array
(int position, long[] val, int mode, int extentValue) Adds an Int64 array parametervoid
addInt64Array
(int position, Long[] val, int mode, int extentValue) Adds an Int64 array parametervoid
addInteger
(int position, int val, int mode) Adds an Integer parametervoid
addInteger
(int position, Integer val, int mode) Adds an Integer parametervoid
addIntegerArray
(int position, int[] val, int mode, int extentValue) Adds an Integer array parametervoid
addIntegerArray
(int position, Integer[] val, int mode, int extentValue) Adds an Integer array parametervoid
addLogical
(int position, boolean val, int mode) Adds a Logical parametervoid
addLogical
(int position, Boolean val, int mode) Adds a Logical parametervoid
addLogicalArray
(int position, boolean[] val, int mode, int extentValue) Adds a Logical array parametervoid
addLogicalArray
(int position, Boolean[] val, int mode, int extentValue) Adds a Logical array parametervoid
addLongchar
(int position, String val, int mode) Adds a LongChar parametervoid
addLongcharArray
(int position, String[] val, int mode, int extentValue) Adds a LongChar array parametervoid
Adds a Memptr parametervoid
addMemptrArray
(int position, Memptr[] val, int mode, int extentValue) Adds a Memptr array parametervoid
addParameter
(int position, Object obj, int paramMode, int proType, int extentValue, ProDataGraphMetaData metadata) A Generic means of adding a parametervoid
addParameter
(int position, Object obj, int paramMode, int proType, int extentValue, ProResultSetMetaDataImpl metadata) A Generic means of adding a parametervoid
addRaw
(int position, byte[] val, int mode) Adds a Raw parametervoid
addRawArray
(int position, byte[][] val, int mode, int extentValue) Adds a Raw array parametervoid
addRecid
(int position, long val, int mode) Adds a Recid parametervoid
Adds a Recid parametervoid
addRecidArray
(int position, long[] val, int mode, int extentValue) Adds a Recid array parametervoid
addRecidArray
(int position, Long[] val, int mode, int extentValue) Adds a Recid array parametervoid
Adds a Rowid parametervoid
addRowidArray
(int position, Rowid[] val, int mode, int extentValue) Adds a Rowid array parametervoid
addTable
(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) Adds a Temp-Table parameter as a ProDataGraph objectvoid
Adds a Temp-Table parameter as a serialized stringvoid
Adds a Temp-Table parameter as a serialized stringvoid
addTable
(int position, ResultSet val, int mode, ProResultSetMetaDataImpl metadata) Adds a Temp-Table parameter as a ResultSet objectvoid
addTableHandle
(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) Adds a Table Handle parameter as a ProDataGraph objectvoid
addTableHandle
(int position, String val, int mode) Adds a Table Handle parameter (Version for serialized temp-table)void
addTableHandle
(int position, String val, int mode, int serializeFormat) Adds a Table Handle parameter (Version for serialized temp-table)void
addTableHandle
(int position, ResultSet val, int mode, ProResultSetMetaDataImpl metadata) Adds a Table Handle parameter as a ResultSet objectvoid
clear()
Clears the object for reuseRetrieve the current value for the InputErrorResetPolicy setting.Retrieve the current value of the OutputErrorResetPolicy setting.getOutputParameter
(int position) After running a procedure or user-defined function, use this to access the OUTPUT parameters.Retrieves the return value of the method most recently run.void
Assign the policy that controls the reset behavior of the ParamArray when an error occurs processing the input side of an appserver request.void
setIsReturnExtent
(boolean bIsReturnExtent) Allows you to specify whether the return type for a user-defined function is an extent (array)void
setIsReturnUnknown
(boolean bIsReturnUnknown) Allows you to specify whether the the return value for a user-defined function can be Unknownvoid
Assign the policy that controls the reset behavior of the ParamArray when an error occurs processing the output side of an appserver request.void
setReturnType
(int value) Allows you to specify the return type for a user-defined function.
-
Field Details
-
m_params
-
m_metaSchema
-
-
Constructor Details
-
ParamArray
public ParamArray(int numParams) Creates a parameter set object- Parameters:
numParams
- number of parameters being passed
-
-
Method Details
-
setInputErrorResetPolicy
Assign the policy that controls the reset behavior of the ParamArray when an error occurs processing the input side of an appserver request.- Parameters:
policy
-
-
getInputErrorResetPolicy
Retrieve the current value for the InputErrorResetPolicy setting.- Returns:
-
setOutputErrorResetPolicy
Assign the policy that controls the reset behavior of the ParamArray when an error occurs processing the output side of an appserver request.- Parameters:
policy
-
-
getOutputErrorResetPolicy
Retrieve the current value of the OutputErrorResetPolicy setting.- Returns:
-
clear
public void clear()Clears the object for reuse -
addLogical
Adds a Logical parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addLogicalArray
public void addLogicalArray(int position, boolean[] val, int mode, int extentValue) throws Open4GLException Adds a Logical array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addInteger
Adds an Integer parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addIntegerArray
public void addIntegerArray(int position, int[] val, int mode, int extentValue) throws Open4GLException Adds an Integer array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addInt64
Adds an Int64 parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addInt64Array
public void addInt64Array(int position, long[] val, int mode, int extentValue) throws Open4GLException Adds an Int64 array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addRecid
Adds a Recid parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addRecidArray
public void addRecidArray(int position, long[] val, int mode, int extentValue) throws Open4GLException Adds a Recid array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addLogical
Adds a Logical parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addLogicalArray
public void addLogicalArray(int position, Boolean[] val, int mode, int extentValue) throws Open4GLException Adds a Logical array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addInteger
Adds an Integer parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addIntegerArray
public void addIntegerArray(int position, Integer[] val, int mode, int extentValue) throws Open4GLException Adds an Integer array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addInt64
Adds an Int64 parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addInt64Array
public void addInt64Array(int position, Long[] val, int mode, int extentValue) throws Open4GLException Adds an Int64 array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addRecid
Adds a Recid parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addRecidArray
public void addRecidArray(int position, Long[] val, int mode, int extentValue) throws Open4GLException Adds a Recid array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addDecimal
Adds a Decimal parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addDecimalArray
public void addDecimalArray(int position, BigDecimal[] val, int mode, int extentValue) throws Open4GLException Adds a Decimal array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addCharacter
Adds a Character parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addCharacterArray
public void addCharacterArray(int position, String[] val, int mode, int extentValue) throws Open4GLException Adds a Character array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addLongchar
Adds a LongChar parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addLongcharArray
public void addLongcharArray(int position, String[] val, int mode, int extentValue) throws Open4GLException Adds a LongChar array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addDate
Adds a Date parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addDateArray
public void addDateArray(int position, GregorianCalendar[] val, int mode, int extentValue) throws Open4GLException Adds a Date array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addDatetime
Adds a DateTime parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addDatetimeArray
public void addDatetimeArray(int position, GregorianCalendar[] val, int mode, int extentValue) throws Open4GLException Adds a DateTime array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addDatetimeTZ
Adds a DateTimeTZ parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addDatetimeTZArray
public void addDatetimeTZArray(int position, GregorianCalendar[] val, int mode, int extentValue) throws Open4GLException Adds a DateTimeTZ array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addRaw
Adds a Raw parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addRawArray
public void addRawArray(int position, byte[][] val, int mode, int extentValue) throws Open4GLException Adds a Raw array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addRowid
Adds a Rowid parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addRowidArray
public void addRowidArray(int position, Rowid[] val, int mode, int extentValue) throws Open4GLException Adds a Rowid array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addMemptr
Adds a Memptr parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addMemptrArray
public void addMemptrArray(int position, Memptr[] val, int mode, int extentValue) throws Open4GLException Adds a Memptr array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addHandle
Adds a Handle parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addHandleArray
public void addHandleArray(int position, Handle[] val, int mode, int extentValue) throws Open4GLException Adds a Handle array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addCOMHandle
Adds a COMHandle parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addCOMHandleArray
public void addCOMHandleArray(int position, COMHandle[] val, int mode, int extentValue) throws Open4GLException Adds a COMHandle array parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTextentValue
- Specifies extent of the array- Throws:
Open4GLException
-
addTable
public void addTable(int position, ResultSet val, int mode, ProResultSetMetaDataImpl metadata) throws Open4GLException Adds a Temp-Table parameter as a ResultSet object- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTmetadata
- Specifies the table's meta data- Throws:
Open4GLException
-
addTableHandle
public void addTableHandle(int position, ResultSet val, int mode, ProResultSetMetaDataImpl metadata) throws Open4GLException Adds a Table Handle parameter as a ResultSet object- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTmetadata
- Specifies the table's meta data- Throws:
Open4GLException
-
addTable
public void addTable(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) throws Open4GLException Adds a Temp-Table parameter as a ProDataGraph object- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTmetadata
- Specifies the table's meta data- Throws:
Open4GLException
-
addTable
Adds a Temp-Table parameter as a serialized string- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addTable
public void addTable(int position, String val, int mode, int serializeFormat) throws Open4GLException Adds a Temp-Table parameter as a serialized string- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTserializeFormat
- Specifies how Temp-table gets serialized (1 for XML, 2 for JSON)- Throws:
Open4GLException
-
addTableHandle
public void addTableHandle(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) throws Open4GLException Adds a Table Handle parameter as a ProDataGraph object- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTmetadata
- Specifies the table's meta data- Throws:
Open4GLException
-
addTableHandle
Adds a Table Handle parameter (Version for serialized temp-table)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies serialized temp-table, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addTableHandle
public void addTableHandle(int position, String val, int mode, int serializeFormat) throws Open4GLException Adds a Table Handle parameter (Version for serialized temp-table)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies serialized temp-table, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTserializeFormat
- Specifies how Temp-table gets serialized (1 for XML, 2 for JSON)- Throws:
Open4GLException
-
addDataset
public void addDataset(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) throws Open4GLException Adds a Dataset parameter as a ProDataGraph object- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTmetadata
- Specifies the dataset's meta data- Throws:
Open4GLException
-
addDataset
Adds a Dataset parameter (Version for serialized dataset)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addDataset
public void addDataset(int position, String val, int mode, boolean writeBeforeImage) throws Open4GLException Adds a Dataset parameter (Version for serialized dataset)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTwriteBeforeImage
- Specifies whether to serialize the dataset with before-image data- Throws:
Open4GLException
-
addDataset
public void addDataset(int position, String val, int mode, boolean writeBeforeImage, int serializeFormat) throws Open4GLException Adds a Dataset parameter (Version for serialized dataset)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTwriteBeforeImage
- Specifies whether to serialize the dataset with before-image dataserializeFormat
- Specifies how Dataset gets serialized (1 for XML, 2 for JSON)- Throws:
Open4GLException
-
addDatasetHandle
public void addDatasetHandle(int position, ProDataGraph val, int mode, ProDataGraphMetaData metadata) throws Open4GLException Adds a Dataset Handle parameter as a ProDataGraph object- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies a variable that contains its value, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTmetadata
- Specifies the dataset's meta data- Throws:
Open4GLException
-
addDatasetHandle
Adds a Dataset Handle parameter (Version for serialized dataset)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies serialized dataset, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUT- Throws:
Open4GLException
-
addDatasetHandle
public void addDatasetHandle(int position, String val, int mode, boolean writeBeforeImage) throws Open4GLException Adds a Dataset Handle parameter (Version for serialized dataset)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies serialized dataset, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTwriteBeforeImage
- Specifies whether to serialize the dataset with before-image data- Throws:
Open4GLException
-
addDatasetHandle
public void addDatasetHandle(int position, String val, int mode, boolean writeBeforeImage, int serializeFormat) throws Open4GLException Adds a Dataset Handle parameter (Version for serialized dataset)- Parameters:
position
- Specifies the 0-based index indicating the parameter positionval
- Specifies serialized dataset, or null for an OUTPUT parametermode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTwriteBeforeImage
- Specifies whether to serialize the dataset with before-image dataserializeFormat
- Specifies how Dataset gets serialized (1 for XML, 2 for JSON)- Throws:
Open4GLException
-
getOutputParameter
After running a procedure or user-defined function, use this to access the OUTPUT parameters. The output value is always returned as an Object. You need to cast the Object and assign it to the output variable you have created.- Parameters:
position
- Specifies the 0-based index indicating the parameter position- Throws:
Open4GLException
-
addParameter
public void addParameter(int position, Object obj, int paramMode, int proType, int extentValue, ProResultSetMetaDataImpl metadata) throws Open4GLException A Generic means of adding a parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionobj
- Specifies a variable of the appropriate data type containing parameter value, or null for OUTPUT parameter.paramMode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTproType
- Specifies its ABL data type (use constants in com.progress.open4gl.Parameter class)extentValue
- Specifies the extent of array, zero for a scalar valuemetadata
- Specifies schema for parameter when proType is: Parameter.PRO_TEMPTABLE or PRO_TABLEHANDLE- Throws:
Open4GLException
-
addParameter
public void addParameter(int position, Object obj, int paramMode, int proType, int extentValue, ProDataGraphMetaData metadata) throws Open4GLException A Generic means of adding a parameter- Parameters:
position
- Specifies the 0-based index indicating the parameter positionobj
- Specifies a variable of the appropriate data type containing parameter value, or null for OUTPUT parameter.paramMode
- Specifies the parameter's ABL mode: either ParamArrayMode.INPUT, INPUT_OUTPUT or OUTPUTproType
- Specifies its ABL data type (use constants in com.progress.open4gl.Parameter class)extentValue
- Specifies the extent of array, zero for a scalar valuemetadata
- Specifies schema for parameter when proType is: Parameter.PRO_DATASET, PRO_DATASETHANDLE, PRO_TEMPTABLE, or PRO_TABLEHANDLE- Throws:
Open4GLException
-
setReturnType
Allows you to specify the return type for a user-defined function.- Parameters:
value
- Specifies ABL data type returned by user-defined function (use constants in com.progress.open4gl.Parameter class)- Throws:
Open4GLException
-
getReturnValue
-
setIsReturnExtent
public void setIsReturnExtent(boolean bIsReturnExtent) Allows you to specify whether the return type for a user-defined function is an extent (array)- Parameters:
bIsReturnExtent
- If true, return type is an extent (array)
-
setIsReturnUnknown
public void setIsReturnUnknown(boolean bIsReturnUnknown) Allows you to specify whether the the return value for a user-defined function can be Unknown- Parameters:
bIsReturnUnknown
- If true, return value can be Unknown
-
getProcReturnString
Retrieves the return value of the method most recently run.
-