public interface SetsDao
Sets.| 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
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
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
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 |
setSets(java.util.List<Set> sets)
Set the
Sets in the database to be this List. |
void |
storeSet(Set set)
Update an existing set in the database
|
int getSetCount()
throws DataAccessException
Sets in the database.DataAccessExceptionjava.util.List<Set> getSets() throws DataAccessException
Sets in the database.Sets.DataAccessException - broke.java.util.List<Set> getSetsClone()
Sets in the database.
This is useful for when you want to prune the list without altering the sets cache.SetsSet getSet(int sid) throws DataAccessException
Set who's Set ID matches this sid.sid - The Set ID to query.DataAccessExceptionSet 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
Sets in the database to be this List.
Why you would want to do this, is beyond me. But, here it is...sets - The Sets 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
Sets that the user has NOT marked as inactive.Sets.DataAccessException - nein.java.util.List<Set> getInactiveSets() throws DataAccessException
Sets that the user has marked as inactive.Sets.DataAccessException - nein.void storeSet(Set set) throws DataAccessException
set - The set to storeDataAccessException