/** * The arguments are the values in order of occurance in the record. */ public Vector getArguments() { return super.getArguments(); }
/** * The arguments are the values in order of occurance in the record. */ public Vector getArguments() { return super.getArguments(); }
/** * The arguments are the values in order of occurance in the record. */ public Vector getArguments() { return super.getArguments(); }
/** * Arguments to the interaction can be passed two ways. * The entire argument row can be converted to the input record, * or the arguments from the row can be translated into the interaction parameters. */ public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session) { setInputRow(modifyRow); if (hasArguments()) { Vector parametersValues = new Vector(getArguments().size()); for (int index = 0; index < getArguments().size(); index++) { Object argument = getArguments().elementAt(index); // The argument is either a value or a databasefield that needs to be translated. if ((argument != null) && (argument instanceof DatabaseField)) { DatabaseField field = (DatabaseField)argument; Object value = translationRow.get(field); //BUG#12345:modifyRow is null for reads if ((value == null) && (modifyRow != null)) { value = modifyRow.get(field); } parametersValues.addElement(value); } else { parametersValues.addElement(argument); } } setParameters(parametersValues); } }
/** * Arguments to the interaction can be passed two ways. * The entire argument row can be converted to the input record, * or the arguments from the row can be translated into the interaction parameters. */ public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session) { if (modifyRow != null) { // Avoid clearing a prepared row. setInputRow(modifyRow); } if (hasArguments()) { List parametersValues = new ArrayList(getArguments().size()); for (int index = 0; index < getArguments().size(); index++) { Object argument = getArguments().elementAt(index); // The argument is either a value or a databasefield that needs to be translated. if ((argument != null) && (argument instanceof DatabaseField)) { DatabaseField field = (DatabaseField)argument; Object value = translationRow.get(field); //BUG#12345:modifyRow is null for reads if ((value == null) && (modifyRow != null)) { value = modifyRow.get(field); } parametersValues.add(value); } else { parametersValues.add(argument); } } setParameters(parametersValues); } }
/** * Arguments to the interaction can be passed two ways. * The entire argument row can be converted to the input record, * or the arguments from the row can be translated into the interaction parameters. */ public void translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session) { if (modifyRow != null) { // Avoid clearing a prepared row. setInputRow(modifyRow); } if (hasArguments()) { List parametersValues = new ArrayList(getArguments().size()); for (int index = 0; index < getArguments().size(); index++) { Object argument = getArguments().elementAt(index); // The argument is either a value or a databasefield that needs to be translated. if ((argument != null) && (argument instanceof DatabaseField)) { DatabaseField field = (DatabaseField)argument; Object value = translationRow.get(field); //BUG#12345:modifyRow is null for reads if ((value == null) && (modifyRow != null)) { value = modifyRow.get(field); } parametersValues.add(value); } else { parametersValues.add(argument); } } setParameters(parametersValues); } }