|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.dao.DAO
org.deltava.dao.GetNews
public class GetNews
A Data Access Object to read System News entries.
| Field Summary |
|---|
| Fields inherited from class org.deltava.dao.DAO |
|---|
_ps, _queryMax, _queryStart, _queryTimeout |
| Constructor Summary | |
|---|---|
GetNews(Connection c)
Initializes the DAO with a given JDBC connection. |
|
| Method Summary | |
|---|---|
List<? extends News> |
getActiveNOTAMs()
Returns the latest active Notices to Airmen (NOTAMs). |
List<? extends News> |
getNews()
Returns the latest System News entries. |
News |
getNews(int id)
Returns a System News entry with a specific ID. |
Notice |
getNOTAM(int id)
Returns a Notice to Airmen (NOTAM) with a specific ID. |
List<? extends News> |
getNOTAMs()
Returns the latest Notices to Airmen (NOTAMs). |
| Methods inherited from class org.deltava.dao.DAO |
|---|
commitTransaction, createTimestamp, executeUpdate, expandDate, formatDBName, getNewID, getQueryCount, prepareStatement, prepareStatementWithoutLimits, rollbackTransaction, setManualCommit, setQueryMax, setQueryStart, setQueryTimeout, startTransaction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GetNews(Connection c)
c - the JDBC connection to use| Method Detail |
|---|
public News getNews(int id)
throws DAOException
id - the database ID of the entry
DAOException - if a JDBC error occurs
public List<? extends News> getNews()
throws DAOException
DAOException - if a JDBC error occurs
public Notice getNOTAM(int id)
throws DAOException
id - the database ID of the entry
DAOException - if a JDBC error occurs
public List<? extends News> getNOTAMs()
throws DAOException
DAOException - if a JDBC error occurs
public List<? extends News> getActiveNOTAMs()
throws DAOException
DAOException - if a JDBC error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||