public interface RootsDao
Roots. Roots are cached and any changes made external to the program will not be properly picked up.| Modifier and Type | Method and Description |
|---|---|
void |
addRoot(Root root)
Add this
Root to the database. |
void |
deleteRoot(Root root)
Delete this
Root from the database. |
java.util.List<Root> |
getActiveRoots()
Get a List of
Roots that the user has NOT marked as inactive. |
java.util.List<Root> |
getInactiveRoots()
Get a List of
Roots that the user has marked as inactive. |
Root |
getRoot(int rid)
Fetch the
Root that matches this Root ID. |
Root |
getRoot(java.lang.String rootName)
Get the
Root that matches this name. |
int |
getRootCount()
Fetch the number of Roots in the database.
|
java.util.List<Root> |
getRoots()
Fetch a List of all
Roots in the database. |
void |
setRoots(java.util.List<Root> roots)
Set the
Roots in the database to be this list. |
void |
storeRoot(Root root)
Update an existing root in the database.
|
int getRootCount()
throws DataAccessException
DataAccessException - It broke.java.util.List<Root> getRoots() throws DataAccessException
Roots in the database.Roots.DataAccessException - broken.Root getRoot(int rid) throws DataAccessException
Root that matches this Root ID.rid - The Root ID to query.DataAccessException - Didn't happen.Root getRoot(java.lang.String rootName) throws DataAccessException
Root that matches this name.rootName - The name of the Root to query.DataAccessException - needs fixin'.void setRoots(java.util.List<Root> roots) throws DataAccessException
Roots in the database to be this list. roots - The Roots to store.DataAccessException - Help me Lawdy!void addRoot(Root root) throws DataAccessException
Root to the database.root - The Root to store.DataAccessException - not ... gonna ... make ... it.void deleteRoot(Root root) throws DataAccessException
Root from the database.root - The Root to delete.DataAccessException - died.java.util.List<Root> getActiveRoots() throws DataAccessException
Roots that the user has NOT marked as inactive.Roots.DataAccessException - no joy.java.util.List<Root> getInactiveRoots() throws DataAccessException
Roots that the user has marked as inactive.Roots.DataAccessException - Sorry.void storeRoot(Root root) throws DataAccessException
root - The root to storeDataAccessException