Class GetVideos


public class GetVideos extends GetLibrary
A Data Access Object to load Videos.
Since:
1.0
Version:
10.2
Author:
Luke
  • Constructor Details

    • GetVideos

      public GetVideos(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getVideos

      public Collection<Video> getVideos() throws DAOException
      Returns the contents of the Video Library.
      Returns:
      a List of TrainingVideo beans
      Throws:
      DAOException - if a JDBC error occurs
    • getVideos

      public Collection<Video> getVideos(String certName) throws DAOException
      Returns the contents of the Video Library in the current database.
      Parameters:
      certName - the Certification name, or null if not associated with any Academy certification
      Returns:
      a List of TrainingVideo beans
      Throws:
      DAOException - if a JDBC error occurs
    • getCertifications

      public Collection<String> getCertifications(String fName) throws DAOException
      Retrieves all Flight Academy certifications associated with a particular video.
      Parameters:
      fName - the video file name
      Returns:
      a Collection of certification names
      Throws:
      DAOException - if a JDBC error occurs