|
|||||||||
| 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.GetGallery
public class GetGallery
A Data Access Object to load Image Gallery data.
| Field Summary |
|---|
| Fields inherited from class org.deltava.dao.DAO |
|---|
_ps, _queryMax, _queryStart, _queryTimeout |
| Constructor Summary | |
|---|---|
GetGallery(Connection c)
Initializes the DAO with a given JDBC connection. |
|
| Method Summary | |
|---|---|
List<Image> |
getFleetGallery()
Returns all the image metadata associated with the Fleet Gallery. |
Image |
getImageData(int id)
Returns the metadata associated with a particular Gallery image in the current database. |
Image |
getImageData(int id,
String dbName)
Returns the metadata associated with a particular Gallery image. |
Collection<String> |
getMonths()
Loads the Months with Images in the Gallery. |
List<Image> |
getPictureGallery(Date dt)
Retusn Images in the Image Gallery created on a specific date. |
List<Image> |
getPictureGallery(String orderBy,
String month)
Returns Images in the Image Gallery. |
| 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 GetGallery(Connection c)
c - the JDBC Connection| Method Detail |
|---|
public Image getImageData(int id)
throws DAOException
id - the Image id
DAOException - if a JDBC error occurs
public Image getImageData(int id,
String dbName)
throws DAOException
id - the Image iddbName - the database name
DAOException - if a JDBC error occurs
public List<Image> getFleetGallery()
throws DAOException
DAOException - if a JDBC error occurs
public List<Image> getPictureGallery(Date dt)
throws DAOException
dt - the date the image was posted
DAOException - if a JDBC error occurs
public List<Image> getPictureGallery(String orderBy,
String month)
throws DAOException
orderBy - the SQL ORDER BY clausemonth - the optional month name, in "MMMM YYYY" format
DAOException - if a JDBC error occurs
public Collection<String> getMonths()
throws DAOException
DAOException - if a JDBC error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||