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 TypeMethodDescriptionvoidcomment(CourseComment cc) Writes a Course comment to the database.voidcomplete(int courseID, int seq) Marks a Course requirement as complete.voiddelete(int courseID) Deletes a Flight Academy Course from the database.voidreassign(int courseID, int newPilotID) Assigns a Flight Academy course to a different pilot, when transferring airlines.voidUpdates a Flight Academy Course's status.voidUpdates a Flight Academy Course progress entry.voidWrites a Flight Academy Course entry to the database.voidwriteCertifications(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
-