public DataObject get(String tablePropertyName) {
return (DataObject) objectsByTableName.get(tablePropertyName);
}
void processRelationships() {
MappingWrapper wrapper = new MappingWrapper(metadata.getMapping());
if (wrapper.hasRecursiveRelationships()) {
processRecursiveRelationships(wrapper);
return;
}
Iterator i = metadata.getRelationships().iterator();
while (i.hasNext()) {
Relationship r = (Relationship) i.next();
DataObject parentTable = get(wrapper
.getTablePropertyName(r.getPrimaryKeyTable()));
DataObject childTable = get(wrapper
.getTablePropertyName(r.getForeignKeyTable()));
DebugUtil.debugln(getClass(), debug, "Parent table: " + parentTable);
DebugUtil.debugln(getClass(), debug, "Child table: " + childTable);