Class GetPilotRecognition
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.PilotReadDAO
org.deltava.dao.GetPilot
org.deltava.dao.GetPilotRecognition
A Data Acccess Object to read Pilots that have achieved certain accomplishments.
- Since:
- 1.0
- Version:
- 9.1
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.PilotReadDAO
_cache
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByAccomplishment
(int id) Loads all pilots having achieved a particular Accomplishment.Returns Pilots eligible for promotion to Senior Captain.getPromotionQueue
(String eqType) Returns Pilots eligible for promotion to Captain.int
hasPromotionQueue
(String eqType) Returns whether there are Pilots eligible for promotion to Captain in a particular Equipment program.static void
invalidate
(String eqType) Invalidates the Promotion Queue caches.Methods inherited from class org.deltava.dao.GetPilot
getActivePilots, getByEMail, getCurrencyPilots, getNewestPilots, getPilotByCode, getPilots, getPilotsByEQ, getPilotsByLetter, getPilotsByRank, getPilotsByStatus, search, search
Methods inherited from class org.deltava.dao.PilotReadDAO
execute, get, get, get, getByID, getByName, loadAccomplishments, loadChildRows, loadIMAddrs, loadPushEndpoints, loadRatings, loadRoles, updatePilotCodes
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
-
GetPilotRecognition
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
invalidate
Invalidates the Promotion Queue caches.- Parameters:
eqType
- the equipment type, or null to invalidate all
-
getByAccomplishment
Loads all pilots having achieved a particular Accomplishment.- Parameters:
id
- the Accomplishment database ID- Returns:
- a Collection of Pilots
- Throws:
DAOException
- if a JDBC error occurs
-
hasPromotionQueue
Returns whether there are Pilots eligible for promotion to Captain in a particular Equipment program.- Parameters:
eqType
- the equipment program, or null for all- Returns:
- the number of pilots
- Throws:
DAOException
- if a JDBC error occurs
-
getPromotionQueue
Returns Pilots eligible for promotion to Captain.- Parameters:
eqType
- the Equipment program, or null for all programs- Returns:
- a List of Pilot IDs
- Throws:
DAOException
- if a JDBC error occurs
-
getNominationEligible
Returns Pilots eligible for promotion to Senior Captain.- Returns:
- a Collection of database IDs
- Throws:
DAOException
- if a JDBC error occurs
-