Column column = (Column)it.next();  if (column.isPrimaryKey() && pkValues.containsKey(column.getName()))
buffer.append(" WHERE "); for (Iterator it = pkValues.entrySet().iterator(); it.hasNext();)
    public String getDeleteSql(Table table, HashMap pkValues, boolean genPlaceholders)    {        StringBuffer buffer = new StringBuffer("DELETE FROM ");        boolean      addSep = false;        buffer.append(getTableName(table));        buffer.append(" WHERE ");        for (Iterator it = table.getColumns().iterator(); it.hasNext();)        {            Column column = (Column)it.next();            if (column.isPrimaryKey() && pkValues.containsKey(column.getName()))            {                if (addSep)                {                    buffer.append(" AND ");                }                buffer.append(column.getName());                buffer.append(" = ");                if (genPlaceholders)                {                    buffer.append("?");                }                else                {                    buffer.append(getValueAsString(column, pkValues.get(column.getName())));                }                addSep = true;            }        }        return buffer.toString();    }