Package healthwatcher.data.factories

Source Code of healthwatcher.data.factories.ArrayRepositoryFactory

package healthwatcher.data.factories;

import healthwatcher.data.IComplaintRepository;
import healthwatcher.data.IDiseaseRepository;
import healthwatcher.data.IEmployeeRepository;
import healthwatcher.data.IHealthUnitRepository;
import healthwatcher.data.ISpecialityRepository;
import healthwatcher.data.ISymptomRepository;
import healthwatcher.data.mem.ComplaintRepositoryArray;
import healthwatcher.data.mem.DiseaseTypeRepositoryArray;
import healthwatcher.data.mem.EmployeeRepositoryArray;
import healthwatcher.data.mem.HealthUnitRepositoryArray;
import healthwatcher.data.mem.SpecialityRepositoryArray;
import healthwatcher.data.mem.SymptomRepositoryArray;

/**
* A factory for in-memory repositories
*/
public class ArrayRepositoryFactory extends AbstractRepositoryFactory {

  public IComplaintRepository createComplaintRepository() {
    return new ComplaintRepositoryArray();
  }
 
  public IHealthUnitRepository createHealthUnitRepository() {
    return new HealthUnitRepositoryArray();
  }
 
  public ISpecialityRepository createMedicalSpecialityRepository() {
    return new SpecialityRepositoryArray();
  }
 
  public IDiseaseRepository createDiseaseRepository() {
    return new DiseaseTypeRepositoryArray();
  }
 
  public IEmployeeRepository createEmployeeRepository() {
    return new EmployeeRepositoryArray();
  }
 
  public ISymptomRepository createSymptomRepository() {
    return new SymptomRepositoryArray();
  }
}
TOP

Related Classes of healthwatcher.data.factories.ArrayRepositoryFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.