FileDocCategorySizeDatePackage
PatientManagementDelegate.javaAPI DocExample768Mon Nov 24 10:30:48 GMT 2003com.oreilly.patterns.chapter9.standalone

PatientManagementDelegate

public class PatientManagementDelegate extends Object

Fields Summary
Constructors Summary
Methods Summary
public static com.oreilly.patterns.chapter7.PatientDTOcreateNewPatient(com.oreilly.patterns.chapter7.PatientDTO patient)


    if(patient == null|| patient.getFirstName() == null 
        || patient.getLastName() == null) 
          throw new InvalidPatientException(
            "Patient Records Require Full Name");

    PatientDAO pDAO = PatientDAOFactory.getPatientDAO();
    PatientDTO newPatientRecord = pDAO.createPatient(patient);

    return newPatientRecord;