![]() |
Uni App
HOU - Computer Science - 2024-2025
|

Public Member Functions | |
| void | addCountry (Country country) |
| void | deleteCountry (int index) |
| List< Country > | getCountries () |
| Country | getCountry (int index) |
| void | populateCountryList () |
| void | saveData () throws Exception |
| void | clearDb () throws Exception |
| void | addDataUpdatedEventListener (ICustomEventListener< List< Country > > listener) |
Settings Model Interface. Used for allowing dependency inversion in Settings Model
| void model.SettingsModel.ISettingsModel.addCountry | ( | Country | country | ) |
| void model.SettingsModel.ISettingsModel.addDataUpdatedEventListener | ( | ICustomEventListener< List< Country > > | listener | ) |
Helper method to add event listeners to the ListUpadated event
| listener |
Implemented in model.SettingsModel.SettingsModel.
| void model.SettingsModel.ISettingsModel.clearDb | ( | ) | throws Exception |
Cascade deletes all universities
| Exception |
Implemented in model.SettingsModel.SettingsModel.
| void model.SettingsModel.ISettingsModel.deleteCountry | ( | int | index | ) |
| List< Country > model.SettingsModel.ISettingsModel.getCountries | ( | ) |
Returns the private list of Countries
Implemented in model.SettingsModel.SettingsModel.
| Country model.SettingsModel.ISettingsModel.getCountry | ( | int | index | ) |
Returns the Country Object of a country record
| index |
Implemented in model.SettingsModel.SettingsModel.
| void model.SettingsModel.ISettingsModel.populateCountryList | ( | ) |
Populates a private list of Country type with all the available countries in the DB
Implemented in model.SettingsModel.SettingsModel.
| void model.SettingsModel.ISettingsModel.saveData | ( | ) | throws Exception |
Inserts or Deletes any changes made on the Countries list to the Country DB table
| Exception |
Implemented in model.SettingsModel.SettingsModel.