Class GetScheduleEquipment
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetScheduleEquipment
A Data Access Object to load equipment types from the Flight Schedule.
- Since:
- 9.0
- Version:
- 9.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 TypeMethodDescriptionReturns all equipment types used by a particular Airline.getEquipmentTypes(RoutePair rp, Airline a) Returns equipment used on a particular route pair.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
-
GetScheduleEquipment
Initializes the Data Access Object.- Parameters:
c- the JDBC connection to use
-
-
Method Details
-
getEquipmentTypes
Returns equipment used on a particular route pair.- Parameters:
rp- the RotuePaira- the Airline, or null for all- Returns:
- a Collection of equipment type names
- Throws:
DAOException- if a JDBC error occurs
-
getEquipmentTypes
Returns all equipment types used by a particular Airline.- Parameters:
a- an Airline- Returns:
- a Collection of equipment type names
- Throws:
DAOException- if a JDBC error occurs
-