Class GetACARSBuilds
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetACARSBuilds
A Data Access Object to load ACARS build data.
- Since:
- 4.1
- 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
Modifier and TypeMethodDescriptiongetBuildStatistics
(int weeks) Loads ACARS client build statistics by week.Returns the latest beta version for a particular ACARS build.getLatestBuild
(ClientInfo info) Returns the latest build for a particular ACARS version and client type.getLatestBuild
(ClientInfo info, boolean isForced) Returns the latest build for a particular ACARS version and client type.boolean
Returns whether a particular ACARS build can request Dispatch service.boolean
isValid
(ClientInfo inf) Returns whether a particular client/build/beta combination can connect to ACARS.boolean
isValid
(ClientInfo inf, AccessRole role) Returns whether a particular client/build/beta combination can access ACARS.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
-
GetACARSBuilds
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getLatestBeta
Returns the latest beta version for a particular ACARS build.- Parameters:
ver
- the ClientVersion- Returns:
- a ClientInfo bean, or null if none
- Throws:
DAOException
- if a JDBC error occurs
-
getLatestBuild
Returns the latest build for a particular ACARS version and client type.- Parameters:
info
- the ClientInfo- Returns:
- a ClientInfo bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getLatestBuild
Returns the latest build for a particular ACARS version and client type.- Parameters:
info
- the ClientInfoisForced
- TRUE if selecting minimum build to force an upgrade- Returns:
- a ClientInfo bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
isValid
Returns whether a particular client/build/beta combination can connect to ACARS.- Parameters:
inf
- a ClientInfo bean- Returns:
- TRUE if can connect, otherwise FALSE
- Throws:
DAOException
- if a JDBC error occurs
-
isValid
Returns whether a particular client/build/beta combination can access ACARS.- Parameters:
inf
- a ClientInfo beanrole
- the Access role- Returns:
- TRUE if can connect, otherwise FALSE
- Throws:
DAOException
- if a JDBC error occurs
-
isDispatchAvailable
Returns whether a particular ACARS build can request Dispatch service.- Parameters:
inf
- a ClientInfo bean- Returns:
- TRUE if Dispatch service can be requested, otherwise FALSE
- Throws:
DAOException
- if a JDBC error occurs
-
getBuildStatistics
Loads ACARS client build statistics by week.- Parameters:
weeks
- the number of weeks to load- Returns:
- a Collection of ClientBuildStats beans
- Throws:
DAOException
- if a JDBC error occurs
-