public class VirginsDaoJdbc extends java.lang.Object implements VirginsDao
Virgins.| Modifier and Type | Class and Description |
|---|---|
protected class |
VirginsDaoJdbc.VirginDelete
Virgin Delete Object. |
protected class |
VirginsDaoJdbc.VirginInsert
Virgin Insert Object. |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
VirginsDaoJdbc() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVirgin(java.lang.String picName)
Add a pic to the Virgin database
|
void |
deleteVirgin(java.lang.String picName)
Delete a pic from the Virgin database
|
int |
getVirginCount()
Get the number of Virgins in the database
|
java.util.List<Virgin> |
getVirgins()
Get the list of Virgins, the Pics that haven't been filtered yet.
|
java.util.List<Virgin> |
getVirgins(int max)
Get a List of all of the
Virgins in the database up to max number. |
boolean |
isVirgin(java.lang.String picName)
Is this picName a
Virgin? |
void |
setDataSource(javax.sql.DataSource ds)
Set the reference to the JDBC datasource.
|
public void setDataSource(javax.sql.DataSource ds)
ds - The datasource as configured by Spring.public java.util.List<Virgin> getVirgins() throws DataAccessException
getVirgins in interface VirginsDaoDataAccessException - non!public java.util.List<Virgin> getVirgins(int max) throws DataAccessException
VirginsDaoVirgins in the database up to max number. getVirgins in interface VirginsDaomax - The Maximum number of Virgins to put in the ListDataAccessException - uh-uhpublic boolean isVirgin(java.lang.String picName)
VirginsDaoVirgin?isVirgin in interface VirginsDaopicName - The name of the Pic to queryVirgins table.public void addVirgin(java.lang.String picName)
throws DataAccessException
addVirgin in interface VirginsDaopicName - The name of the pic to addDataAccessException - not today.public void deleteVirgin(java.lang.String picName)
throws DataAccessException
deleteVirgin in interface VirginsDaopicName - The name of the pic to removeDataAccessException - blehpublic int getVirginCount()
getVirginCount in interface VirginsDao