Package Database
Class DivisionDataAccessObject
java.lang.Object
Database.DivisionDataAccessObject
Class representing all the methods to query the country table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.collections.ObservableList<FirstLevelDivision>
static FirstLevelDivision
getDivisionByDivisionID
(int divisionId) static javafx.collections.ObservableList<FirstLevelDivision>
getDivisionsByCountryID
(int countryId)
-
Constructor Details
-
DivisionDataAccessObject
public DivisionDataAccessObject()
-
-
Method Details
-
getDivisionByDivisionID
- Parameters:
divisionId
- the divisionID int value- Returns:
- the FirstLevelDivision object
- Throws:
SQLException
-
getAllDivisions
public static javafx.collections.ObservableList<FirstLevelDivision> getAllDivisions() throws SQLException- Returns:
- [ObservableList] of FirstLevelDivision objects
- Throws:
SQLException
-
getDivisionsByCountryID
public static javafx.collections.ObservableList<FirstLevelDivision> getDivisionsByCountryID(int countryId) throws SQLException - Parameters:
countryId
- the countryId int value- Returns:
- the FirstLevelDivision object
- Throws:
SQLException
-