Class SetInactivity
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetInactivity
A Data Access Object to update the Inactivity Purge table.
- Since:
- 1.0
- Version:
- 9.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
delete
(int pilotID) Removes a Pilot's inactivity purge entry.void
purge()
Purge all inactivity entries with a purge date in the past.void
setInactivity
(int pilotID, int days, boolean isNotified) Sets the inactivity purge entry for a Pilot.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
-
SetInactivity
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
setInactivity
Sets the inactivity purge entry for a Pilot.- Parameters:
pilotID
- the Pilot's database IDdays
- the number of days from today to purgeisNotified
- TRUE if the warning message has been sent, otherwise FALSE- Throws:
DAOException
- if a JDBC error occurs
-
delete
Removes a Pilot's inactivity purge entry.- Parameters:
pilotID
- the Pilot's database ID- Throws:
DAOException
- if a JDBC error occurs
-
purge
Purge all inactivity entries with a purge date in the past.- Throws:
DAOException
- if a JDBC error occurs
-