edu.uoc.tfc.dbmodel
Class AsseguradoraDaoImpl

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

public class AsseguradoraDaoImpl
extends AsseguradoraDaoBase

See Also:
Asseguradora

Field Summary
 
Fields inherited from interface edu.uoc.tfc.dbmodel.AsseguradoraDao
TRANSFORM_ASSEGURADORAVO, TRANSFORM_NONE
 
Constructor Summary
AsseguradoraDaoImpl()
           
 
Method Summary
 Asseguradora asseguradoraVOToEntity(AsseguradoraVO asseguradoraVO)
          Converts an instance of type AsseguradoraVO to this DAO's entity.
 void asseguradoraVOToEntity(AsseguradoraVO source, Asseguradora target, boolean copyIfNull)
          Copies the fields of AsseguradoraVO to the specified entity.
 java.util.Collection findAsseguradoresByCriteria(CriteriaAsseguradoraVO criteria)
           Mètode per cercar asseguradores a partir d'un criteri de cerca
 java.util.Collection findAsseguradoresByCriteria(int transform, CriteriaAsseguradoraVO criteria)
           Does the same thing as AsseguradoraDao.findAsseguradoresByCriteria(edu.uoc.tfc.dto.CriteriaAsseguradoraVO) with an additional flag called transform.
 java.util.Collection findAsseguradoresByCriteria(int transform, int pageNumber, int pageSize, CriteriaAsseguradoraVO criteria)
           Does the same thing as #findAsseguradoresByCriteria(int, String, edu.uoc.tfc.dto.CriteriaAsseguradoraVO) with an additional two arguments called pageNumber and pageSize.
 AsseguradoraVO toAsseguradoraVO(Asseguradora entity)
          Converts this DAO's entity to an object of type AsseguradoraVO.
 void toAsseguradoraVO(Asseguradora source, AsseguradoraVO target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class edu.uoc.tfc.dbmodel.AsseguradoraDaoBase
asseguradoraVOToEntityCollection, create, create, create, create, create, create, load, load, loadAll, loadAll, loadAll, loadAll, remove, remove, remove, search, search, search, search, toAsseguradoraVOArray, toAsseguradoraVOCollection, toEntities, 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

AsseguradoraDaoImpl

public AsseguradoraDaoImpl()
Method Detail

toAsseguradoraVO

public void toAsseguradoraVO(Asseguradora source,
                             AsseguradoraVO target)
Description copied from interface: AsseguradoraDao
Copies the fields of the specified entity to the target value object. This method is similar to toAsseguradoraVO(), 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:
toAsseguradoraVO in interface AsseguradoraDao
Overrides:
toAsseguradoraVO in class AsseguradoraDaoBase
See Also:
AsseguradoraDao.toAsseguradoraVO(edu.uoc.tfc.dbmodel.Asseguradora, edu.uoc.tfc.dto.AsseguradoraVO)

toAsseguradoraVO

public AsseguradoraVO toAsseguradoraVO(Asseguradora entity)
Description copied from interface: AsseguradoraDao
Converts this DAO's entity to an object of type AsseguradoraVO.

Specified by:
toAsseguradoraVO in interface AsseguradoraDao
Overrides:
toAsseguradoraVO in class AsseguradoraDaoBase
See Also:
AsseguradoraDao.toAsseguradoraVO(edu.uoc.tfc.dbmodel.Asseguradora)

asseguradoraVOToEntity

public Asseguradora asseguradoraVOToEntity(AsseguradoraVO asseguradoraVO)
Description copied from interface: AsseguradoraDao
Converts an instance of type AsseguradoraVO to this DAO's entity.

See Also:
AsseguradoraDao.asseguradoraVOToEntity(edu.uoc.tfc.dto.AsseguradoraVO)

asseguradoraVOToEntity

public void asseguradoraVOToEntity(AsseguradoraVO source,
                                   Asseguradora target,
                                   boolean copyIfNull)
Description copied from interface: AsseguradoraDao
Copies the fields of AsseguradoraVO to the specified entity.

Specified by:
asseguradoraVOToEntity in interface AsseguradoraDao
Overrides:
asseguradoraVOToEntity in class AsseguradoraDaoBase
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.AsseguradoraDao#asseguradoraVOToEntity(edu.uoc.tfc.dto.AsseguradoraVO, edu.uoc.tfc.dbmodel.Asseguradora)

findAsseguradoresByCriteria

public java.util.Collection findAsseguradoresByCriteria(CriteriaAsseguradoraVO criteria)
Description copied from interface: AsseguradoraDao

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

Specified by:
findAsseguradoresByCriteria in interface AsseguradoraDao
Overrides:
findAsseguradoresByCriteria in class AsseguradoraDaoBase
See Also:
AsseguradoraDao.findAsseguradoresByCriteria(edu.uoc.tfc.dto.CriteriaAsseguradoraVO)

findAsseguradoresByCriteria

public java.util.Collection findAsseguradoresByCriteria(int transform,
                                                        CriteriaAsseguradoraVO criteria)
Description copied from interface: AsseguradoraDao

Does the same thing as AsseguradoraDao.findAsseguradoresByCriteria(edu.uoc.tfc.dto.CriteriaAsseguradoraVO) 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:
findAsseguradoresByCriteria in interface AsseguradoraDao
Overrides:
findAsseguradoresByCriteria in class AsseguradoraDaoBase
See Also:
AsseguradoraDao.findAsseguradoresByCriteria(int, edu.uoc.tfc.dto.CriteriaAsseguradoraVO)

findAsseguradoresByCriteria

public java.util.Collection findAsseguradoresByCriteria(int transform,
                                                        int pageNumber,
                                                        int pageSize,
                                                        CriteriaAsseguradoraVO criteria)
Description copied from interface: AsseguradoraDao

Does the same thing as #findAsseguradoresByCriteria(int, String, edu.uoc.tfc.dto.CriteriaAsseguradoraVO) 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:
findAsseguradoresByCriteria in interface AsseguradoraDao
Overrides:
findAsseguradoresByCriteria in class AsseguradoraDaoBase
See Also:
edu.uoc.tfc.dbmodel.AsseguradoraDao#findAsseguradoresByCriteria(int, java.lang.String, int, int, edu.uoc.tfc.dto.CriteriaAsseguradoraVO)