Class GetExamProfiles
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetExamProfiles
A Data Access Object to read examination configuration data.
- Since:
- 1.0
- Version:
- 10.5
- 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 Examination Profiles.getExamProfile
(String examName) Loads an Examination profile.Returns all Examination profiles for the current Airline.getExamProfiles
(boolean isAcademy) Returns all Examination profiles included within the Flight Academy or Testing Center.Loads a Check Ride script.Returns all Check Ride scripts.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
-
GetExamProfiles
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getAllExamProfiles
Returns all Examination Profiles.- Returns:
- a List of ExamProfile beans
- Throws:
DAOException
- if a JDBC error occurs
-
getExamProfiles
Returns all Examination profiles for the current Airline.- Returns:
- a List of ExamProfile beans
- Throws:
DAOException
- if a JDBC error occurs
-
getExamProfile
Loads an Examination profile.- Parameters:
examName
- the examination name- Returns:
- an ExamProfile bean, or null if the exam was not found
- Throws:
DAOException
- if a JDBC error occurs
-
getExamProfiles
Returns all Examination profiles included within the Flight Academy or Testing Center.- Parameters:
isAcademy
- TRUE if Flight Academy exams should be returned, otherwise FALSE for the Testing Center- Returns:
- a List of ExamProfile beans
- Throws:
DAOException
- if a JDBC error occurs
-
getScript
Loads a Check Ride script.- Parameters:
key
- the script key- Returns:
- an EquipmentRideScript bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getScripts
Returns all Check Ride scripts.- Returns:
- a List of CheckRideScript beans
- Throws:
DAOException
- if a JDBC error occurs
-