|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.company.thesandbox.data.spring.dao.ProductDaoImplBase
public class ProductDaoImplBase
Product Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting Product objects in the database. All database access is done here.
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
ProductDaoImplBase()
|
|
| Method Summary | |
|---|---|
Product |
add(Product object)
Adds a new Product to the database |
void |
delete(Product object)
Deletes a Product from the database. |
java.util.List<Product> |
listAllProducts()
Selects all Products from the database. |
Product |
retrieve(long id)
Retrieves a Product by its ID from the database. |
Product |
update(Product object)
Stores/Updates the Product in the database. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProductDaoImplBase()
| Method Detail |
|---|
public Product retrieve(long id)
ProductDaoBase
retrieve in interface ProductDaoBaseid - id of the Product to retrieve.
public Product add(Product object)
ProductDaoBase
add in interface ProductDaoBaseobject - the Product to add to the database.
public Product update(Product object)
ProductDaoBase
update in interface ProductDaoBaseobject - the Product to store/update
public void delete(Product object)
ProductDaoBase
delete in interface ProductDaoBaseobject - the Product to deletepublic java.util.List<Product> listAllProducts()
ProductDaoBase
listAllProducts in interface ProductDaoBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||