Class SetACARSBuilds
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetACARSBuilds
A Data Access Object to write ACARS client version data.
- Since:
- 5.0
- Version:
- 10.4
- 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
setLatest
(ClientVersion ver, boolean isForced) Sets the latest client version.void
setMinimum
(ClientVersion ver, AccessRole role) Sets the minimum client version for a given role.void
setNoDispatch
(ClientVersion ver, Collection<Integer> builds) Sets the builds that cannot request Dispatch service.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
-
SetACARSBuilds
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
setLatest
Sets the latest client version.- Parameters:
ver
- a ClientVersionisForced
- TRUE if minimum to force an upgrade, otherwise FALSE- Throws:
DAOException
- if a JDBC error occurs
-
setMinimum
Sets the minimum client version for a given role.- Parameters:
ver
- a ClientVersionrole
- an AccessRole, for ACARS clients only- Throws:
DAOException
- if a JDBC error occurs
-
setNoDispatch
Sets the builds that cannot request Dispatch service.- Parameters:
ver
- a ClientVersionbuilds
- a Collection of build numbers- Throws:
DAOException
- if a JDBC error occurs
-