/**
   * initFromResultSet initializes the data members from PersonalProfile. This code was separated
   * from the ResultSet constructor so that createExisting(ResultSet) could handle VIEWs.
   */
  private void initFromResultSet(ResultSet rs)
      throws SQLException, ObjectIdException, DataObjectException, DatabaseManagerException {
    // Constructing a DO from a ResultSet means we definitely need the
    // DataStruct ready for the setXxx methods invoked below.
    data = new PersonalProfileDataStruct();

    // writeMemberStuff uses the ResultSetExtraction.template
    // to build up the value for this tag:
    // the value is a series of calls to the DO set methods.

    setMinAge(rs.getInt("MinAge"));

    setMaxAge(rs.getInt("MaxAge"));

    setNationality(jobmatch.data.CountryDO.createExisting(rs.getBigDecimal("Nationality", 0)));

    setSex(rs.getString("Sex"));

    markClean();
  }