/** * PUBLIC: * Define the argument to the interaction and the field/argument name to be substitute for it. * This is only required if an input row is not used. * The parameterAndArgumentFieldName is the name of the input record argument, * and is the field or argument name to be used to pass to the interaction. * These names are assumed to be the same, if not this method can be called with two arguments. */ public void addArgument(String parameterAndArgumentFieldName) { addArgument(parameterAndArgumentFieldName, parameterAndArgumentFieldName); }
/** * Create a mapped input record for this interaction. * Populate the data into the record from this interaction's translation row. */ public Record createTranslationRecord(AbstractRecord transaltionRow, EISAccessor accessor) { return (MappedRecord)createRecordElement(getInputRecordName(), transaltionRow, accessor); }
/** * PUBLIC: * Define the argument to the interaction and the value name to be input for it. * This is only required if an input row is not used. * The parameterName is the name of the input record argument. * The argumentValue is the value of the input record argument. */ public void addArgumentValue(String parameterName, Object argumentValue) { getArgumentNames().addElement(parameterName); getArguments().addElement(argumentValue); }
if ((getInputRow() != null) && (!hasArguments())) { if (getInputResultPath().length() == 0) { record = (MappedRecord)createRecordElement(getInputRecordName(), getInputRow(), accessor); } else { record = accessor.getRecordFactory().createMappedRecord(getInputRecordName()); Object nestedRecord = createRecordElement(getInputResultPath(), getInputRow(), accessor); accessor.getEISPlatform().setValueInRecord(getInputResultPath(), nestedRecord, record, accessor); record = accessor.getRecordFactory().createMappedRecord(getInputRecordName()); for (int index = 0; index < getArgumentNames().size(); index++) { String parameterName = (String)getArgumentNames().get(index); Object parameter = getParameters().get(index); if ((parameter == null) && (getInputRow() != null)) { parameter = getInputRow().get(parameterName); parameter = createRecordElement(parameterName, parameter, accessor);
row.put(getOutputResultPath(), record); return row; if (hasOutputArguments()) { 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 if (getOutputResultPath().length() > 0) { mappedRecord = (MappedRecord)mappedRecord.get(getOutputResultPath());
EISInteraction call = new MappedInteraction(); call.setProperty(MongoPlatform.OPERATION, MongoOperation.INSERT); call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName()); EISInteraction call = new MappedInteraction(); call.setProperty(MongoPlatform.OPERATION, MongoOperation.UPDATE); call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName()); MappedInteraction call = new MappedInteraction(); call.setProperty(MongoPlatform.OPERATION, MongoOperation.FIND); call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName()); for (DatabaseField field : queryManager.getDescriptor().getPrimaryKeyFields()) { call.addArgument(field.getName()); MappedInteraction call = new MappedInteraction(); call.setProperty(MongoPlatform.OPERATION, MongoOperation.REMOVE); call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName()); for (DatabaseField field : queryManager.getDescriptor().getPrimaryKeyFields()) { call.addArgument(field.getName());
if ((getInputRow() != null) && (!hasArguments())) { if (getInputResultPath().length() == 0) { record = (MappedRecord)createRecordElement(getInputRecordName(), getInputRow(), accessor); } else { record = accessor.getRecordFactory().createMappedRecord(getInputRecordName()); Object nestedRecord = createRecordElement(getInputResultPath(), getInputRow(), accessor); accessor.getEISPlatform().setValueInRecord(getInputResultPath(), nestedRecord, record, accessor); record = accessor.getRecordFactory().createMappedRecord(getInputRecordName()); for (int index = 0; index < getArgumentNames().size(); index++) { String parameterName = (String)getArgumentNames().get(index); Object parameter = getParameters().get(index); if ((parameter == null) && (getInputRow() != null)) { parameter = getInputRow().get(parameterName); parameter = createRecordElement(parameterName, parameter, accessor);
return buildRow((Record)indexedRecord.get(0), accessor); row.put(getOutputResultPath(), record); return row; if (hasOutputArguments()) { 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 if (getOutputResultPath().length() > 0) { mappedRecord = (MappedRecord)mappedRecord.get(getOutputResultPath());
if ((getInputRow() != null) && (!hasArguments())) { if (getInputResultPath().length() == 0) { record = (MappedRecord)createRecordElement(getInputRecordName(), getInputRow(), accessor); } else { record = accessor.getRecordFactory().createMappedRecord(getInputRecordName()); Object nestedRecord = createRecordElement(getInputResultPath(), getInputRow(), accessor); accessor.getEISPlatform().setValueInRecord(getInputResultPath(), nestedRecord, record, accessor); record = accessor.getRecordFactory().createMappedRecord(getInputRecordName()); for (int index = 0; index < getArgumentNames().size(); index++) { String parameterName = (String)getArgumentNames().get(index); Object parameter = getParameters().get(index); if ((parameter == null) && (getInputRow() != null)) { parameter = getInputRow().get(parameterName); parameter = createRecordElement(parameterName, parameter, accessor);
return buildRow((Record)indexedRecord.get(0), accessor); row.put(getOutputResultPath(), record); return row; if (hasOutputArguments()) { 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 if (getOutputResultPath().length() > 0) { mappedRecord = (MappedRecord)mappedRecord.get(getOutputResultPath());
/** * PUBLIC: * Define the argument to the interaction and the value name to be input for it. * This is only required if an input row is not used. * The parameterName is the name of the input record argument. * The argumentValue is the value of the input record argument. */ public void addArgumentValue(String parameterName, Object argumentValue) { getArgumentNames().addElement(parameterName); getArguments().addElement(argumentValue); }
/** * Create a mapped input record for this interaction. * Populate the data into the record from this interaction's translation row. */ public Record createTranslationRecord(AbstractRecord transaltionRow, EISAccessor accessor) { return (MappedRecord)createRecordElement(getInputRecordName(), transaltionRow, accessor); }
/** * PUBLIC: * Define the argument to the interaction and the field/argument name to be substitute for it. * This is only required if an input row is not used. * The parameterAndArgumentFieldName is the name of the input record argument, * and is the field or argument name to be used to pass to the interaction. * These names are assumed to be the same, if not this method can be called with two arguments. */ public void addArgument(String parameterAndArgumentFieldName) { addArgument(parameterAndArgumentFieldName, parameterAndArgumentFieldName); }
/** * PUBLIC: * Define the argument to the interaction and the value name to be input for it. * This is only required if an input row is not used. * The parameterName is the name of the input record argument. * The argumentValue is the value of the input record argument. */ public void addArgumentValue(String parameterName, Object argumentValue) { getArgumentNames().addElement(parameterName); getArguments().addElement(argumentValue); }
/** * PUBLIC: * Define the argument to the interaction and the field/argument name to be substitute for it. * This is only required if an input row is not used. * The parameterAndArgumentFieldName is the name of the input record argument, * and is the field or argument name to be used to pass to the interaction. * These names are assumed to be the same, if not this method can be called with two arguments. */ public void addArgument(String parameterAndArgumentFieldName) { addArgument(parameterAndArgumentFieldName, parameterAndArgumentFieldName); }
/** * PUBLIC: * Define the argument to the interaction and the field/argument name to be substitute for it. * This is only required if an input row is not used. * The parameterName is the name of the input record argument. * The argumentFieldName is the field or argument name to be used to pass to the interaction. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addArgument(String parameterName, String argumentFieldName) { getArgumentNames().addElement(parameterName); getArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the interaction and the field/argument name to be substitute for it. * This is only required if an input row is not used. * The parameterName is the name of the input record argument. * The argumentFieldName is the field or argument name to be used to pass to the interaction. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addArgument(String parameterName, String argumentFieldName) { getArgumentNames().addElement(parameterName); getArguments().addElement(new DatabaseField(argumentFieldName)); }
/** * PUBLIC: * Define the argument to the interaction and the field/argument name to be substitute for it. * This is only required if an input row is not used. * The parameterName is the name of the input record argument. * The argumentFieldName is the field or argument name to be used to pass to the interaction. * If these names are the same (as they normally are) this method can be called with a single argument. */ public void addArgument(String parameterName, String argumentFieldName) { getArgumentNames().addElement(parameterName); getArguments().addElement(new DatabaseField(argumentFieldName)); }