Class GetChart

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetChart

public class GetChart extends DAO
A Data Access Object for Approach Charts.
Since:
1.0
Version:
10.6
Author:
Luke
  • Constructor Details

    • GetChart

      public GetChart(Connection c)
      Creates the DAO with a JDBC connection.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getAirports

      public List<Airport> getAirports() throws DAOException
      Returns all Airports with available charts.
      Returns:
      a List of Airports
      Throws:
      DAOException - if a JDBC error occurs
    • getMaxAges

      public Map<Airport,Integer> getMaxAges() throws DAOException
      Returns the average age of charts.
      Returns:
      a Map of maximum ages in days, keyed by Airport
      Throws:
      DAOException - if a JDBC error occurs
    • getCharts

      public List<Chart> getCharts(ICAOAirport a) throws DAOException
      Returns all Chart metadata for a particular Airport.
      Parameters:
      a - the Airport bean
      Returns:
      a List of Chart objects
      Throws:
      DAOException - if a JDBC error occurs
    • getChartsByEvent

      public List<Chart> getChartsByEvent(int eventID) throws DAOException
      Returns all Charts for a particular Event.
      Parameters:
      eventID - the event Database ID
      Returns:
      a List of Chart objects
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public Chart get(int id) throws DAOException
      Returns a Chart based on its Database ID.
      Parameters:
      id - the database id
      Returns:
      the Chart
      Throws:
      DAOException - if a JDBC error occurs
    • getByIDs

      public Collection<Chart> getByIDs(Collection<Integer> IDs) throws DAOException
      Retrieves Charts based on a group of database IDs.
      Parameters:
      IDs - a Collection of database IDs as Integers
      Returns:
      a Collection of Charts
      Throws:
      DAOException - if a JDBC error occurs
    • getChartIDs

      public Map<String,Integer> getChartIDs(Collection<String> externalIDs) throws DAOException
      Returns the database IDs for a set of external Chart IDs.
      Parameters:
      externalIDs - a Collection of external chart IDs
      Returns:
      a Map of database IDs, keyed by external ID
      Throws:
      DAOException
      See Also: