public class PostersDaoJdbc extends java.lang.Object implements PostersDao
Poster
s.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
Mosaic s 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)
PostersDao
getPoster
in interface PostersDao
pid
- The Poster ID to query.public java.util.List<Poster> getPosters()
PostersDao
Mosaic
s in the database.getPosters
in interface PostersDao
public void deletePoster(int mid)
PostersDao
Mosaic
from the database that has this Mosaic ID.deletePoster
in interface PostersDao
mid
- The Poster ID to delete.public void storePoster(Poster poster)
PostersDao
Mosaic
in the database.storePoster
in interface PostersDao
poster
- The Mosaic to store.public int getPosterCount()