/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRecordName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRecordName(descriptor.getDataTypeName()); } else { setInputRecordName("input"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRecordName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRecordName(descriptor.getDataTypeName()); } else { setInputRecordName("input"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRecordName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRecordName(descriptor.getDataTypeName()); } else { setInputRecordName("input"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("input"); } } if (getOutputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setOutputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("output"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("input"); } } if (getOutputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setOutputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("output"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("input"); } } if (getOutputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setOutputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("output"); } } super.prepare(session); }
EISInteraction call = new MappedInteraction(); call.setProperty(MongoPlatform.OPERATION, MongoOperation.INSERT); call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName()); queryManager.setInsertCall(call); EISInteraction call = new MappedInteraction(); call.setProperty(MongoPlatform.OPERATION, MongoOperation.UPDATE); call.setProperty(MongoPlatform.COLLECTION, ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName()); queryManager.setUpdateCall(call); 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());
String dataType = ((EISDescriptor)queryManager.getDescriptor()).getDataTypeName(); StringWriter writer = new StringWriter(); writer.write(dataType);
MappedInteraction interaction = new MappedInteraction(); interaction.setProperty(OPERATION, MongoOperation.FIND); interaction.setProperty(COLLECTION, ((EISDescriptor)query.getDescriptor()).getDataTypeName()); if (readQuery.getFirstResult() > 0) { interaction.setProperty(SKIP, readQuery.getFirstResult());