code: private static List<RelationID> getTableList(Connection conn, RelationListProvider relationListProvider, QuotedIDFactory idfac) throws SQLException {
  
  		// Obtain the relational objects (i.e., tables and views)
  		List<RelationID> relationIds = new LinkedList<>();
  		try (Statement stmt = conn.createStatement();
  				ResultSet rs = stmt.executeQuery(relationListProvider.getQuery())) {
  			while (rs.next())
  				relationIds.add(relationListProvider.getTableID(rs));
  		}
  		return relationIds;
  	}
docs: Retrieve metadata for a specific database engine