public class SetsDaoJdbc extends java.lang.Object implements SetsDao
Set
s.Modifier and Type | Class and Description |
---|---|
protected class |
SetsDaoJdbc.SetDelete
Set Delete Object. |
protected class |
SetsDaoJdbc.SetInsert
Set Insert Object. |
protected class |
SetsDaoJdbc.SetsUpdate
Set Update 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
Set to the database. |
void |
deleteSet(Set s)
Delete this
Set from the database. |
java.util.List<Set> |
getActiveSets()
Get a List of
Set s that the user has NOT marked as inactive. |
java.util.List<Set> |
getInactiveSets()
Get a List of
Set s that the user has marked as inactive. |
Set |
getSet(int sid)
Fetch the
Set who's Set ID matches this sid. |
Set |
getSet(java.lang.String setName)
Fetch the
Set who's name matches this setName. |
int |
getSetCount()
Get the number of
Set s in the database. |
java.util.List<Set> |
getSets()
Get a List of all of the
Set s in the database. |
java.util.List<Set> |
getSetsClone()
Get a cloned List of all of the
Set s 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
Set s in the database to be this List. |
void |
storeSet(Set set)
Update this
Set in the database |
public void setDataSource(javax.sql.DataSource ds)
ds
- The datasource as configured by Spring.public java.util.List<Set> getSets() throws DataAccessException
SetsDao
Set
s in the database.public java.util.List<Set> getSetsClone()
SetsDao
Set
s in the database.
This is useful for when you want to prune the list without altering the sets cache.getSetsClone
in interface SetsDao
Set
spublic java.util.List<Set> getInactiveSets() throws DataAccessException
SetsDao
Set
s that the user has marked as inactive.getInactiveSets
in interface SetsDao
Set
s.DataAccessException
- nein.public java.util.List<Set> getActiveSets() throws DataAccessException
SetsDao
Set
s that the user has NOT marked as inactive.getActiveSets
in interface SetsDao
Set
s.DataAccessException
- nein.public int getSetCount() throws DataAccessException
SetsDao
Set
s in the database.getSetCount
in interface SetsDao
DataAccessException
public Set getSet(int sid) throws DataAccessException
SetsDao
Set
who's Set ID matches this sid.public Set getSet(java.lang.String setName) throws DataAccessException
SetsDao
Set
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
SetsDao
Set
s 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
SetsDao
Set
to the database.