/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.wordpress.salaboy.model.persistence; import com.wordpress.salaboy.model.*; import com.wordpress.salaboy.reporting.Report; import java.util.Collection; /** * * @author salaboy */ public interface PersistenceService { //Get all public Collection<Emergency> getAllEmergencies(); public Collection<FirefightersDepartment> getAllFirefighterDepartments(); public Collection<Hospital> getAllHospitals(); public Collection<Vehicle> getAllVehicles(); public Collection<Call> getAllCalls(); public Collection<Procedure> getAllProcedures(); //Load by ID public ServiceChannel loadServiceChannel(String channelId); public Procedure loadProcedure(String procedureId); public Report loadReport(String callId); public Hospital loadHospital(String id); public Patient loadPatient(String id); public Vehicle loadVehicle(String id); public Call loadCall(String id); public Emergency loadEmergency(String id); public FirefightersDepartment loadFirefighterDepartment(String id); //Stores public void storeServiceChannel(ServiceChannel channel); public void storeProcedure(Procedure procedure); public void storeCall(Call call); public void storeEmergency(Emergency emergency); public void storeFirefightersDepartment(FirefightersDepartment firefightersDepartment); public void storeHospital(Hospital hospital); public void storePatient(Patient patient); public void storeVehicle(Vehicle vehicle); //Helpers public void addEntryToReport(String callId, String entry); public void clear(); }