public class ChainsDaoJdbc extends java.lang.Object implements ChainsDao
Chains.Chain, 
ChainsDaoJdbc.java| Modifier and Type | Class and Description | 
|---|---|
| protected class  | ChainsDaoJdbc.ChainDeleteChainDelete Object. | 
| protected class  | ChainsDaoJdbc.ChainInsertChainInsert Object. | 
| protected class  | ChainsDaoJdbc.ChainSetSizesDeleteChain.SetSizesDelete Object. | 
| protected class  | ChainsDaoJdbc.ChainSetSizesInsertChain.SetSizesInsert Object. | 
| protected class  | ChainsDaoJdbc.ChainUpdateChainUpdate 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  Chainfrom the Database. | 
| Chain | getChain(int cid)Fetch a  Chainbased on its Chain ID. | 
| Chain | getChain(java.lang.String name)Fetch a  Chainbased 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  Chainin 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