com.rapidtransform.part.dao.hibernate
Class PartDAOHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.rapidtransform.core.dao.hibernate.GenericDAOHibernate<Part,java.lang.Long>
              extended by 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

Constructor Summary
PartDAOHibernate()
           
 
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 com.rapidtransform.core.dao.hibernate.GenericDAOHibernate
findAll, findById, findByType, getPersistentClass, remove, save, setPersistentClass
 
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
 
Methods inherited from interface com.rapidtransform.core.dao.GenericDAO
findAll, findById, findByType, remove, save
 

Constructor Detail

PartDAOHibernate

public PartDAOHibernate()
Method Detail

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