Class GetAircraft
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetAircraft
A Data Access Object to load Aircraft data.
- Since:
- 1.0
- Version:
- 10.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads a particular aircraft profile.Returns all aircraft used by the current web application.getAircraftTypes
(int pilotID) Returns aircraft used by a particular pilot.getAircraftTypes
(String airlineCode) Returns all aircraft used by a web application.getAll()
Returns all aircraft profiles.Loads a particular aircraft by IATA code.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
-
GetAircraft
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
get
Loads a particular aircraft profile.- Parameters:
name
- the aircraft name- Returns:
- the Aircraft bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getIATA
Loads a particular aircraft by IATA code.- Parameters:
iataCode
- the IATA code- Returns:
- the Aircraft bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getAll
Returns all aircraft profiles.- Returns:
- a Collection of Aircraft beans
- Throws:
DAOException
- if a JDBC error occurs
-
getAircraftTypes
Returns all aircraft used by the current web application.- Returns:
- a Collection of Aircraft beans
- Throws:
DAOException
- if a JDBC error occurs
-
getAircraftTypes
Returns all aircraft used by a web application.- Parameters:
airlineCode
- the Airline code- Returns:
- a Collection of Aircraft beans
- Throws:
DAOException
- if a JDBC error occurs
-
getAircraftTypes
Returns aircraft used by a particular pilot.- Parameters:
pilotID
- the Pilot database ID- Returns:
- a Collection of Aircraft beans
- Throws:
DAOException
- if a JDBC error occurs
-