edu.uoc.tfc.dbmodel.security
Class RoleDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by edu.uoc.tfc.dbmodel.security.RoleDaoBase
              extended by edu.uoc.tfc.dbmodel.security.RoleDaoImpl
All Implemented Interfaces:
RoleDao, org.springframework.beans.factory.InitializingBean

public class RoleDaoImpl
extends RoleDaoBase

See Also:
Role

Field Summary
 
Fields inherited from interface edu.uoc.tfc.dbmodel.security.RoleDao
TRANSFORM_NONE, TRANSFORM_ROLEVO
 
Constructor Summary
RoleDaoImpl()
           
 
Method Summary
 Role roleVOToEntity(RoleVO roleVO)
          Converts an instance of type RoleVO to this DAO's entity.
 void roleVOToEntity(RoleVO source, Role target, boolean copyIfNull)
          Copies the fields of RoleVO to the specified entity.
 RoleVO toRoleVO(Role entity)
          Converts this DAO's entity to an object of type RoleVO.
 void toRoleVO(Role source, RoleVO target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class edu.uoc.tfc.dbmodel.security.RoleDaoBase
create, create, create, create, create, create, load, load, loadAll, loadAll, loadAll, loadAll, remove, remove, remove, roleVOToEntityCollection, search, search, search, search, toEntities, toRoleVOArray, toRoleVOCollection, 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

RoleDaoImpl

public RoleDaoImpl()
Method Detail

toRoleVO

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

toRoleVO

public RoleVO toRoleVO(Role entity)
Description copied from interface: RoleDao
Converts this DAO's entity to an object of type RoleVO.

Specified by:
toRoleVO in interface RoleDao
Overrides:
toRoleVO in class RoleDaoBase
See Also:
RoleDao.toRoleVO(edu.uoc.tfc.dbmodel.security.Role)

roleVOToEntity

public Role roleVOToEntity(RoleVO roleVO)
Description copied from interface: RoleDao
Converts an instance of type RoleVO to this DAO's entity.

See Also:
RoleDao.roleVOToEntity(edu.uoc.tfc.dto.security.RoleVO)

roleVOToEntity

public void roleVOToEntity(RoleVO source,
                           Role target,
                           boolean copyIfNull)
Description copied from interface: RoleDao
Copies the fields of RoleVO to the specified entity.

Specified by:
roleVOToEntity in interface RoleDao
Overrides:
roleVOToEntity in class RoleDaoBase
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.security.RoleDao#roleVOToEntity(edu.uoc.tfc.dto.security.RoleVO, edu.uoc.tfc.dbmodel.security.Role)