public interface RootsDao
Root
s. Root
s 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
Root s that the user has NOT marked as inactive. |
java.util.List<Root> |
getInactiveRoots()
Get a List of
Root s 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
Root s in the database. |
void |
setRoots(java.util.List<Root> roots)
Set the
Root s 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
Root
s in the database.Root
s.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
Root
s in the database to be this list. roots
- The Root
s 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
Root
s that the user has NOT marked as inactive.Root
s.DataAccessException
- no joy.java.util.List<Root> getInactiveRoots() throws DataAccessException
Root
s that the user has marked as inactive.Root
s.DataAccessException
- Sorry.void storeRoot(Root root) throws DataAccessException
root
- The root to storeDataAccessException