Class SetOnlineTime

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetOnlineTime

public class SetOnlineTime extends DAO
A Data Access Object to write aggregated VATSIM and IVAO usage data.
Since:
6.1
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetOnlineTime

      public SetOnlineTime(Connection c)
      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 OnlineNetwork
      users - a Colection of ConnectedUser beans
      interval - the assumed connected time in minutes
      Throws:
      DAOException - if a JDBC error occurs
    • writeRatings

      public void writeRatings(Collection<PilotRating> ratings) throws DAOException
      Writes Pilot Ratings to the database.
      Parameters:
      ratings - a Collection of PilotRating beans
      Throws:
      DAOException - if a JDBC error occurs