Class GetFlightReportHistory
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetFlightReportHistory
A Data Access Object to load Flight Report status updates from the database.
- Since:
- 9.0
- Version:
- 10.3
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntries
(int id) Loads status updates for a particular Flight Report.void
loadStatus
(int pilotID, Collection<FlightReport> pireps) Loads all status updates for a Pilot's Flight Reports.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
-
GetFlightReportHistory
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getEntries
Loads status updates for a particular Flight Report.- Parameters:
id
- the Flight Report database ID- Returns:
- a Collection of FlightHistoryEntry beans
- Throws:
DAOException
- if a JDBC error occurs
-
loadStatus
Loads all status updates for a Pilot's Flight Reports.- Parameters:
pilotID
- the Pilot's database IDpireps
- a Collection of FlightReports for this Pilot- Throws:
DAOException
- if a JDBC error occurs
-