/** Gets a title for the data presented in the tree node. */ public String getTitle() { try { Connection con = conProv.getConnection(); DatabaseMetaData dmd = con.getMetaData(); StringBuffer sb = new StringBuffer(); sb.append(dmd.getDatabaseProductName()); sb.append(" - "); dmd = con.getMetaData(); sb.append(conProv.getServerName()); return sb.toString(); } catch (Exception e) { return "[Not Connected]"; } }
public String toString() { return conProv.getServerName(); }