Class GetScheduleInfo
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetScheduleInfo
A Data Access Object to extract Flight Schedule data.
- Since:
- 1.0
- Version:
- 10.5
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAirlineCounts
(String dbName) Returns the number of flights in the schedule per Airline.Returns the Countries served by Airports in the Flight Schedule.int
Returns the size of the Flight Schedule.Returns schedule filter history.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
GetScheduleInfo
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getFlightCount
Returns the size of the Flight Schedule.- Returns:
- the number of legs
- Throws:
DAOException
- if a JDBC error occurs
-
getCountries
Returns the Countries served by Airports in the Flight Schedule.- Returns:
- a Collection of Country beans
- Throws:
DAOException
- if a JDBC error occurs
-
getAirlineCounts
Returns the number of flights in the schedule per Airline.- Parameters:
dbName
- the database name- Returns:
- a Map of Integers, keyed by Airline
- Throws:
DAOException
- if a JDBC error occurs
-
getHistory
Returns schedule filter history.- Returns:
- a Collection of ScheduleSourceHistory beans
- Throws:
DAOException
- if a JDBC error occurs
-