Class GetVideos
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetLibrary
org.deltava.dao.GetVideos
A Data Access Object to load Videos.
- Since:
- 1.0
- Version:
- 10.2
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCertifications
(String fName) Retrieves all Flight Academy certifications associated with a particular video.Returns the contents of the Video Library.Returns the contents of the Video Library in the current database.Methods inherited from class org.deltava.dao.GetLibrary
getFile, getFiles, getFleet, getInstaller, getInstallerByCode, getVideo, loadDownloadCount
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
-
GetVideos
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getVideos
Returns the contents of the Video Library.- Returns:
- a List of TrainingVideo beans
- Throws:
DAOException
- if a JDBC error occurs
-
getVideos
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
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
-