Package Database

Class CountryDataAccessObject

java.lang.Object
Database.CountryDataAccessObject

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

    • CountryDataAccessObject

      public CountryDataAccessObject()
  • Method Details

    • getCountryByCountryID

      public static Country getCountryByCountryID(int countryId) throws SQLException
      Parameters:
      countryId - the countryID int value
      Returns:
      the Country object
      Throws:
      SQLException
    • getAllCountries

      public static javafx.collections.ObservableList<Country> getAllCountries() throws SQLException
      Returns:
      [ObservableList] of Country objects
      Throws:
      SQLException