edu.uoc.tfc.dbmodel
Class ClientDaoImpl

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

public class ClientDaoImpl
extends ClientDaoBase

See Also:
Client

Field Summary
 
Fields inherited from interface edu.uoc.tfc.dbmodel.ClientDao
TRANSFORM_CLIENTVO, TRANSFORM_NONE
 
Constructor Summary
ClientDaoImpl()
           
 
Method Summary
 Client clientVOToEntity(ClientVO clientVO)
          Converts an instance of type ClientVO to this DAO's entity.
 void clientVOToEntity(ClientVO source, Client target, boolean copyIfNull)
          Copies the fields of ClientVO to the specified entity.
 ClientVO toClientVO(Client entity)
          Converts this DAO's entity to an object of type ClientVO.
 void toClientVO(Client source, ClientVO target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class edu.uoc.tfc.dbmodel.ClientDaoBase
clientVOToEntityCollection, create, create, create, create, create, create, create, create, findClientsByCriteria, findClientsByCriteria, findClientsByCriteria, load, load, loadAll, loadAll, loadAll, loadAll, remove, remove, remove, search, search, search, search, toClientVOArray, toClientVOCollection, 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

ClientDaoImpl

public ClientDaoImpl()
Method Detail

toClientVO

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

toClientVO

public ClientVO toClientVO(Client entity)
Description copied from interface: ClientDao
Converts this DAO's entity to an object of type ClientVO.

Specified by:
toClientVO in interface ClientDao
Overrides:
toClientVO in class ClientDaoBase
See Also:
ClientDao.toClientVO(edu.uoc.tfc.dbmodel.Client)

clientVOToEntity

public Client clientVOToEntity(ClientVO clientVO)
Description copied from interface: ClientDao
Converts an instance of type ClientVO to this DAO's entity.

See Also:
ClientDao.clientVOToEntity(edu.uoc.tfc.dto.ClientVO)

clientVOToEntity

public void clientVOToEntity(ClientVO source,
                             Client target,
                             boolean copyIfNull)
Description copied from interface: ClientDao
Copies the fields of ClientVO to the specified entity.

Specified by:
clientVOToEntity in interface ClientDao
Overrides:
clientVOToEntity in class ClientDaoBase
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.ClientDao#clientVOToEntity(edu.uoc.tfc.dto.ClientVO, edu.uoc.tfc.dbmodel.Client)