public class VirginsDaoJdbc extends java.lang.Object implements VirginsDao
Virgin
s.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
Virgin s 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 VirginsDao
DataAccessException
- non!public java.util.List<Virgin> getVirgins(int max) throws DataAccessException
VirginsDao
Virgin
s in the database up to max number. getVirgins
in interface VirginsDao
max
- The Maximum number of Virgin
s to put in the ListDataAccessException
- uh-uhpublic boolean isVirgin(java.lang.String picName)
VirginsDao
Virgin
?isVirgin
in interface VirginsDao
picName
- The name of the Pic
to queryVirgin
s table.public void addVirgin(java.lang.String picName) throws DataAccessException
addVirgin
in interface VirginsDao
picName
- The name of the pic to addDataAccessException
- not today.public void deleteVirgin(java.lang.String picName) throws DataAccessException
deleteVirgin
in interface VirginsDao
picName
- The name of the pic to removeDataAccessException
- blehpublic int getVirginCount()
getVirginCount
in interface VirginsDao