Class SetPilotLogin
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.PilotWriteDAO
org.deltava.dao.SetPilotLogin
A Data Access Object to track user logins and logouts.
- Since:
- 1.0
- Version:
- 10.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
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
-
SetPilotLogin
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
login
Write the pilot's last login date to the database. This also resets the Pilot's status to ACTIVE, if on leave.- Parameters:
id
- the Pilot's database IDhostName
- the host from which the Pilot is logging in fromdbName
- the database name- Throws:
DAOException
- if a JDBC error occurs
-
logout
Write the pilot's last logout date to the database.- Parameters:
id
- the Pilot's database IDdbName
- the database name- Throws:
DAOException
- if a JDBC error occurs
-