/** * PUBLIC: * Define the argument to the stored procedure and the value to be substitute for it. * The procedureParameterName is the name of the procedure argument expected. * The argumentValue is the value of the argument to be used to pass to the procedure. */ public void addNamedArgumentValue(String procedureParameterName, Object argumentValue) { getProcedureArgumentNames().add(procedureParameterName); appendIn(argumentValue); }
/** * PUBLIC: * Define the argument to the stored procedure for the index argument. * This method is used if the procedure is not named and the order is explicit, arguments must be added in the correct order. * The argumentValue is the value of the argument to be used to pass to the procedure. */ public void addUnamedArgumentValue(Object argumentValue) { getProcedureArgumentNames().add(null); appendIn(argumentValue); }
/** * ADVANCED: * Add the cursor output parameter to the procedure. * This is used for procedures that have multiple cursor output parameters. * If the procedure has a single cursor output parameter, then useNamedCursorOutputAsResultSet() should be used. */ public void addNamedCursorOutputArgument(String argumentName) { getProcedureArgumentNames().add(argumentName); appendOutCursor(new DatabaseField(argumentName)); }
/** * PUBLIC: * Define the inoutput argument to the stored procedure and the field/argument name to be substitute for it on the way in and out. * The procedureParameterAndArgumentFieldName is the name of the procedure argument expected, * the field or argument name to be used to pass to the procedure and, * the field or argument name to be used is the result of the output row. */ public void addNamedInOutputArgument(String procedureParameterAndArgumentFieldName) { getProcedureArgumentNames().add(procedureParameterAndArgumentFieldName); appendInOut(new DatabaseField(procedureParameterAndArgumentFieldName)); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index argument. * This method is used if the procedure is not named and the order is explicit, names must be added in the correct order. * The argumentFieldName is the field or argument name to be used to pass to the procedure. */ public void addUnamedArgument(String argumentFieldName) { getProcedureArgumentNames().add(null); DatabaseField field = new DatabaseField(argumentFieldName); appendIn(field); }
/** * ADVANCED: * Add the cursor output parameter to the procedure. * This is used for procedures that have multiple cursor output parameters. * If the procedure has a single cursor output parameter, then useNamedCursorOutputAsResultSet() should be used. */ public void addUnnamedCursorOutputArgument(String outputRowFieldName) { getProcedureArgumentNames().add(null); appendOutCursor(new DatabaseField(outputRowFieldName)); }
/** * PUBLIC: * Define the inoutput argument to the stored procedure and the field/argument name to be substitute for it on the way in and out. * The procedureParameterAndArgumentFieldName is the name of the procedure argument expected, * the field or argument name to be used to pass to the procedure and, * the field or argument name to be used is the result of the output row. */ public void addNamedInOutputArgument(String procedureParameterAndArgumentFieldName) { getProcedureArgumentNames().add(procedureParameterAndArgumentFieldName); appendInOut(new DatabaseField(procedureParameterAndArgumentFieldName)); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This method is used if the procedure is not named and the order is explicit, names must be added in the correct order. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * The type is the type of Java class desired back from the procedure, this is dependent on the type returned from the procedure. */ public void addUnamedOutputArgument(String argumentFieldName) { getProcedureArgumentNames().add(null); appendOut(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index argument. * This method is used if the procedure is not named and the order is explicit, names must be added in the correct order. * The argumentFieldName is the field or argument name to be used to pass to the procedure. */ public void addUnamedArgument(String argumentFieldName) { getProcedureArgumentNames().add(null); DatabaseField field = new DatabaseField(argumentFieldName); appendIn(field); }
/** * PUBLIC: * Define the argument to the stored procedure and the field/argument name to be substitute for it. * The procedureParameterName is the name of the procedure argument expected. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addNamedArgument(String procedureParameterName, String argumentFieldName) { getProcedureArgumentNames().add(procedureParameterName); appendIn(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the stored procedure and the field/argument name to be substitute for it. * The procedureParameterName is the name of the procedure argument expected. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addNamedArgument(String procedureParameterName, String argumentFieldName) { getProcedureArgumentNames().add(procedureParameterName); appendIn(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the output argument to the stored procedure and the field/argument name to be substitute for it. * The procedureParameterName is the name of the procedure argument expected. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addNamedOutputArgument(String procedureParameterName, String argumentFieldName) { getProcedureArgumentNames().add(procedureParameterName); appendOut(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the output argument to the stored procedure and the field/argument name to be substitute for it. * The procedureParameterName is the name of the procedure argument expected. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addNamedOutputArgument(String procedureParameterName, String argumentFieldName) { getProcedureArgumentNames().add(procedureParameterName); appendOut(new DatabaseField(argumentFieldName)); }
/** * ADVANCED: * Add the cursor output parameter to the procedure. * This is used for procedures that have multiple cursor output parameters. * If the procedure has a single cursor output parameter, then useNamedCursorOutputAsResultSet() should be used. */ public void addNamedCursorOutputArgument(String argumentName) { getProcedureArgumentNames().add(argumentName); appendOutCursor(new DatabaseField(argumentName)); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This method is used if the procedure is not named and the order is explicit, names must be added in the correct order. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * The type is the type of Java class desired back from the procedure, this is dependent on the type returned from the procedure. */ public void addUnamedOutputArgument(String argumentFieldName) { getProcedureArgumentNames().add(null); appendOut(new DatabaseField(argumentFieldName)); }
/** * ADVANCED: * Add the cursor output parameter to the procedure. * This is used for procedures that have multiple cursor output parameters. * If the procedure has a single cursor output parameter, then useNamedCursorOutputAsResultSet() should be used. */ public void addUnnamedCursorOutputArgument(String outputRowFieldName) { getProcedureArgumentNames().add(null); appendOutCursor(new DatabaseField(outputRowFieldName)); }
/** * 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) { setIsCursorOutputProcedure(true); getProcedureArgumentNames().add(argumentName); appendOutCursor(new DatabaseField(argumentName)); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This method is used if the procedure is not named and the order is explicit, names must be added in the correct order. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * The type is the type of Java class desired back from the procedure, this is dependent on the type returned from the procedure. */ public void addUnamedOutputArgument(String argumentFieldName, Class type) { getProcedureArgumentNames().add(null); DatabaseField field = new DatabaseField(argumentFieldName); field.setType(type); appendOut(field); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This method is used if the procedure is not named and the order is explicit, names must be added in the correct order. * The argumentFieldName is the field or argument name to be used to pass to the procedure. * The type is the type of Java class desired back from the procedure, this is dependent on the type returned from the procedure. */ public void addUnamedOutputArgument(String argumentFieldName, Class type) { getProcedureArgumentNames().add(null); DatabaseField field = new DatabaseField(argumentFieldName); field.setType(type); appendOut(field); }
/** * INTERNAL: * Add the unnamed output cursor to return the result. */ protected void useCursorOutputResultSet(String argumentName, String outputFieldName) { // Set the isCursorOutputProcedure first based on the outputCursor list. // Should be true if there is one and only one, once a second is added, // the flag must be false. setIsCursorOutputProcedure(!hasOutputCursors()); setIsMultipleCursorOutputProcedure(hasOutputCursors()); getProcedureArgumentNames().add(argumentName); appendOutCursor(new DatabaseField(outputFieldName)); }