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

Public Member Functions

void addCountry (Country country)
 
void deleteCountry (int index)
 
List< CountrygetCountries ()
 
Country getCountry (int index)
 
void populateCountryList ()
 
void saveData () throws Exception
 
void clearDb () throws Exception
 
void addDataUpdatedEventListener (ICustomEventListener< List< Country > > listener)
 

Detailed Description

Settings Model Interface. Used for allowing dependency inversion in Settings Model

Member Function Documentation

◆ addCountry()

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

Adds a new country

Parameters
country

Implemented in model.SettingsModel.SettingsModel.

◆ addDataUpdatedEventListener()

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

Helper method to add event listeners to the ListUpadated event

Parameters
listener

Implemented in model.SettingsModel.SettingsModel.

◆ clearDb()

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

Cascade deletes all universities

Exceptions
Exception

Implemented in model.SettingsModel.SettingsModel.

◆ deleteCountry()

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

Deletes an existing country

Parameters
index

Implemented in model.SettingsModel.SettingsModel.

◆ getCountries()

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

Returns the private list of Countries

Returns
List<Country>

Implemented in model.SettingsModel.SettingsModel.

◆ getCountry()

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

Returns the Country Object of a country record

Parameters
index
Returns
Country

Implemented in model.SettingsModel.SettingsModel.

◆ populateCountryList()

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.

◆ saveData()

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

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

Exceptions
Exception

Implemented in model.SettingsModel.SettingsModel.


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