code: public Collection<String> listTables() throws SQLException {
  
  	Collection<String> result = new ArrayList<String>();
  	DatabaseMetaData dbm = connection.getMetaData();
  	String types[] = { "TABLE" };
  	ResultSet rs = dbm.getTables(null, null, "", types);
  	while (rs.next()) {
  	    String str = rs.getString("TABLE_NAME");
  	    result.add(str);
  	}
  	return result;
      }
docs: Get a list of all tables in the database.
  
  @return A list of all tables in the database.
  @throws DatabaseException
  If a database error occurs.