return pk;
catch (SQLException ex) { log.warn("Could not determine the primary keys of table "+tableName, ex); } finally { if (pkData != null) { pkData.close(); } } return pks;
    public List getPrimaryKeysForTable(String tableName) throws SQLException {        DatabaseMetaData dbmd = connection.getMetaData();        List pk = new Vector();        ResultSet parts = null;        try {            parts = dbmd.getPrimaryKeys(catalog, schema, tableName);        }        catch (SQLException e) {            log.trace("database does not support getPrimaryKeys()", e);        }        if (parts != null) {            try{                while (parts.next()) {                    pk.add(parts.getString(4));                }            }            finally {                if (parts != null) {                    parts.close();                }            }        }        return pk;    }