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


Public Member Functions | |
| SettingsModel () | |
| void | populateCountryList () |
| List< Country > | getCountries () |
| Country | getCountry (int index) |
| void | saveData () throws Exception |
| void | deleteCountry (int index) |
| void | addCountry (Country country) |
| void | clearDb () throws Exception |
| void | addDataUpdatedEventListener (ICustomEventListener< List< Country > > listener) |
Public Member Functions inherited from model.SettingsModel.ISettingsModel | |
Model class part of the Settings MVC
| model.SettingsModel.SettingsModel.SettingsModel | ( | ) |
| void model.SettingsModel.SettingsModel.addCountry | ( | Country | country | ) |
Adds a new country
| country |
Implements model.SettingsModel.ISettingsModel.

| void model.SettingsModel.SettingsModel.addDataUpdatedEventListener | ( | ICustomEventListener< List< Country > > | listener | ) |
Helper method to add event listeners to the ListUpadated event
| listener |
Implements model.SettingsModel.ISettingsModel.

| void model.SettingsModel.SettingsModel.clearDb | ( | ) | throws Exception |
Cascade deletes all universities
| Exception |
Implements model.SettingsModel.ISettingsModel.

| void model.SettingsModel.SettingsModel.deleteCountry | ( | int | index | ) |
Deletes an existing country
| index |
Implements model.SettingsModel.ISettingsModel.

| List< Country > model.SettingsModel.SettingsModel.getCountries | ( | ) |
Returns the private list of Countries
Implements model.SettingsModel.ISettingsModel.
| Country model.SettingsModel.SettingsModel.getCountry | ( | int | index | ) |
Returns the Country Object of a country record
| index |
Implements model.SettingsModel.ISettingsModel.
| void model.SettingsModel.SettingsModel.populateCountryList | ( | ) |
Populates a private list of Country type with all the available countries in the DB
Implements model.SettingsModel.ISettingsModel.


| void model.SettingsModel.SettingsModel.saveData | ( | ) | throws Exception |
Inserts or Deletes any changes made on the Countries list to the Country DB table
| Exception |
Implements model.SettingsModel.ISettingsModel.
