Class SetACARSBuilds

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

public class SetACARSBuilds extends DAO
A Data Access Object to write ACARS client version data.
Since:
5.0
Version:
10.4
Author:
Luke
  • Constructor Details

    • SetACARSBuilds

      public SetACARSBuilds(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • setLatest

      public void setLatest(ClientVersion ver, boolean isForced) throws DAOException
      Sets the latest client version.
      Parameters:
      ver - a ClientVersion
      isForced - TRUE if minimum to force an upgrade, otherwise FALSE
      Throws:
      DAOException - if a JDBC error occurs
    • setMinimum

      public void setMinimum(ClientVersion ver, AccessRole role) throws DAOException
      Sets the minimum client version for a given role.
      Parameters:
      ver - a ClientVersion
      role - an AccessRole, for ACARS clients only
      Throws:
      DAOException - if a JDBC error occurs
    • setNoDispatch

      public void setNoDispatch(ClientVersion ver, Collection<Integer> builds) throws DAOException
      Sets the builds that cannot request Dispatch service.
      Parameters:
      ver - a ClientVersion
      builds - a Collection of build numbers
      Throws:
      DAOException - if a JDBC error occurs