}
boolean allEqual = true;
for (Column col : cache0.colParams.keySet()) {
// If either StmtParameters are null, then that's a conflict!
StmtParameter param0 = cache0.colParams.get(col);
StmtParameter param1 = cache1.colParams.get(col);
// It's ok if we're missing one of the parameters that we need if
// the values are still not the same. It's only a problem if they're
// all the same because we have no idea know whether they're
// actually the same or not
if (param0 == null || param1 == null) {
if (trace.val)
LOG.trace(String.format("%s - Missing StmtParameters for %s [param0=%s / param1=%s]",
cp.fullName(), col.fullName(), param0, param1));
continue;
}
// Similarly, if we don't have a ParameterMapping then there is nothing
// else we can do. Again, this is ok as long as at least one of the
// pkey values are different.
ParameterMapping pm0 = CollectionUtil.first(mappings0.get(param0));
ParameterMapping pm1 = CollectionUtil.first(mappings1.get(param1));
if (pm0 == null) {
if (trace.val)
LOG.trace(String.format("%s - No ParameterMapping for %s",
cp.fullName(), param0.fullName()));
continue;
}
else if (pm1 == null) {
if (trace.val)
LOG.trace(String.format("%s - No ParameterMapping for %s",
cp.fullName(), param1.fullName()));
continue;
}
// If the values are not equal, then we can stop checking the
// other columns right away.