Class GetACARSBandwidth
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetACARSBandwidth
A Data Access Object to load ACARS bandwidth statistics.
- Since:
- 2.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
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
-
GetACARSBandwidth
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getLatest
Returns the latest bandwidth data.- Returns:
- a Bandwidth bean, or null if no data
- Throws:
DAOException
- if a JDBC error occurs
-
getHourly
Retrieves hourly bandwidth stats.- Returns:
- a Collection of Bandwidth beans
- Throws:
DAOException
- if a JDBC error occurs
-
getDaily
Retrieves daily bandwidth stats.- Returns:
- a Collection of Bandwidth beans
- Throws:
DAOException
- if a JDBC error occurs
-