Package Database

Class DivisionDataAccessObject

java.lang.Object
Database.DivisionDataAccessObject

public class DivisionDataAccessObject extends Object
Class representing all the methods to query the country table
  • Constructor Details

    • DivisionDataAccessObject

      public DivisionDataAccessObject()
  • Method Details

    • getDivisionByDivisionID

      public static FirstLevelDivision getDivisionByDivisionID(int divisionId) throws SQLException
      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