// Define the variable for the input-output parameter
// Using Integer object because the output value // is always returned as an Object Integer CustomerNumber = new Integer(3); // Create the ParamArray ParamArray parms = new ParamArray(1); // Add the input-output parameter to the ParamArray parms.addInteger(0, CustomerNumber, ParamArrayMode.INPUT_OUTPUT); // Run the procedure ... // Fill from output parameter - must cast from Object CustomerNumber = (Integer) parms.getOutputParameter(0); |