Class GetFlightReportACARS
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetFlightReports
org.deltava.dao.GetFlightReportACARS
A Data Access Object to retrieve ACARS Flight Reports from the database.
- Since:
- 1.0
- Version:
- 11.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 TypeMethodDescriptioncheckDupes
(String dbName, int acarsID) Checks for duplicate ACARS flight submisions.checkDupes
(String dbName, Flight f, int pilotID) Checks for duplicate ACARS flight submissions.getAirframes
(String eqType, Airline a, int pilotID) Returns all airframes used for flights in a given Equipment Type and Airline.Returns all Flight Reports flown on a certain date.getByPilot
(int id, String orderBy) Returns all Flight Reports for a particular Pilot, using a sort column.Returns alll Flight Reports logged using a specific aircraft SDK.Methods inherited from class org.deltava.dao.GetFlightReports
execute, get, getACARS, getByAssignment, getByEvent, getByNetwork, getByPilot, getByStatus, getByTour, getCaptEQType, getCheckRideQueueSize, getDiversion, getDraft, getDraftReports, getElite, getEliteFlights, getHeld, getLogbookCalendar, getOnlineTotals, getOnlineTotals, getRoutePairs, loadCaptEQTypes
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
-
GetFlightReportACARS
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getAirframes
Returns all airframes used for flights in a given Equipment Type and Airline. This will not have populated SimBrief custom airframe IDs.- Parameters:
eqType
- the Equipment Typea
- the AirlinepilotID
- the Pilot database ID, or zero for all Pilots- Returns:
- a List of tail codes, order by descending popularity
- Throws:
DAOException
- if a JDBC error occurs
-
getByDate
Returns all Flight Reports flown on a certain date.- Parameters:
dt
- the date- Returns:
- a List of FlightReports
- Throws:
DAOException
- if a JDBC error occurs
-
getBySDK
Returns alll Flight Reports logged using a specific aircraft SDK.- Parameters:
sdkName
- the SDK name- Returns:
- a List of FlightReports
- Throws:
DAOException
- if a JDBC error occurs
-
getByPilot
Returns all Flight Reports for a particular Pilot, using a sort column.- Parameters:
id
- the Pilot database IDorderBy
- the sort column (or null)- Returns:
- a List of FlightReports
- Throws:
DAOException
- if a JDBC error occurs
-
checkDupes
Checks for duplicate ACARS flight submissions.- Parameters:
dbName
- the database namef
- the Flight informationpilotID
- the Pilot's database ID- Returns:
- a List of FlightReport beans
- Throws:
DAOException
- if a JDBC error occurs
-
checkDupes
Checks for duplicate ACARS flight submisions.- Parameters:
dbName
- the database nameacarsID
- the ACARS flight ID- Returns:
- a List of FlightReport beans
- Throws:
DAOException
- if a JDBC error occurs
-