/** * For updates a separate translation record is required. * The output row is used for this. */ @Override public Record createOutputRecord(EISInteraction interaction, AbstractRecord translationRow, EISAccessor accessor) { if (((interaction.getInteractionSpec() != null) && ((MongoInteractionSpec)interaction.getInteractionSpec()).getOperation() == MongoOperation.UPDATE) || ((interaction.getProperty(OPERATION) != null) && ((interaction.getProperty(OPERATION) == MongoOperation.UPDATE) || (interaction.getProperty(OPERATION).equals(MongoOperation.UPDATE.name()))))) { return (Record)interaction.createRecordElement(interaction.getInputRecordName(), translationRow, accessor); } else { return null; } }
if (spec == null) { CciJMSInteractionSpec jmsSpec; if (interaction.getProperty(MODE) == null) { throw EISException.propertyNotSet(MODE); if (interaction.getProperty(MODE).equals(SEND)) { jmsSpec = new CciJMSSendInteractionSpec(); } else if (interaction.getProperty(MODE).equals(RECEIVE)) { jmsSpec = new CciJMSReceiveInteractionSpec(); } else if (interaction.getProperty(MODE).equals(SEND_RECEIVE)) { jmsSpec = new CciJMSSendReceiveInteractionSpec(); } else { property = (String)interaction.getProperty(SELECTOR); if (property != null) { jmsSpec.setMessageSelector(property); property = (String)interaction.getProperty(DESTINATION_URL); if (property != null) { jmsSpec.setDestinationURL(property); } else { property = (String)interaction.getProperty(DESTINATION); if (property != null) { jmsSpec.setDestination(property); property = (String)interaction.getProperty(REPLY_TO_DESTINATION_URL); if (property != null) { ((CciJMSSendInteractionSpec)jmsSpec).setReplyToDestinationURL(property);
if (spec == null) { CciJMSInteractionSpec jmsSpec; if (interaction.getProperty(MODE) == null) { throw EISException.propertyNotSet(MODE); if (interaction.getProperty(MODE).equals(SEND)) { jmsSpec = new CciJMSSendInteractionSpec(); } else if (interaction.getProperty(MODE).equals(RECEIVE)) { jmsSpec = new CciJMSReceiveInteractionSpec(); } else if (interaction.getProperty(MODE).equals(SEND_RECEIVE)) { jmsSpec = new CciJMSSendReceiveInteractionSpec(); } else { property = (String)interaction.getProperty(SELECTOR); if (property != null) { jmsSpec.setMessageSelector(property); property = (String)interaction.getProperty(DESTINATION_URL); if (property != null) { jmsSpec.setDestinationURL(property); } else { property = (String)interaction.getProperty(DESTINATION); if (property != null) { jmsSpec.setDestination(property); property = (String)interaction.getProperty(REPLY_TO_DESTINATION_URL); if (property != null) { ((CciJMSSendInteractionSpec)jmsSpec).setReplyToDestinationURL(property);
if (spec == null) { MongoInteractionSpec mongoSpec = new MongoInteractionSpec(); Object operation = interaction.getProperty(OPERATION); if (interaction.isQueryStringCall()) { mongoSpec.setCode(((QueryStringCall)interaction).getQueryString()); Object collection = interaction.getProperty(COLLECTION); if (collection != null) { mongoSpec.setCollection((String)collection); Object preference = interaction.getProperty(READ_PREFERENCE); if (preference instanceof ReadPreference) { mongoSpec.setReadPreference((ReadPreference)preference); Object concern = interaction.getProperty(WRITE_CONCERN); if (concern instanceof WriteConcern) { mongoSpec.setWriteConcern((WriteConcern)concern); Object options = interaction.getProperty(OPTIONS); if (options instanceof Number) { mongoSpec.setOptions(((Number)options).intValue()); Object skip = interaction.getProperty(SKIP); if (skip instanceof Number) { mongoSpec.setSkip(((Number)skip).intValue()); Object limit = interaction.getProperty(LIMIT); if (limit instanceof Number) { mongoSpec.setLimit(((Number)limit).intValue());
fileSpec.setFileName((String)interaction.getProperty(FILE_NAME)); fileSpec.setXPath((String)interaction.getProperty(XPATH)); fileSpec.setXQuery((String)interaction.getProperty(XQUERY)); fileSpec.setDOM((Element)interaction.getProperty(DOM)); if (interaction.getQuery().isDeleteObjectQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.DELETE);
fileSpec.setFileName((String)interaction.getProperty(FILE_NAME)); fileSpec.setXPath((String)interaction.getProperty(XPATH)); fileSpec.setXQuery((String)interaction.getProperty(XQUERY)); fileSpec.setDOM((Element)interaction.getProperty(DOM)); if (interaction.getQuery().isDeleteObjectQuery()) { fileSpec.setInteractionType(XMLFileInteractionSpec.DELETE);