try {
conn = getConnection(connName);
DatabaseMetaData dbmd = conn.getMetaData();
rs = dbmd.getTables(catalog, schema, tableName, types);
while (rs.next()) {
TableInfo ti = new TableInfo();
ti.setCatalog(rs.getString("TABLE_CAT"));
ti.setName(rs.getString("TABLE_NAME"));
ti.setRemarks(rs.getString("REMARKS"));
ti.setSchema(rs.getString("TABLE_SCHEM"));
ti.setType(rs.getString("TABLE_TYPE"));
list.add(ti);
}
rs.close();
}
catch(SQLException ex) {