public interface SetsDao
Set
s.Modifier and Type | Method and Description |
---|---|
void |
addSet(Set set)
Add this
Set to the database. |
void |
deleteSet(Set set)
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 |
setSets(java.util.List<Set> sets)
Set the
Set s in the database to be this List. |
void |
storeSet(Set set)
Update an existing set in the database
|
int getSetCount() throws DataAccessException
Set
s in the database.DataAccessException
java.util.List<Set> getSets() throws DataAccessException
Set
s in the database.Set
s.DataAccessException
- broke.java.util.List<Set> getSetsClone()
Set
s in the database.
This is useful for when you want to prune the list without altering the sets cache.Set
sSet getSet(int sid) throws DataAccessException
Set
who's Set ID matches this sid.sid
- The Set ID to query.DataAccessException
Set getSet(java.lang.String setName) throws DataAccessException
Set
who's name matches this setName.setName
- The name of the Set
to query for.Set
that matches this name, or null if not found.DataAccessException
- boo boo.void setSets(java.util.List<Set> sets) throws DataAccessException
Set
s in the database to be this List.
Why you would want to do this, is beyond me. But, here it is...sets
- The Set
s to set.DataAccessException
- didn't happen.void addSet(Set set) throws DataAccessException
Set
to the database.set
- The Set
to add.DataAccessException
- not today.void deleteSet(Set set) throws DataAccessException
Set
from the database.set
- The Set
to delete.DataAccessException
- nyet.java.util.List<Set> getActiveSets() throws DataAccessException
Set
s that the user has NOT marked as inactive.Set
s.DataAccessException
- nein.java.util.List<Set> getInactiveSets() throws DataAccessException
Set
s that the user has marked as inactive.Set
s.DataAccessException
- nein.void storeSet(Set set) throws DataAccessException
set
- The set to storeDataAccessException