compoundKeyInfo.setCompoundKey(plainCompoundKeyInfo.get("compoundKey",
(String) null));
compoundKeys.add(compoundKeyInfo);
for (EventRecord plainKeyInfo : plainCompoundKeyInfo.get("keyInfoList",
EMPTY_LIST)) {
KeyInfo keyInfo = new KeyInfo();
for (EventRecord plainKeyPathElement : plainKeyInfo.get("keyPathElementList",
EMPTY_LIST)) {
String keyName = plainKeyPathElement.get("keyName",
(String) null);
Integer index = plainKeyPathElement.get("index",
(Integer) null);
if (keyName != null) {
keyInfo.addElementToPath(keyName);
} else if (index != null) {
keyInfo.addElementToPath(index);
}
}
compoundKeyInfo.addKeyInfo(keyInfo);
}
}
}
if (debug) {
for (CompoundKeyInfo compoundKeyInfo : compoundKeys) {
System.out.println("CompoundKey: "
+ compoundKeyInfo.getCompoundValue());
for (KeyInfo keyInfo : compoundKeyInfo.getKeyInfoList()) {
String keyPath = "";
for (KeyPathElement keyPathElement : keyInfo.getKeyPath()) {
if (keyPathElement instanceof KeyPathElementIndex) {
keyPath += "["
+ ((KeyPathElementIndex) keyPathElement).getIndex()
+ "]";
} else {