switch (mode) {
case DAO_ORACLE:
return new PatientDatabaseDAO(); // Generic, works with Oracle
case DAO_DB2:
return new PatientDatabaseDAO(); // also works with DB2
// case DAO_SYBASE: // We didn't actually implement these.
// return new PatientSybaseDAO(); // But Sybase needs special treatment
// case DAO_LDAP:
// return new PatientLDAPDAO(); // Or we can just hit the directory
default:
throw new DAOCreationException("No Data Access Mechanism Configured");
}