Class SetOnlineTime
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetOnlineTime
A Data Access Object to write aggregated VATSIM and IVAO usage data.
- Since:
- 6.1
- 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
write
(OnlineNetwork net, Collection<ConnectedUser> users, int interval) Aggregates online connection data to the database.void
writeRatings
(Collection<PilotRating> ratings) Writes Pilot Ratings 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
-
SetOnlineTime
Initializes the Data Access Object.- Parameters:
c
- the JDBC connecton to use
-
-
Method Details
-
write
public void write(OnlineNetwork net, Collection<ConnectedUser> users, int interval) throws DAOException Aggregates online connection data to the database.- Parameters:
net
- the OnlineNetworkusers
- a Colection of ConnectedUser beansinterval
- the assumed connected time in minutes- Throws:
DAOException
- if a JDBC error occurs
-
writeRatings
Writes Pilot Ratings to the database.- Parameters:
ratings
- a Collection of PilotRating beans- Throws:
DAOException
- if a JDBC error occurs
-