|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
catalog.model.dao.hibernate.CatalogDaoHibernateImpl
The Hibernate implementation of the CatalogDao
.
CatalogDao
Field Summary |
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
Constructor Summary | |
CatalogDaoHibernateImpl()
Default constructor. |
Method Summary | |
void |
deleteProduct(Product product)
Delete product. |
java.util.List |
getAllCategories()
Get all categories. |
java.util.List |
getAllProducts()
Get all the products. |
Category |
getCategory(java.lang.String id)
Get category by category id. |
Product |
getProduct(java.lang.String id)
Get product by product id. |
Product |
saveProduct(Product product)
Save the product. |
void |
updateProduct(Product product)
Update product. |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CatalogDaoHibernateImpl()
Method Detail |
public Product saveProduct(Product product)
CatalogDao
saveProduct
in interface CatalogDao
product
- the product to be saved
CatalogDao.saveProduct(Product)
public Product getProduct(java.lang.String id)
CatalogDao
getProduct
in interface CatalogDao
id
- the product id
CatalogDao.getProduct(String)
public void updateProduct(Product product)
CatalogDao
updateProduct
in interface CatalogDao
product
- the product to be updatedCatalogDao.updateProduct(Product)
public void deleteProduct(Product product)
CatalogDao
deleteProduct
in interface CatalogDao
product
- the product to be deletedCatalogDao.deleteProduct(Product)
public java.util.List getAllProducts()
CatalogDao
getAllProducts
in interface CatalogDao
CatalogDao.getAllProducts()
public Category getCategory(java.lang.String id)
CatalogDao
getCategory
in interface CatalogDao
id
- The category id
CatalogDao.getCategory(String)
public java.util.List getAllCategories()
CatalogDao
getAllCategories
in interface CatalogDao
CatalogDao.getAllCategories()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |