コード例 #1
0
 /**
  * Set Sex of the PersonalProfile
  *
  * @param Sex of the PersonalProfile
  * @exception DataObjectException If the object is not found in the database.
  */
 public void setSex(String Sex) throws DataObjectException {
   try {
     // business actions/assertions prior to data assignment
     beforeAnySet();
   } catch (Exception e) {
     throw new DataObjectException("beforeAnySet: " + e.getMessage());
   }
   checkLoad();
   data.Sex = markNewValue(data.Sex, Sex, 0, 32, true);
   afterAnySet(); // business actions/assertions after data assignment
 }
コード例 #2
0
 /**
  * Set MaxAge of the PersonalProfile
  *
  * @param MaxAge of the PersonalProfile
  * @exception DataObjectException If the object is not found in the database.
  */
 public void setMaxAge(int MaxAge) throws DataObjectException {
   try {
     // business actions/assertions prior to data assignment
     beforeAnySet();
   } catch (Exception e) {
     throw new DataObjectException("beforeAnySet: " + e.getMessage());
   }
   checkLoad();
   data.MaxAge = markNewValue(data.MaxAge, MaxAge);
   afterAnySet(); // business actions/assertions after data assignment
 }
コード例 #3
0
 /**
  * Set Nationality of the PersonalProfile
  *
  * @param Nationality of the PersonalProfile
  * @exception DataObjectException If the object is not found in the database.
  */
 public void setNationality(jobmatch.data.CountryDO Nationality) throws DataObjectException {
   try {
     // business actions/assertions prior to data assignment
     beforeAnySet();
   } catch (Exception e) {
     throw new DataObjectException("beforeAnySet: " + e.getMessage());
   }
   checkLoad();
   data.Nationality = (jobmatch.data.CountryDO) markNewValue(data.Nationality, Nationality);
   afterAnySet(); // business actions/assertions after data assignment
 }
コード例 #4
0
 /**
  * createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. Such a
  * DO is used to insert a new database entry that is largely similar to an existing entry.
  *
  * @param data The data struct to copy values from.
  * @exception com.lutris.appserver.server.sql.ObjectIdException If an object id can't be allocated
  *     for this object.
  * @exception DatabaseManagerException If a connection to the database cannot be established, etc.
  */
 public static PersonalProfileDO createCopy(PersonalProfileDataStruct data)
     throws DatabaseManagerException, ObjectIdException {
   PersonalProfileDO ret = new PersonalProfileDO();
   ret.data = (PersonalProfileDataStruct) data.duplicate();
   return ret;
 }