Class GetPilotBoard
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetPilotBoard
A Data Access Object to display pilot locations.
- Since:
- 2.5
- 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 the locations of active/on leave Pilots who have signed up for the Pilot location board.getAll()
Returns the locations of all Pilots who have signed up for the Pilot location board.getByID
(Collection<Integer> ids) Returns the location of Pilots who have signed up for the Pilot location board.getLocation
(int pilotID) Returns the location of the specified Pilot.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
-
GetPilotBoard
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getLocation
Returns the location of the specified Pilot.- Parameters:
pilotID
- the Pilot's database ID- Returns:
- a GeoLocation with the pilot's location, or null if none specified
- Throws:
DAOException
-
getAll
Returns the locations of all Pilots who have signed up for the Pilot location board.- Returns:
- a Map of GeoLocation objects, keyed by database ID
- Throws:
DAOException
- if a JDBC error occurs
-
getActive
Returns the locations of active/on leave Pilots who have signed up for the Pilot location board.- Returns:
- a Map of GeoLocation objects, keyed by database ID
- Throws:
DAOException
- if a JDBC error occurs
-
getByID
Returns the location of Pilots who have signed up for the Pilot location board.- Parameters:
ids
- a Collection of Pilot database IDs- Returns:
- a Map of GeoLocation objects, keyed by database ID
- Throws:
DAOException
- if a JDBC error occurs
-