public class PostersDaoJdbc extends java.lang.Object implements PostersDao
Posters.| Modifier and Type | Class and Description |
|---|---|
protected class |
PostersDaoJdbc.PosterConfigsDelete
PosterConfig Delete Object. |
protected class |
PostersDaoJdbc.PosterConfigsInsert
PosterConfigs Insert Object. |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
PostersDaoJdbc() |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePoster(int mid)
Delete the
Mosaic from the database that has this Mosaic ID. |
Poster |
getPoster(int pid)
Get a Poster from the database based on this Poster ID.
|
int |
getPosterCount()
Get the number of Virgins in the database
|
java.util.List<Poster> |
getPosters()
Get a List of all of the
Mosaics in the database. |
void |
setDataSource(javax.sql.DataSource ds)
Set the reference to the JDBC datasource.
|
void |
storePoster(Poster poster)
Store this
Mosaic in the database. |
public void setDataSource(javax.sql.DataSource ds)
ds - The datasource as configured by Spring.public Poster getPoster(int pid)
PostersDaogetPoster in interface PostersDaopid - The Poster ID to query.public java.util.List<Poster> getPosters()
PostersDaoMosaics in the database.getPosters in interface PostersDaopublic void deletePoster(int mid)
PostersDaoMosaic from the database that has this Mosaic ID.deletePoster in interface PostersDaomid - The Poster ID to delete.public void storePoster(Poster poster)
PostersDaoMosaic in the database.storePoster in interface PostersDaoposter - The Mosaic to store.public int getPosterCount()