Column column = (Column)names.get(rs.getString(1).trim());
String generatorName = rs.getString(1).trim(); Column column        = (Column)names.get(generatorName);
    protected void determineAutoIncrementColumns(Table table) throws SQLException    {    	// Since for long table and column names, the generator name will be shortened    	// we have to determine for each column whether there is a generator for it    	FirebirdBuilder builder = (FirebirdBuilder)getPlatform().getSqlBuilder();    	Column[]        columns = table.getColumns();    	HashMap         names   = new HashMap();        String          name;    	for (int idx = 0; idx < columns.length; idx++)    	{    	    name = builder.getGeneratorName(table, columns[idx]);            if (!getPlatform().isDelimitedIdentifierModeOn())            {                name = name.toUpperCase();            }    		names.put(name, columns[idx]);    	}    	Statement stmt = getConnection().createStatement();    	try    	{            ResultSet rs = stmt.executeQuery("SELECT RDB$GENERATOR_NAME FROM RDB$GENERATORS");            while (rs.next())            {                Column column = (Column)names.get(rs.getString(1).trim());                if (column != null)                {                    column.setAutoIncrement(true);                }            }    		rs.close();    	}        finally        {            stmt.close();        }    }