ALF-11668: Add position identifiers (same as seq elements in current schema dump tool)

As for current schemadump tool, table columns and primary key column names have order associated with them.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2011-11-24 18:17:41 +00:00
parent f939783d70
commit 462994f3eb
16 changed files with 503 additions and 313 deletions

View File

@@ -230,6 +230,9 @@ public class ExportDb
String nullableString = columns.getString("IS_NULLABLE");
column.setNullable(parseBoolean(nullableString));
column.setOrder(columns.getInt("ORDINAL_POSITION"));
column.setParent(table);
table.getColumns().add(column);
}
@@ -250,6 +253,9 @@ public class ExportDb
}
String columnName = primarykeycols.getString("COLUMN_NAME");
pk.getColumnNames().add(columnName);
int columnOrder = primarykeycols.getInt("KEY_SEQ");
pk.getColumnOrders().add(columnOrder);
}
primarykeycols.close();