Logger.getLogger("task.part.logmgr").info("CopyRecordValues: Skipping copy; fromRecord and toRecord are the same object.");
}
return false;
}
DataValue fromValue = null;
DataValue toValue = null;
boolean didCopy = false;
BusinessQuery tmpQry = fromRecord.newQuery();
int lastDBAttr = tmpQry.getNumAttrs(BusinessQuery.ATTR_DB);
for (int i = 1; i <= tmpQry.getNumAttrs(BusinessQuery.ATTR_SIMPLE); i++) {
toValue = toRecord.getAttr(i);
fromValue = fromRecord.getAttr(i);
if ((toValue != null && fromValue != null && StringUtils.notEquals(toValue.getTextValue().toString(), fromValue.getTextValue().toString())) || (toValue == null && setIfNil)) {
if (LogMgr.getInstance().test(Framework.Constants.SP_MT_DEBUG, Framework.Constants.SP_ST_EX, 30, 20)) {
Logger.getLogger("task.part.logmgr").info("Copying: fromValue.TextValue=");
if (fromValue != null) {
Logger.getLogger("task.part.logmgr").info(fromValue.getTextValue());
}
else {
Logger.getLogger("task.part.logmgr").info("NIL");
}
Logger.getLogger("task.part.logmgr").info(" --> toValue.TextValue=");
if (toValue != null) {
Logger.getLogger("task.part.logmgr").info(toValue.getTextValue());
}
else {
Logger.getLogger("task.part.logmgr").info("NIL");
}
}