public void setValue(QName[] names, CorrelationKey values) {
entering("CorrelationSetDaoImpl.setValue");
_correlationSet.setValue(values.toCanonicalString());
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);
}