code: public Map<Integer, String> listProjects() throws MPXJException
     {
        try
        {
           Map<Integer, String> result = new HashMap<Integer, String>();
  
           List<ResultSetRow> rows = getRows("SELECT PROJ_ID, PROJ_NAME FROM MSP_PROJECTS");
           for (ResultSetRow row : rows)
           {
              processProjectListItem(result, row);
           }
  
           return result;
        }
  
        catch (SQLException ex)
        {
           throw new MPXJException(MPXJException.READ_ERROR, ex);
        }
     }
docs: Populates a Map instance representing the IDs and names of
  projects available in the current database.
  
  @return Map instance containing ID and name pairs
  @throws MPXJException