// dependencies
// between the ALBUMS and PHOTOS tables. The plain XML file does not
// contain this information. The DatabaseSequenceFilter class is
// avoided as it cannot handle circular dependencies.
String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
}
finally
{
connection.close();