public class ChainsDaoJdbc extends java.lang.Object implements ChainsDao
Chains.Chain,
ChainsDaoJdbc.java| Modifier and Type | Class and Description |
|---|---|
protected class |
ChainsDaoJdbc.ChainDelete
Chain Delete Object. |
protected class |
ChainsDaoJdbc.ChainInsert
Chain Insert Object. |
protected class |
ChainsDaoJdbc.ChainSetSizesDelete
Chain.SetSizes Delete Object. |
protected class |
ChainsDaoJdbc.ChainSetSizesInsert
Chain.SetSizes Insert Object. |
protected class |
ChainsDaoJdbc.ChainUpdate
Chain Update Object. |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
ChainsDaoJdbc() |
| 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 |
setDataSource(javax.sql.DataSource ds)
Set the database reference
|
void |
storeChain(Chain chain)
Store this
Chain in the Database. |
public void setDataSource(javax.sql.DataSource ds)
ds - The DataSource as generated by the Spring config/setup.public java.util.List<Chain> getChains() throws DataAccessException
ChainsDaopublic Chain getChain(java.lang.String name) throws DataAccessException
ChainsDaoChain based on its name.public Chain getChain(int cid) throws DataAccessException
ChainsDaoChain based on its Chain ID.public void storeChain(Chain chain) throws DataAccessException
ChainsDaoChain in the Database.storeChain in interface ChainsDaochain - The Chain to write.DataAccessException - I don't think so.public void deleteChain(Chain chain) throws DataAccessException
ChainsDaoChain from the Database.deleteChain in interface ChainsDaochain - The Chain to delete.DataAccessException - Not happening today.public int getChainCount()
ChainsDaogetChainCount in interface ChainsDao