Class GetSimBriefPackages
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetSimBriefPackages
A Data Access Object to load SimBrief briefing package data.
- Since:
- 10.4
- Version:
- 11.2
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAirframes
(String eqType, Airline a, int pilotID) Returns all aircraft tail codes used for flights in a given Equipment Type and Airline.getSimBrief
(int id, String db) Loads a SimBrief briefing package for a Flight Report.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
-
GetSimBriefPackages
Initializes the Data Access Object.- Parameters:
c
- the JDBC connectiont o use
-
-
Method Details
-
getSimBrief
Loads a SimBrief briefing package for a Flight Report.- Parameters:
id
- the Flight Report database IDdb
- the database name- Returns:
- a SimBrief package, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getAirframes
Returns all aircraft tail codes used for flights in a given Equipment Type and Airline.- Parameters:
eqType
- the Equipment Typea
- the AirlinepilotID
- the Pilot database ID, or zero for all Pilots- Returns:
- a List of Airframes, order by descending popularity
- Throws:
DAOException
- if a JDBC error occurs
-