public void setValue(QName[] names, CorrelationKey values) { _key = values; if (names != null) { _corrValues = new HashMap<QName, String>(); for (int m = 0; m < names.length; m++) { _corrValues.put(names[m], values.getValues()[m]); } } }
public void setValue(QName[] names, CorrelationKey values) { entering("CorrelationSetDaoImpl.setValue"); _correlationSet.setValue(values.toCanonicalString()); if (names != null) { if (_correlationSet.getProperties() == null || _correlationSet.getProperties().size() == 0) { for (int m = 0; m < names.length; m++) { HCorrelationProperty prop = new HCorrelationProperty(names[m], values.getValues()[m], _correlationSet); getSession().save(prop); } } else { for (int m = 0; m < names.length; m++) { HCorrelationProperty prop = getProperty(names[m]); if (prop == null) prop = new HCorrelationProperty(names[m], values.getValues()[m], _correlationSet); else prop.setValue(values.getValues()[m]); getSession().save(prop); } } } getSession().update(_correlationSet); }
newKeySet.add(new CorrelationKey(""+selCKey.getCorrelationSetName(), selCKey.getValues())); Selector newSelector = new Selector(sel.idx, sel.plinkInstance, sel.opName, sel.oneWay, sel.messageExchangeId, newKeySet, "one"); newSelector.correlationKey = new CorrelationKey(""+selCKey.getCorrelationSetName(), selCKey.getValues()); newSelectors[index++] = newSelector;
if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade set " + ckey.toCanonicalString()); else { cset.setValue(null, new CorrelationKey(ocset.name, ckey.getValues())); if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade route " + oldKey.toCanonicalString()); else { routeDAO.setCorrelationKey(new CorrelationKey(ocset.name, oldKey.getValues())); if (ocset == null) __log.debug("Correlation set not found, couldn't upgrade route " + oldKey.toCanonicalString()); else { corrMsgDAO.setCorrelationKey(new CorrelationKey(ocset.name, oldKey.getValues()));