Ejemplo n.º 1
0
 /**
  * Get all referrals associated with this office visit.
  *
  * @return List of ReferralBeans.
  * @throws DBException
  */
 public List<ReferralBean> getReferrals() throws DBException {
   if (isUnsaved()) {
     return new ArrayList<ReferralBean>();
   } else {
     return referralDAO.getReferralsFromOV(getOvID());
   }
 }
Ejemplo n.º 2
0
 /**
  * Get a specific referral.
  *
  * @param id The id of the desired referral.
  * @return ReferralBean
  * @throws DBException
  */
 public ReferralBean getReferral(long id) throws DBException {
   return referralDAO.getReferral(id);
 }