edu.uoc.tfc.dbmodel
Class PartDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by edu.uoc.tfc.dbmodel.PartDaoBase
              extended by edu.uoc.tfc.dbmodel.PartDaoImpl
All Implemented Interfaces:
PartDao, org.springframework.beans.factory.InitializingBean

public class PartDaoImpl
extends PartDaoBase

See Also:
Part

Field Summary
 
Fields inherited from interface edu.uoc.tfc.dbmodel.PartDao
TRANSFORM_NONE, TRANSFORM_PARTVO
 
Constructor Summary
PartDaoImpl()
           
 
Method Summary
 java.util.Collection findPartsByCriteria(CriteriaPartVO criteria)
           Mètode per cercar parts de snistre a partir d'un criteri de cerca
 java.util.Collection findPartsByCriteria(int transform, CriteriaPartVO criteria)
           Does the same thing as PartDao.findPartsByCriteria(edu.uoc.tfc.dto.CriteriaPartVO) with an additional flag called transform.
 java.util.Collection findPartsByCriteria(int transform, int pageNumber, int pageSize, CriteriaPartVO criteria)
           Does the same thing as #findPartsByCriteria(int, String, edu.uoc.tfc.dto.CriteriaPartVO) with an additional two arguments called pageNumber and pageSize.
 Part partVOToEntity(PartVO partVO)
          Converts an instance of type PartVO to this DAO's entity.
 void partVOToEntity(PartVO source, Part target, boolean copyIfNull)
          Copies the fields of PartVO to the specified entity.
 PartVO toPartVO(Part entity)
          Converts this DAO's entity to an object of type PartVO.
 void toPartVO(Part source, PartVO target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class edu.uoc.tfc.dbmodel.PartDaoBase
create, create, create, create, create, create, create, create, load, load, loadAll, loadAll, loadAll, loadAll, partVOToEntityCollection, remove, remove, remove, search, search, search, search, toEntities, toPartVOArray, toPartVOCollection, update, update
 
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
 

Constructor Detail

PartDaoImpl

public PartDaoImpl()
Method Detail

toPartVO

public void toPartVO(Part source,
                     PartVO target)
Description copied from interface: PartDao
Copies the fields of the specified entity to the target value object. This method is similar to toPartVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toPartVO in interface PartDao
Overrides:
toPartVO in class PartDaoBase
See Also:
PartDao.toPartVO(edu.uoc.tfc.dbmodel.Part, edu.uoc.tfc.dto.PartVO)

toPartVO

public PartVO toPartVO(Part entity)
Description copied from interface: PartDao
Converts this DAO's entity to an object of type PartVO.

Specified by:
toPartVO in interface PartDao
Overrides:
toPartVO in class PartDaoBase
See Also:
PartDao.toPartVO(edu.uoc.tfc.dbmodel.Part)

partVOToEntity

public Part partVOToEntity(PartVO partVO)
Description copied from interface: PartDao
Converts an instance of type PartVO to this DAO's entity.

See Also:
PartDao.partVOToEntity(edu.uoc.tfc.dto.PartVO)

partVOToEntity

public void partVOToEntity(PartVO source,
                           Part target,
                           boolean copyIfNull)
Description copied from interface: PartDao
Copies the fields of PartVO to the specified entity.

Specified by:
partVOToEntity in interface PartDao
Overrides:
partVOToEntity in class PartDaoBase
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
edu.uoc.tfc.dbmodel.PartDao#partVOToEntity(edu.uoc.tfc.dto.PartVO, edu.uoc.tfc.dbmodel.Part)

findPartsByCriteria

public java.util.Collection findPartsByCriteria(CriteriaPartVO criteria)
Description copied from interface: PartDao

Mètode per cercar parts de snistre a partir d'un criteri de cerca

Specified by:
findPartsByCriteria in interface PartDao
Overrides:
findPartsByCriteria in class PartDaoBase
See Also:
PartDao.findPartsByCriteria(edu.uoc.tfc.dto.CriteriaPartVO)

findPartsByCriteria

public java.util.Collection findPartsByCriteria(int transform,
                                                CriteriaPartVO criteria)
Description copied from interface: PartDao

Does the same thing as PartDao.findPartsByCriteria(edu.uoc.tfc.dto.CriteriaPartVO) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPartsByCriteria in interface PartDao
Overrides:
findPartsByCriteria in class PartDaoBase
See Also:
PartDao.findPartsByCriteria(int, edu.uoc.tfc.dto.CriteriaPartVO)

findPartsByCriteria

public java.util.Collection findPartsByCriteria(int transform,
                                                int pageNumber,
                                                int pageSize,
                                                CriteriaPartVO criteria)
Description copied from interface: PartDao

Does the same thing as #findPartsByCriteria(int, String, edu.uoc.tfc.dto.CriteriaPartVO) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPartsByCriteria in interface PartDao
Overrides:
findPartsByCriteria in class PartDaoBase
See Also:
edu.uoc.tfc.dbmodel.PartDao#findPartsByCriteria(int, java.lang.String, int, int, edu.uoc.tfc.dto.CriteriaPartVO)