public interface ChainsDao
Chain
s.Modifier and Type | Method and Description |
---|---|
void |
deleteChain(Chain chain)
Delete this
Chain from the Database. |
Chain |
getChain(int cid)
Fetch a
Chain based on its Chain ID. |
Chain |
getChain(java.lang.String name)
Fetch a
Chain based on its name. |
int |
getChainCount()
Return the number of Chains in the Database.
|
java.util.List<Chain> |
getChains()
Get a List of all of the Chains in the Database.
|
void |
storeChain(Chain chain)
Store this
Chain in the Database. |
java.util.List<Chain> getChains() throws DataAccessException
DataAccessException
- Something went horribly wrong.int getChainCount() throws DataAccessException
DataAccessException
- It broke.Chain getChain(java.lang.String name) throws DataAccessException
Chain
based on its name.name
- The name to query.null
if not found.DataAccessException
- Broken database access.Chain getChain(int cid) throws DataAccessException
Chain
based on its Chain ID.cid
- The Chain ID to query.null
if not found.DataAccessException
- Broken database access.void storeChain(Chain chain) throws DataAccessException
Chain
in the Database.chain
- The Chain to write.DataAccessException
- I don't think so.void deleteChain(Chain chain) throws DataAccessException
Chain
from the Database.chain
- The Chain to delete.DataAccessException
- Not happening today.