com.rapidtransform.part.dao.hibernate
Class PartDAOHibernate
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
com.rapidtransform.core.dao.hibernate.GenericDAOHibernate<Part,java.lang.Long>
com.rapidtransform.part.dao.hibernate.PartDAOHibernate
- All Implemented Interfaces:
- DAO, GenericDAO<Part,java.lang.Long>, PartDAO, org.springframework.beans.factory.InitializingBean
public class PartDAOHibernate
- extends GenericDAOHibernate<Part,java.lang.Long>
- implements PartDAO
This class defines the Hibernate data access code for Part objects. Methods in this class
define how Part data can be accessed, updated, and removed.
- Author:
- Steve
Method Summary |
Part |
getPart(java.lang.Long partId)
Returns the part with the given Part Id. |
java.util.List |
getParts()
Returns all Parts in the database. |
void |
removePart(java.lang.Long partId)
Removes the part with the given Id from the database. |
void |
savePart(Part part)
Saves the given part. |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartDAOHibernate
public PartDAOHibernate()
getPart
public Part getPart(java.lang.Long partId)
- Description copied from interface:
PartDAO
- Returns the part with the given Part Id.
- Specified by:
getPart
in interface PartDAO
- Returns:
getParts
public java.util.List getParts()
- Description copied from interface:
PartDAO
- Returns all Parts in the database.
- Specified by:
getParts
in interface PartDAO
- Returns:
savePart
public void savePart(Part part)
- Description copied from interface:
PartDAO
- Saves the given part.
- Specified by:
savePart
in interface PartDAO
removePart
public void removePart(java.lang.Long partId)
- Description copied from interface:
PartDAO
- Removes the part with the given Id from the database.
- Specified by:
removePart
in interface PartDAO