tables.add(selectCriteria.getTableName( (String)e.nextElement() ));
}
for (int i=0; i<tables.size(); i++)
{
KeyDef kd = new KeyDef();
StringStackBuffer whereClause = new StringStackBuffer();
DatabaseMap tempDbMap = dbMap;
ColumnMap[] columnMaps =
tempDbMap.getTable( tables.get(i) ).getColumns();
for (int j=0; j<columnMaps.length; j++)
{
ColumnMap colMap = columnMaps[j];
if ( colMap.isPrimaryKey() )
{
kd.addAttrib( colMap.getColumnName() );
}
String key = new StringBuffer(colMap.getTableName())
.append('.').append(colMap.getColumnName()).toString();
if ( selectCriteria.containsKey(key) )
{