Class SetPilotTransfer
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.PilotWriteDAO
org.deltava.dao.SetPilot
org.deltava.dao.SetPilotTransfer
A Data Access Object to transfer pilots between Airlines.
- 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
Modifier and TypeMethodDescriptionvoid
transfer
(Person p, String dbName, Collection<String> ratings) Writes a new Pilot to a database.Methods inherited from class org.deltava.dao.SetPilot
addRatings, assignID, clearLocation, setHomeTown, setLocation, write
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
-
SetPilotTransfer
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
transfer
Writes a new Pilot to a database.- Parameters:
p
- the Pilot/ApplicantdbName
- the database nameratings
- the Pilot's equipment ratings- Throws:
DAOException
- if a JDBC error occurs
-