Думаю, что можно рассматривать решение с map как вариант
PHP код:
server static void updateCountry()
{
QueryText sSql;
Connection conn = new Connection();
Statement stmt = conn.createStatement();
Map map = new map(Types::String,Types::String);
MapIterator mapIterator;
DictEnum dictEnum;
int i;
QueryText queryText;
;
map.insert('Белорусия','Белорусcия');
map.insert('коре','Корея');
map.insert('Корея(респуб)','Корея');
mapIterator = new mapIterator(map);
dictEnum = new DictEnum(enumnum(KindOfTable));
while(mapIterator.more())
{
for(i = 0; i < dictEnum.values(); i++)
{
queryText = CountryManager::getQueryTextForUpdate(
dictEnum.index2Value(i),mapIterator.value(),mapIterator.key());
stmt.executeUpdate(queryText);
}
mapIterator.next();
}
}