/** * PUBLIC: * Used for Oracle result sets through procedures. * This can only be used if the arguments are not named but ordered. */ public void useUnnamedCursorOutputAsResultSet(int position) { String positionName = String.valueOf(position); useCursorOutputResultSet(null, positionName); // Store the cursor ordinal position after you add it. setCursorOrdinalPosition(positionName, position); }
/** * PUBLIC: * Used for Oracle result sets through procedures. * This can only be used if the arguments are not named but ordered. */ public void useUnnamedCursorOutputAsResultSet(int position) { String positionName = String.valueOf(position); useCursorOutputResultSet(null, positionName); // Store the cursor ordinal position after you add it. setCursorOrdinalPosition(positionName, position); }
/** * PUBLIC: * Used for Oracle result sets through procedures. * This can only be used if the arguments are not named but ordered. */ public void useNamedCursorOutputAsResultSet(String argumentName) { useCursorOutputResultSet(argumentName, argumentName); // Store the cursor ordinal position after you add it. setCursorOrdinalPosition(argumentName, getParameters().size()); }
/** * PUBLIC: * Used for Oracle result sets through procedures. * This can only be used if the arguments are not named but ordered. */ public void useNamedCursorOutputAsResultSet(String argumentName) { useCursorOutputResultSet(argumentName, argumentName); // Store the cursor ordinal position after you add it. setCursorOrdinalPosition(argumentName, getParameters().size()); }
} else if (mode.equals(ParameterMode.OUT)) { call.addNamedOutputArgument(parameterName, parameterName, type); call.setCursorOrdinalPosition(parameterName, call.getParameters().size()); } else if (mode.equals(ParameterMode.INOUT)) { call.addNamedInOutputArgument(parameterName, parameterName, parameterName, type); call.setCursorOrdinalPosition(parameterName, call.getParameters().size()); } else if (mode.equals(ParameterMode.REF_CURSOR)) { call.useNamedCursorOutputAsResultSet(parameterName);