|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.dao.DAO
org.deltava.dao.GetFlightReportStatistics
public class GetFlightReportStatistics
A Data Access Object to retrieve Flight Report statistics.
| Nested Class Summary | |
|---|---|
class |
GetFlightReportStatistics.DispatchScheduleRoute
|
| Field Summary |
|---|
| Fields inherited from class org.deltava.dao.DAO |
|---|
_ps, _queryMax, _queryStart, _queryTimeout |
| Constructor Summary | |
|---|---|
GetFlightReportStatistics(Connection c)
Initializes the Data Access Object. |
|
| Method Summary | |
|---|---|
CacheInfo |
getCacheInfo()
Returns cache statistics. |
Collection<FlightStatsEntry> |
getEQPIREPStatistics(String eqType,
String groupBy,
String orderBy,
boolean descSort)
Retrieves aggregated approved Flight Report statistics for Flights flown using aircraft that are Primary Ratings for a particular Equipment Type program. |
Map<Integer,Integer> |
getLandingCounts(int pilotID,
int range)
Returns the number of landings within a particular vertical speed range. |
Collection<LandingStatistics> |
getLandings(int pilotID)
Returns statistical information about a pilot's landing speeds and variations between them. |
Collection<LandingStatistics> |
getLandings(String eqType,
int minLandings)
Returns statistical information about landing speeds and variations between them. |
Collection<FlightStatsEntry> |
getPIREPStatistics(int pilotID,
String groupBy,
String orderBy,
boolean descSort,
boolean activeOnly)
Retrieves aggregated approved Flight Report statistics. |
Collection<ScheduleRoute> |
getPopularRoutes(boolean noRoutes,
boolean allFlights)
Returns the most popular route pairs filed by Pilots. |
Collection<FlightStatsEntry> |
getSimStatistics(String groupBy,
String orderBy)
Retrieves aggregated approved Flight Report statistics. |
void |
setDayFilter(int days)
Sets the maximum number of days in the past to include. |
| Methods inherited from class org.deltava.dao.DAO |
|---|
commitTransaction, createTimestamp, executeUpdate, expandDate, formatDBName, getNewID, getQueryCount, prepareStatement, prepareStatementWithoutLimits, rollbackTransaction, setManualCommit, setQueryMax, setQueryStart, setQueryTimeout, startTransaction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GetFlightReportStatistics(Connection c)
c - the JDBC connection to use| Method Detail |
|---|
public void setDayFilter(int days)
days - the number of dayspublic CacheInfo getCacheInfo()
getCacheInfo in interface CachingDAO
public Collection<ScheduleRoute> getPopularRoutes(boolean noRoutes,
boolean allFlights)
throws DAOException
noRoutes - TRUE to include pairs without dispatch routes only, otherwise FALSEallFlights - TRUE to include Flight Reports without ACARS, otherwise FALSE
DAOException - if a JDBC error occurs
public Collection<LandingStatistics> getLandings(String eqType,
int minLandings)
throws DAOException
eqType - the aircraft typeminLandings - the minimum number of landings to qualify
DAOException - if a JDBC error occurs
public Collection<LandingStatistics> getLandings(int pilotID)
throws DAOException
pilotID - the Pilot's database ID
DAOException - if a JDBC error occurs
public Map<Integer,Integer> getLandingCounts(int pilotID,
int range)
throws DAOException
pilotID - the Pilot's database IDrange - the size of the vertical speed ranges
DAOException - if a JDBC error occurs
public Collection<FlightStatsEntry> getSimStatistics(String groupBy,
String orderBy)
throws DAOException
groupBy - the "GROUP BY" column nameorderBy - the "ORDER BY" column name
DAOException - if a JDBC error occurs
public Collection<FlightStatsEntry> getEQPIREPStatistics(String eqType,
String groupBy,
String orderBy,
boolean descSort)
throws DAOException
eqType - the Equipment type namegroupBy - the "GROUP BY" column nameorderBy - the "ORDER BY" column namedescSort - TRUE if a descending sort, otherwise FALSE
DAOException - if a JDBC error occurs
public Collection<FlightStatsEntry> getPIREPStatistics(int pilotID,
String groupBy,
String orderBy,
boolean descSort,
boolean activeOnly)
throws DAOException
pilotID - the Pilot's database ID, or zero if airline-widegroupBy - the "GROUP BY" column nameorderBy - the "ORDER BY" column namedescSort - TRUE if a descending sort, otherwise FALSEactiveOnly - TRUE if active pilots only, otherwise FALSE
DAOException - if a JDBC error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||