Class GetImage
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetImage
A Data Access Object to retrieve image data from the database.
- Since:
- 1.0
- Version:
- 10.5
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getChart
(int id) Returns a Chart.byte[]
getEventBanner
(int id) Returns an Online Event banner image.byte[]
getExamResource
(int id) Returns a Testing Center resource image.byte[]
getGalleryImage
(int id, String dbName) Returns a Picture Gallery image.byte[]
getNews
(int id) Returns a System News banner image.byte[]
getNOTAM
(int id) Returns a NOTAM banner image.byte[]
getPartnerBanner
(int id) Returns a Partner banner image.getSigModified
(int id, String dbName) Returns the last modification date of a Pilot signature.byte[]
getSignatureImage
(int id, String dbName) Returns a signature image for a Pilot.byte[]
getTile
(TileAddress addr) Returns an ACARS track tile.boolean
isSignatureAuthorized
(int id) Returns if a Water Cooler signature image is officially approved.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
-
GetImage
Initializes the DAO from a JDBC connection.- Parameters:
c
- the JDBC connection
-
-
Method Details
-
getSignatureImage
Returns a signature image for a Pilot.- Parameters:
id
- the pilot IDdbName
- the database containing the signature- Returns:
- the signature image data
- Throws:
DAOException
- if a JDBC error occurs
-
getSigModified
Returns the last modification date of a Pilot signature.- Parameters:
id
- the Pilot's database IDdbName
- the database containing the signature- Returns:
- the signature last modified date/time, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getEventBanner
Returns an Online Event banner image.- Parameters:
id
- the Event database ID- Returns:
- the banner image data
- Throws:
DAOException
- if a JDBC error occurs
-
getPartnerBanner
Returns a Partner banner image.- Parameters:
id
- the Partner database ID- Returns:
- the banner image data
- Throws:
DAOException
- if a JDBC error occurs
-
getChart
Returns a Chart.- Parameters:
id
- the chart ID- Returns:
- the chart image data
- Throws:
DAOException
- if a JDBC error occurs
-
getNews
Returns a System News banner image.- Parameters:
id
- the News entry id- Returns:
- the banner image data
- Throws:
DAOException
- if a JDBC error occurs
-
getNOTAM
Returns a NOTAM banner image.- Parameters:
id
- the NOTAM id- Returns:
- the banner image data
- Throws:
DAOException
- if a JDBC error occurs
-
getGalleryImage
Returns a Picture Gallery image.- Parameters:
id
- the gallery image IDdbName
- the database name- Returns:
- the gallery image data
- Throws:
DAOException
- if a JDBC error occurs
-
getExamResource
Returns a Testing Center resource image.- Parameters:
id
- the question ID- Returns:
- the question image data
- Throws:
DAOException
- if a JDBC error occurs
-
getTile
Returns an ACARS track tile.- Parameters:
addr
- the TileAddress- Returns:
- the PNG tile data, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
isSignatureAuthorized
Returns if a Water Cooler signature image is officially approved.- Parameters:
id
- the Pilot's database ID- Returns:
- TRUE if approved, otherwise FALSE
- Throws:
DAOException
- if a JDBC error occurs
-