Uni App
HOU - Computer Science - 2024-2025
Loading...
Searching...
No Matches
model.SettingsModel.SettingsModel Class Reference
Inheritance diagram for model.SettingsModel.SettingsModel:
Collaboration diagram for model.SettingsModel.SettingsModel:

Public Member Functions

 SettingsModel ()
 
void populateCountryList ()
 
List< CountrygetCountries ()
 
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

Detailed Description

Model class part of the Settings MVC

Constructor & Destructor Documentation

◆ SettingsModel()

model.SettingsModel.SettingsModel.SettingsModel ( )

Member Function Documentation

◆ addCountry()

void model.SettingsModel.SettingsModel.addCountry ( Country country)

Adds a new country

Parameters
country

Implements model.SettingsModel.ISettingsModel.

Here is the call graph for this function:

◆ addDataUpdatedEventListener()

void model.SettingsModel.SettingsModel.addDataUpdatedEventListener ( ICustomEventListener< List< Country > > listener)

Helper method to add event listeners to the ListUpadated event

Parameters
listener

Implements model.SettingsModel.ISettingsModel.

Here is the call graph for this function:

◆ clearDb()

void model.SettingsModel.SettingsModel.clearDb ( ) throws Exception

Cascade deletes all universities

Exceptions
Exception

Implements model.SettingsModel.ISettingsModel.

Here is the call graph for this function:

◆ deleteCountry()

void model.SettingsModel.SettingsModel.deleteCountry ( int index)

Deletes an existing country

Parameters
index

Implements model.SettingsModel.ISettingsModel.

Here is the call graph for this function:

◆ getCountries()

List< Country > model.SettingsModel.SettingsModel.getCountries ( )

Returns the private list of Countries

Returns
List<Country>

Implements model.SettingsModel.ISettingsModel.

◆ getCountry()

Country model.SettingsModel.SettingsModel.getCountry ( int index)

Returns the Country Object of a country record

Parameters
index
Returns
Country

Implements model.SettingsModel.ISettingsModel.

◆ populateCountryList()

void model.SettingsModel.SettingsModel.populateCountryList ( )

Populates a private list of Country type with all the available countries in the DB

Implements model.SettingsModel.ISettingsModel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveData()

void model.SettingsModel.SettingsModel.saveData ( ) throws Exception

Inserts or Deletes any changes made on the Countries list to the Country DB table

Exceptions
Exception

Implements model.SettingsModel.ISettingsModel.

Here is the call graph for this function:

The documentation for this class was generated from the following file: