Class GetNews

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetNews

public class GetNews extends DAO
A Data Access Object to read System News entries.
Since:
1.0
Version:
10.6
Author:
Luke
  • Constructor Details

    • GetNews

      public GetNews(Connection c)
      Initializes the DAO with a given JDBC connection.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getNews

      public News getNews(int id) throws DAOException
      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

      public List<News> getNews() throws DAOException
      Returns the latest System News entries.
      Returns:
      a List of News beans
      Throws:
      DAOException - if a JDBC error occurs
    • getNOTAM

      public Notice getNOTAM(int id) throws DAOException
      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

      public List<Notice> getNOTAMs() throws DAOException
      Returns the latest Notices to Airmen (NOTAMs).
      Returns:
      a List of Notice beans
      Throws:
      DAOException - if a JDBC error occurs
    • getActiveNOTAMs

      public List<Notice> getActiveNOTAMs() throws DAOException
      Returns the latest active Notices to Airmen (NOTAMs).
      Returns:
      a List of Notice beans
      Throws:
      DAOException - if a JDBC error occurs