FileDocCategorySizeDatePackage
PatientManagementDelegateImpl.javaAPI DocExample934Mon Nov 24 10:30:30 GMT 2003com.oreilly.patterns.chapter9

PatientManagementDelegateImpl

public class PatientManagementDelegateImpl extends Object implements PatientManagementDelegate

Fields Summary
Constructors Summary
Methods Summary
public 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;