Class SetExamProfile
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetExamProfile
A Data Access Object for writing Examination Profiles and Check Ride scripts.
- Since:
- 1.0
- Version:
- 10.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
create
(ExamProfile ep) Saves a new Examination Profile to the database.void
Deletes a Check Ride Script from the database.void
delete
(ExamProfile ep) Deletes an Examination Profile from the database.void
update
(ExamProfile ep, String examName) Saves an existing Examination Profile to the database.void
Writes a Check Ride script 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
-
SetExamProfile
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
update
Saves an existing Examination Profile to the database.- Parameters:
ep
- the ExamProfile bean to updateexamName
- the old Examination Profile name- Throws:
DAOException
- if a JDBC error occurs
-
create
Saves a new Examination Profile to the database.- Parameters:
ep
- the ExamProfile bean to save- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a Check Ride script to the database. This call can handle both INSERT and UPDATE operations.- Parameters:
sc
- the Check Ride script- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Check Ride Script from the database.- Parameters:
key
- the key- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Examination Profile from the database.- Parameters:
ep
- an ExamProfile bean- Throws:
DAOException
- if a JDBC error occurs
-