pkData = connection.getMetaData().getPrimaryKeys(catalog, schema, tableName);
pkData = metaData.getPrimaryKeys(catalog, schema, tableName);
    public List getPrimaryKeysForTable(String tableName) throws SQLException    {        List      pks   = new ArrayList();        ResultSet pkData = null;        try        {            pkData = connection.getMetaData().getPrimaryKeys(catalog, schema, tableName);            while (pkData.next())            {                pks.add(pkData.getString("COLUMN_NAME"));            }        }        catch (SQLException ex)        {            log.warn("Could not determine the primary keys of table "+tableName, ex);        }        finally        {            if (pkData != null)            {                pkData.close();            }        }        return pks;    }