Class SetAcademyCertification
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetAcademyCertification
A Data Access Object for Flight Academy Certifications and Check Ride Scripts.
- Since:
- 3.4
- Version:
- 10.1
- 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
Deletes a Flight Academy Certification from the database.void
Deletes a Flight Academy Check Ride script from the database.void
update
(Certification c, String name) Updates an existing Flight Academy Certification profile.void
Writes a Flight Academy Check Ride script to the database.void
Writes a new Certification to the database.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
-
SetAcademyCertification
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a new Certification to the database.- Parameters:
c
- the Certification bean- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates an existing Flight Academy Certification profile.- Parameters:
c
- the Certification beanname
- the Certification name- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a Flight Academy Check Ride script to the database.- Parameters:
sc
- the AcademyRideScript bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Flight Academy Certification from the database.- Parameters:
certName
- the certification name- Throws:
DAOException
- if a JDBC error occurs
-
deleteScript
Deletes a Flight Academy Check Ride script from the database.- Parameters:
id
- the AcademyRideID- Throws:
DAOException
- if a JDBC error occurs
-