Class GetNews
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetNews
A Data Access Object to read System News entries.
- Since:
- 1.0
- Version:
- 10.6
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the latest active Notices to Airmen (NOTAMs).getNews()
Returns the latest System News entries.getNews
(int id) Returns a System News entry with a specific ID.getNOTAM
(int id) Returns a Notice to Airmen (NOTAM) with a specific ID.Returns the latest Notices to Airmen (NOTAMs).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
-
GetNews
Initializes the DAO with a given JDBC connection.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getNews
Returns a System News entry with a specific ID.- Parameters:
id
- the database ID of the entry- Returns:
- the System News entry
- Throws:
DAOException
- if a JDBC error occurs
-
getNews
Returns the latest System News entries.- Returns:
- a List of News beans
- Throws:
DAOException
- if a JDBC error occurs
-
getNOTAM
Returns a Notice to Airmen (NOTAM) with a specific ID.- Parameters:
id
- the database ID of the entry- Returns:
- the Notice to Airmen entry
- Throws:
DAOException
- if a JDBC error occurs
-
getNOTAMs
Returns the latest Notices to Airmen (NOTAMs).- Returns:
- a List of Notice beans
- Throws:
DAOException
- if a JDBC error occurs
-
getActiveNOTAMs
Returns the latest active Notices to Airmen (NOTAMs).- Returns:
- a List of Notice beans
- Throws:
DAOException
- if a JDBC error occurs
-