/** * Set Candidate of the EmployerCandidateDO * * @param BDO-wrapped Candidate of the EmployerCandidateDO * @exception DataObjectException If the object is not found in the database. */ public void setCandidate(jobmatch.data.CandidateBDO Candidate) throws DataObjectException { try { // business actions/assertions prior to data assignment beforeAnySet(); } catch (Exception e) { throw new DataObjectException("beforeAnySet: " + e.getMessage()); } if (null == Candidate) { if (false) DO.setCandidate(null); else throw new DataObjectException("EmployerCandidateBDO.setCandidate does not allow NULL."); } else { DO.setCandidate(Candidate.getDO()); } afterAnySet(); // business actions/assertions after data assignment }
/** * Set Candidate of the EmployerCandidateDO * * @param Candidate of the EmployerCandidateDO * @exception DataObjectException If the object is not found in the database. */ public void setCandidate(jobmatch.data.CandidateDO Candidate) throws DataObjectException { try { // business actions/assertions prior to data assignment beforeAnySet(); } catch (Exception e) { throw new DataObjectException("beforeAnySet: " + e.getMessage()); } DO.setCandidate(Candidate); afterAnySet(); // business actions/assertions after data assignment }