/** * PUBLIC: * Define the argument to the interaction for the index argument. * This must be called in the order of the arguments in the input indexed record. * The argumentValue is the value of the argument to be used to pass to the interaction. */ public void addArgumentValue(Object argumentValue) { getArguments().addElement(argumentValue); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This must be called in the order of the output arguments in the result indexed record. * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. */ public void addOutputArgument(String argumentFieldName) { getOutputArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * Create an indexed input record for this interaction. * Populate the data into the record from this interaction's arguments. */ public Record createInputRecord(EISAccessor accessor) { try { IndexedRecord record = accessor.getRecordFactory().createIndexedRecord(getInputRecordName()); for (int index = 0; index < getParameters().size(); index++) { Object parameter = getParameters().get(index); // Allow conversion of nested rows and collections. record.add(createRecordElement("", parameter, accessor)); } return record; } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
row = new DatabaseRecord(indexedRecord.size()); for (int index = 0; index < indexedRecord.size(); index++) { DatabaseField field = (DatabaseField)getOutputArguments().get(index); row.put(field, indexedRecord.get(index)); if (getOutputArgumentNames().size() == 1) { mappedRecord = (MappedRecord)mappedRecord.get(getOutputArgumentNames().get(0)); } else if (getOutputArgumentNames().size() > 1) { row = new DatabaseRecord(getOutputArgumentNames().size()); for (int index = 0; index < getOutputArgumentNames().size(); index++) { DatabaseField field = (DatabaseField)getOutputArguments().get(index); row.put(field, mappedRecord.get(getOutputArgumentNames().get(index))); } else { row = new DatabaseRecord(1); row.put(getOutputResultPath(), record);
/** * Create an indexed input record for this interaction. * Populate the data into the record from this interaction's arguments. */ public Record createInputRecord(EISAccessor accessor) { try { IndexedRecord record = accessor.getRecordFactory().createIndexedRecord(getInputRecordName()); for (int index = 0; index < getParameters().size(); index++) { Object parameter = getParameters().get(index); // Allow conversion of nested rows and collections. record.add(createRecordElement("", parameter, accessor)); } return record; } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
row = new DatabaseRecord(indexedRecord.size()); for (int index = 0; index < indexedRecord.size(); index++) { DatabaseField field = (DatabaseField)getOutputArguments().get(index); row.put(field, indexedRecord.get(index)); if (getOutputArgumentNames().size() == 1) { mappedRecord = (MappedRecord)mappedRecord.get(getOutputArgumentNames().get(0)); } else if (getOutputArgumentNames().size() > 1) { row = new DatabaseRecord(getOutputArgumentNames().size()); for (int index = 0; index < getOutputArgumentNames().size(); index++) { DatabaseField field = (DatabaseField)getOutputArguments().get(index); row.put(field, mappedRecord.get(getOutputArgumentNames().get(index))); } else { row = new DatabaseRecord(1); row.put(getOutputResultPath(), record);
/** * Create an indexed input record for this interaction. * Populate the data into the record from this interaction's arguments. */ public Record createInputRecord(EISAccessor accessor) { try { IndexedRecord record = accessor.getRecordFactory().createIndexedRecord(getInputRecordName()); for (int index = 0; index < getParameters().size(); index++) { Object parameter = getParameters().get(index); // Allow conversion of nested rows and collections. record.add(createRecordElement("", parameter, accessor)); } return record; } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
row = new DatabaseRecord(indexedRecord.size()); for (int index = 0; index < indexedRecord.size(); index++) { DatabaseField field = (DatabaseField)getOutputArguments().get(index); row.put(field, indexedRecord.get(index)); if (getOutputArgumentNames().size() == 1) { mappedRecord = (MappedRecord)mappedRecord.get(getOutputArgumentNames().get(0)); } else if (getOutputArgumentNames().size() > 1) { row = new DatabaseRecord(getOutputArgumentNames().size()); for (int index = 0; index < getOutputArgumentNames().size(); index++) { DatabaseField field = (DatabaseField)getOutputArguments().get(index); row.put(field, mappedRecord.get(getOutputArgumentNames().get(index))); } else { row = new DatabaseRecord(1); row.put(getOutputResultPath(), record);
/** * PUBLIC: * Define the argument to the interaction for the index argument. * This must be called in the order of the arguments in the input indexed record. * The argumentValue is the value of the argument to be used to pass to the interaction. */ public void addArgumentValue(Object argumentValue) { getArguments().addElement(argumentValue); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This must be called in the order of the output arguments in the result indexed record. * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. */ public void addOutputArgument(String argumentFieldName) { getOutputArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the interaction for the index argument. * This must be called in the order of the arguments in the input indexed record. * The argumentValue is the value of the argument to be used to pass to the interaction. */ public void addArgumentValue(Object argumentValue) { getArguments().addElement(argumentValue); }
/** * PUBLIC: * Define the field/argument name to be substitute for the index output argument. * This must be called in the order of the output arguments in the result indexed record. * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. */ public void addOutputArgument(String argumentFieldName) { getOutputArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the interaction for the index argument. * This must be called in the order of the arguments in the input indexed record. * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. */ public void addArgument(String argumentFieldName) { getArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the interaction for the index argument. * This must be called in the order of the arguments in the input indexed record. * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. */ public void addArgument(String argumentFieldName) { getArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the interaction for the index argument. * This must be called in the order of the arguments in the input indexed record. * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. */ public void addArgument(String argumentFieldName) { getArguments().addElement(new DatabaseField(argumentFieldName)); }