Class SetApplicant
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.PilotWriteDAO
org.deltava.dao.SetApplicant
A Data Access Object to write Applicants to the database.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.deltava.dao.PilotWriteDAO
setStatus, writeAlias, writeExternalIDs, writeRatings, writeRoles
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
-
SetApplicant
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
reject
Marks an Applicant as Rejected.- Parameters:
a
- the Applicant object- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes an Applicant to the database.- Parameters:
a
- the Applicant object- Throws:
DAOException
- if a JDBC error occurs
-
hire
Marks an Applicant as hired, and updates the Pilot ID.- Parameters:
a
- the Applicant bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Applicant from the database. Unlike Pilots, applicants can be deleted. This call updates the APPLICANTS and common.USERDATA tables.- Parameters:
id
- the Applicant database ID- Throws:
DAOException
- if a JDBC error occurs
-