public class SetsDaoJdbc extends java.lang.Object implements SetsDao
Sets.| Modifier and Type | Class and Description | 
|---|---|
| protected class  | SetsDaoJdbc.SetDeleteSetDelete Object. | 
| protected class  | SetsDaoJdbc.SetInsertSetInsert Object. | 
| protected class  | SetsDaoJdbc.SetsUpdateSetUpdate Object. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.commons.logging.Log | logger | 
| Constructor and Description | 
|---|
| SetsDaoJdbc() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addSet(Set set)Add this  Setto the database. | 
| void | deleteSet(Set s)Delete this  Setfrom the database. | 
| java.util.List<Set> | getActiveSets()Get a List of  Sets that the user has NOT marked as inactive. | 
| java.util.List<Set> | getInactiveSets()Get a List of  Sets that the user has marked as inactive. | 
| Set | getSet(int sid)Fetch the  Setwho's Set ID matches this sid. | 
| Set | getSet(java.lang.String setName)Fetch the  Setwho's name matches this setName. | 
| int | getSetCount()Get the number of  Sets in the database. | 
| java.util.List<Set> | getSets()Get a List of all of the  Sets in the database. | 
| java.util.List<Set> | getSetsClone()Get a cloned List of all of the  Sets in the database. | 
| void | setDataSource(javax.sql.DataSource ds)Set the reference to the JDBC datasource. | 
| void | setSets(java.util.List<Set> sets)Set the  Sets in the database to be this List. | 
| void | storeSet(Set set)Update this  Setin the database | 
public void setDataSource(javax.sql.DataSource ds)
ds - The datasource as configured by Spring.public java.util.List<Set> getSets() throws DataAccessException
SetsDaoSets in the database.public java.util.List<Set> getSetsClone()
SetsDaoSets in the database.
 This is useful for when you want to prune the list without altering the sets cache.getSetsClone in interface SetsDaoSetspublic java.util.List<Set> getInactiveSets() throws DataAccessException
SetsDaoSets that the user has marked as inactive.getInactiveSets in interface SetsDaoSets.DataAccessException - nein.public java.util.List<Set> getActiveSets() throws DataAccessException
SetsDaoSets that the user has NOT marked as inactive.getActiveSets in interface SetsDaoSets.DataAccessException - nein.public int getSetCount()
                throws DataAccessException
SetsDaoSets in the database.getSetCount in interface SetsDaoDataAccessExceptionpublic Set getSet(int sid) throws DataAccessException
SetsDaoSet who's Set ID matches this sid.public Set getSet(java.lang.String setName) throws DataAccessException
SetsDaoSet who's name matches this setName.public void storeSet(Set set) throws DataAccessException
Set in the databasepublic void setSets(java.util.List<Set> sets) throws DataAccessException
SetsDaoSets in the database to be this List.
 Why you would want to do this, is beyond me.  But, here it is...public void addSet(Set set) throws DataAccessException
SetsDaoSet to the database.