Class SetPilot
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.PilotWriteDAO
org.deltava.dao.SetPilot
- Direct Known Subclasses:
SetPilotTransfer
A Data Access Object to update Pilot profiles.
- Since:
- 1.0
- Version:
- 10.3
- 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
addRatings
(Pilot p, Collection<String> ratings, String db) Adds equipment ratings to a particular Pilot.void
Assigns a Pilot ID to a Pilot.void
clearLocation
(int pilotID) Clears this Pilot's locatoin.void
setHomeTown
(int pilotID, GeocodeResult gr) Sets the pilot's Home town.void
setLocation
(int pilotID, GeoLocation loc) Updates a Pilot's location for the member board.void
Updates an existing Pilot profile.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
-
SetPilot
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Updates an existing Pilot profile.- Parameters:
p
- the Pilot profile to updatedb
- the database to write to- Throws:
DAOException
- if a JDBC error occurs
-
setLocation
Updates a Pilot's location for the member board.- Parameters:
pilotID
- the Pilot's database IDloc
- the Pilot's location- Throws:
DAOException
- if a JDBC error occurs
-
setHomeTown
Sets the pilot's Home town.- Parameters:
pilotID
- the Pilot's database IDgr
- the Geocoding results.- Throws:
DAOException
- if a JDBC error occurs
-
clearLocation
Clears this Pilot's locatoin.- Parameters:
pilotID
- the Pilot's database ID- Throws:
DAOException
- if a JDBC error occurs
-
assignID
Assigns a Pilot ID to a Pilot.- Parameters:
p
- the Pilot beandb
- the database name- Throws:
DAOException
- if a JDBC error occurs
-
addRatings
Adds equipment ratings to a particular Pilot.- Parameters:
p
- the Pilot beanratings
- a Collection of ratingsdb
- the database name- Throws:
DAOException
- if a JDBC error occurs
-