Set indicies = pmd.getIndicies();
for (Iterator ii = indicies.iterator(); ii.hasNext();)
{
Index index = (Index) ii.next();
if (! duringTableCreation || index.createWithTable())
{
String oneIndexName = index.getIndexName();
String createIndex = null;
try
{
createIndex = constructIndexSQL(pmd, index, true);
log.debug("Creating index " + index.getIndexName() + " with sql syntax: " + createIndex);
stmt.executeUpdate(createIndex);
}
catch (SQLException s)
{
log.error("Could not create index " + oneIndexName + " on table " + pmd.getTableName() + ".");