Class SetAcademy
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetAcademy
A Data Access Object to write Flight Academy Course data to the database.
- Since:
- 1.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 TypeMethodDescriptionvoid
comment
(CourseComment cc) Writes a Course comment to the database.void
complete
(int courseID, int seq) Marks a Course requirement as complete.void
delete
(int courseID) Deletes a Flight Academy Course from the database.void
reassign
(int courseID, int newPilotID) Assigns a Flight Academy course to a different pilot, when transferring airlines.void
Updates a Flight Academy Course's status.void
Updates a Flight Academy Course progress entry.void
Writes a Flight Academy Course entry to the database.void
writeCertifications
(TrainingVideo video) Writes all Flight Academy certifications associated with a particular Video.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
-
SetAcademy
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a Flight Academy Course entry to the database.- Parameters:
c
- the Course bean- Throws:
DAOException
- if a JDBC error occurs
-
comment
Writes a Course comment to the database.- Parameters:
cc
- the CourseComment bean- Throws:
DAOException
- if a JDBC error occurs
-
complete
Marks a Course requirement as complete.- Parameters:
courseID
- the Course database IDseq
- the requirement ID- Throws:
DAOException
- if a JDBC error occurs
-
updateProgress
Updates a Flight Academy Course progress entry.- Parameters:
cp
- the CourseProgress bean- Throws:
DAOException
- if a JDBC error occurs
-
setStatus
Updates a Flight Academy Course's status.- Parameters:
courseID
- the database ID of the courses
- the Statussd
- the updated course start date- Throws:
DAOException
- if a JDBC error occurs
-
reassign
Assigns a Flight Academy course to a different pilot, when transferring airlines.- Parameters:
courseID
- the database ID of the coursenewPilotID
- the database ID of the new Pilot- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Flight Academy Course from the database.- Parameters:
courseID
- the database ID of the course- Throws:
DAOException
- if a JDBC error occurs
-
writeCertifications
Writes all Flight Academy certifications associated with a particular Video.- Parameters:
video
- the Video bean- Throws:
DAOException
- if a JDBC error occurs
-