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

Setting up parameters

Before running an application service procedure or user-defined function, it might require parameters that you must pass. Before passing the parameters, you must set them up in two basic steps using the Java OpenAPI.
To pass parameters to an application service procedure or function:
1. Create a variable for each parameter.
2. Add each variable to a parameter array as required for the procedure or function you are calling.
The following sections describe how to complete these steps:
*Creatingvariables for parameters
*Creatinga parameter array
*Adding parameters using data type-specific methods
*Adding parameters using a generic method
*Defining the return type for a user-defined function
*Defining the schema for a temp-table parameter mapped to a java.sql.ResultSet
*Defining the schema for a ProDataSet parameter
*Defining the schema for temp-tables in a ProDataSet
*Defining the schema for a temp-table parameter mapped to a ProDataGraph
* Creating variables for parameters
* Creating a parameter array
* Adding parameters using data type-specific methods
* Adding parameters using a generic method
* Defining the return type for a user-defined function
* Arrays as return values
* Defining the schema for a temp-table parameter mapped to a java.sql.ResultSet
* Defining the schema for a ProDataSet parameter
* Defining the schema for temp-tables in a ProDataSet
* Defining the schema for a temp-table parameter mapped to a ProDataGraph