private static void processTables(Criteria crit, Set tables, Connection con, ProcessCallback pc)
throws Exception
{
String dbName = crit.getDbName();
DB db = Torque.getDB(dbName);
DatabaseMap dbMap = Torque.getDatabaseMap(dbName);
// create the statements for the tables
for (Iterator it = tables.iterator(); it.hasNext();)
{
String table = (String) it.next();
KeyDef kd = new KeyDef();
Set whereClause = new HashSet();
ColumnMap[] columnMaps = dbMap.getTable(table).getColumns();
for (int j = 0; j < columnMaps.length; j++)
{
ColumnMap colMap = columnMaps[j];
if (colMap.isPrimaryKey())