Class GetRawScheduleInfo

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

public class GetRawScheduleInfo extends DAO
A Data Access Object to load raw flight schedule information.
Since:
9.0
Version:
10.2
Author:
Luke
  • Constructor Details

    • GetRawScheduleInfo

      public GetRawScheduleInfo(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getNextManualEntryLine

      public int getNextManualEntryLine() throws DAOException
      Returns the first available "line number" for manually entered raw schedule entries.
      Returns:
      the next line number
      Throws:
      DAOException - if a JDBC error occurs
    • getNextLeg

      public int getNextLeg(Airline a, int flightNumber) throws DAOException
      Returns the next available Leg number for a Flight.
      Parameters:
      a - the Airline bean
      flightNumber - the flight number
      Returns:
      the next available leg number
      Throws:
      DAOException - if a JDBC error occurs
    • getOriginAirports

      public List<Airport> getOriginAirports(ScheduleSource src, Airport aA) throws DAOException
      Returns departure Airports for a particular raw schedule source.
      Parameters:
      src - the ScheduleSource, or null for all sources
      aA - the arrival Airport, or null for all flights
      Returns:
      a List of Airport beans
      Throws:
      DAOException - if a JDBC error occurs
    • getArrivalAirports

      public List<Airport> getArrivalAirports(ScheduleSource src, Airport aD) throws DAOException
      Returns arrival Airports for a particular raw schedule source.
      Parameters:
      src - the ScheduleSource, or null for all sources
      aD - the departure Airport, or null for all flights
      Returns:
      a List of Airport beans
      Throws:
      DAOException - if a JDBC error occurs
    • getFlightNumbers

      public Collection<Integer> getFlightNumbers(Airline a, int start, int end) throws DAOException
      Returns all flight numbers in a particular range.
      Parameters:
      a - the Airline bean
      start - the start of the range, or zero if none specified
      end - the end of the range, or zero if none specified
      Returns:
      a Collection of Integers with flight numbers
      Throws:
      DAOException - if a JDBC error occurs