skip to main content
IP API Reference for Java : Statement-level Methods for Java : sqlipInitParam
 

sqlipInitParam

This method is called for each input parameter that has been specified by the client application. It initializes the parameter with the specified value. All parameters values are passed as character string buffers.
int sqlipInitParam(
int iParam,
int iIndicator,
String sValAsStr,
byte[] binaryData,
int iXODataType);
 
Table 101: Parameters for sqlipInitParam 
Parameter
Type
Description
INPUT
 
 
iParam
int
Parameter number. The first parameter starts at 0.
iIndicator
int
Indicates whether the value is null terminated:
NULL_INDICATOR – the parameter’s value is NULL
SQL_NTS – sValAsStr contains the data in string format.
sValAsStr
String
Parameter value as a string. All values besides XO_TYPE_BINARY, XO_TYPE_VARBINARY, and XO_TYPE_LONGVARBINARY are passed is as a string.
binaryData
byte[ ]
Parameter data as binary. Values for XO_TYPE_BINARY, XO_TYPE_VARBINARY, and XO_TYPE_LONGVARBINARY are passed in using this argument.
iXODataType
int
Data type of the parameter as specified by the client application. Use this information to determine how to interpret the value passed in as a string so that it can be passed to the backend data source accordingly. In many cases, you can pass it in as a string as the backend will handle all conversions.
RETURN
 
 
 
int
OADS_SUCCESS
OADS_ERROR