Class SetElite
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.EliteDAO
org.deltava.dao.SetElite
A Data Access Object to update Elite status level definitions.
- Since:
- 9.2
- Version:
- 11.5
- 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
clear
(int pilotID, int year, boolean includeRollover) Resets a Pilot's Elite status for a particular year.void
Deletes a lifetime Elite level from the database.void
Deletes an Elite level from the database.void
rollover
(YearlyTotal yt) Rolls over flight legs and distance into a new Elite year.void
write
(EliteLevel lvl) Updates an Elite level in the database.void
write
(EliteLifetime el) Writes a lifetime Elite status bean to the database.void
write
(EliteLifetimeStatus els) Writes a Pilot Elite lifetime status accomplishment bean to the database.void
write
(EliteStatus es) Updates a Pilot's Elite Status in the database.Methods inherited from class org.deltava.dao.EliteDAO
executeLevel, executeLifetime, get, getLifetime, populateLevels
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
-
SetElite
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Updates an Elite level in the database.- Parameters:
lvl
- the EliteLevel- Throws:
DAOException
- if a JDBC error occurs
-
write
Updates a Pilot's Elite Status in the database.- Parameters:
es
- an EliteStatus bean- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a lifetime Elite status bean to the database.- Parameters:
el
- the EliteLifetime bean- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a Pilot Elite lifetime status accomplishment bean to the database.- Parameters:
els
- the EliteLifetimeStatus bean- Throws:
DAOException
- if a JDBC error occurs
-
rollover
Rolls over flight legs and distance into a new Elite year.- Parameters:
yt
- a YearlyTotal bean with the amounts to be rolled over- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Elite level from the database.- Parameters:
name
- the level nameyear
- the level year- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a lifetime Elite level from the database.- Parameters:
code
- the level code- Throws:
DAOException
- if a JDBC error occurs
-
clear
Resets a Pilot's Elite status for a particular year.- Parameters:
pilotID
- the Pilot's database IDyear
- the yearincludeRollover
-- Throws:
DAOException
- if a JDBC error occurs
-