Class SetAccomplishment
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetAccomplishment
A Data Access Object to save Accomplishment profiles.
- Since:
- 3.2
- Version:
- 10.2
- 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
achieve
(int pilotID, Accomplishment a, Instant dt) Records a Pilot accomplishment.void
clearAchievement
(int pilotID, Accomplishment a) Deletes a Pilot Accomplishment record from the database.void
delete
(int id) Deletes an Accomplishment profile from the database.void
Writes an Accomplishment 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
-
SetAccomplishment
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes an Accomplishment to the database.- Parameters:
a
- the Accomplishment bean- Throws:
DAOException
- if a JDBC error occurs
-
achieve
Records a Pilot accomplishment.- Parameters:
pilotID
- the Pilot's database IDa
- the Accomplishmentdt
- the date/time of the accomplishment- Throws:
DAOException
- if a JDBC error occurs
-
clearAchievement
Deletes a Pilot Accomplishment record from the database.- Parameters:
pilotID
- the Pilot's datbaase IDa
- the Accomplishment- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Accomplishment profile from the database.- Parameters:
id
- the Accomplishment database ID- Throws:
DAOException
- if a JDBC error occurs
-