fr.ifremer.allegro.administration.user
Class UserDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.administration.user.PersonDaoBase
          extended by fr.ifremer.allegro.administration.user.PersonDaoImpl
              extended by fr.ifremer.allegro.administration.user.UserDaoBase
                  extended by fr.ifremer.allegro.administration.user.UserDaoImpl
All Implemented Interfaces:
PersonDao, UserDao

public class UserDaoImpl
extends UserDaoBase

See Also:
User

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.UserDao
TRANSFORM_CLUSTERUSER, TRANSFORM_REMOTEUSERFULLVO, TRANSFORM_REMOTEUSERNATURALID
 
Fields inherited from interface fr.ifremer.allegro.administration.user.PersonDao
TRANSFORM_CLUSTERPERSON, TRANSFORM_NONE, TRANSFORM_REMOTEPERSONFULLVO, TRANSFORM_REMOTEPERSONNATURALID
 
Constructor Summary
UserDaoImpl()
           
 
Method Summary
 User clusterUserToEntity(ClusterUser clusterUser)
          Converts an instance of type ClusterUser to this DAO's entity.
 void clusterUserToEntity(ClusterUser source, User target, boolean copyIfNull)
          Copies the fields of ClusterUser to the specified entity.
protected  User handleCreateFromClusterUser(ClusterUser clusterUser)
          Performs the core logic for UserDaoBase.createFromClusterUser(fr.ifremer.allegro.administration.user.generic.cluster.ClusterUser)
protected  ClusterUser[] handleGetAllClusterUserSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for UserDaoBase.getAllClusterUserSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 User remoteUserFullVOToEntity(RemoteUserFullVO remoteUserFullVO)
          Converts an instance of type RemoteUserFullVO to this DAO's entity.
 void remoteUserFullVOToEntity(RemoteUserFullVO source, User target, boolean copyIfNull)
          Copies the fields of RemoteUserFullVO to the specified entity.
 User remoteUserNaturalIdToEntity(RemoteUserNaturalId remoteUserNaturalId)
          Converts an instance of type RemoteUserNaturalId to this DAO's entity.
 void remoteUserNaturalIdToEntity(RemoteUserNaturalId source, User target, boolean copyIfNull)
          Copies the fields of RemoteUserNaturalId to the specified entity.
 ClusterUser toClusterUser(User entity)
          Converts this DAO's entity to an object of type ClusterUser.
 void toClusterUser(User source, ClusterUser target)
          Copies the fields of the specified entity to the target value object.
 RemoteUserFullVO toRemoteUserFullVO(User entity)
          Converts this DAO's entity to an object of type RemoteUserFullVO.
 void toRemoteUserFullVO(User source, RemoteUserFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteUserNaturalId toRemoteUserNaturalId(User entity)
          Converts this DAO's entity to an object of type RemoteUserNaturalId.
 void toRemoteUserNaturalId(User source, RemoteUserNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.administration.user.UserDaoBase
clusterUserToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterUser, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonById, findPersonById, findPersonById, findPersonById, findPersonByNaturalId, findPersonByNaturalId, findPersonByNaturalId, findPersonByNaturalId, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findUserByDepartment, findUserByDepartment, findUserByDepartment, findUserByDepartment, findUserByDepartment, findUserByDepartment, findUserByDepartment, findUserByDepartment, findUserById, findUserById, findUserById, findUserById, findUserByNaturalId, findUserByNaturalId, findUserByNaturalId, findUserByNaturalId, findUserByStatus, findUserByStatus, findUserByStatus, findUserByStatus, findUserByStatus, findUserByStatus, findUserByStatus, findUserByStatus, getAllClusterUserSinceDateSynchro, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllUser, getAllUser, getAllUser, getAllUser, getAllUser, getAllUser, getAllUser, getAllUser, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getAllUserSinceDateSynchro, getPrincipal, getUserProfilDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteUserFullVOToEntityCollection, remoteUserNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setUserProfilDao, toClusterUser, toClusterUserArray, toClusterUserCollection, toEntity, toRemoteUserFullVO, toRemoteUserFullVOArray, toRemoteUserFullVOCollection, toRemoteUserNaturalId, toRemoteUserNaturalIdArray, toRemoteUserNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class fr.ifremer.allegro.administration.user.PersonDaoImpl
clusterPersonToEntity, clusterPersonToEntity, handleCreateFromClusterPerson, handleGetAllClusterPersonSinceDateSynchro, remotePersonFullVOToEntity, remotePersonFullVOToEntity, remotePersonNaturalIdToEntity, remotePersonNaturalIdToEntity, toClusterPerson, toClusterPerson, toRemotePersonFullVO, toRemotePersonFullVO, toRemotePersonNaturalId, toRemotePersonNaturalId
 
Methods inherited from class fr.ifremer.allegro.administration.user.PersonDaoBase
clusterPersonToEntityCollection, create, create, create, create, create, create, createFromClusterPerson, getAgeReaderQualificationDao, getAllClusterPersonSinceDateSynchro, getDepartmentDao, getProgram2PersonDao, getStatusDao, remotePersonFullVOToEntityCollection, remotePersonNaturalIdToEntityCollection, remove, setAgeReaderQualificationDao, setDepartmentDao, setProgram2PersonDao, setStatusDao, toClusterPerson, toClusterPersonArray, toClusterPersonCollection, toRemotePersonFullVO, toRemotePersonFullVOArray, toRemotePersonFullVOCollection, toRemotePersonNaturalId, toRemotePersonNaturalIdArray, toRemotePersonNaturalIdCollection, transformEntity, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.administration.user.PersonDao
clusterPersonToEntity, clusterPersonToEntity, clusterPersonToEntityCollection, create, create, create, create, create, create, createFromClusterPerson, getAllClusterPersonSinceDateSynchro, remotePersonFullVOToEntity, remotePersonFullVOToEntity, remotePersonFullVOToEntityCollection, remotePersonNaturalIdToEntity, remotePersonNaturalIdToEntity, remotePersonNaturalIdToEntityCollection, remove, toClusterPerson, toClusterPerson, toClusterPersonArray, toClusterPersonCollection, toRemotePersonFullVO, toRemotePersonFullVO, toRemotePersonFullVOArray, toRemotePersonFullVOCollection, toRemotePersonNaturalId, toRemotePersonNaturalId, toRemotePersonNaturalIdArray, toRemotePersonNaturalIdCollection, update
 

Constructor Detail

UserDaoImpl

public UserDaoImpl()
Method Detail

handleCreateFromClusterUser

protected User handleCreateFromClusterUser(ClusterUser clusterUser)
Description copied from class: UserDaoBase
Performs the core logic for UserDaoBase.createFromClusterUser(fr.ifremer.allegro.administration.user.generic.cluster.ClusterUser)

Specified by:
handleCreateFromClusterUser in class UserDaoBase
See Also:
UserDao.createFromClusterUser(fr.ifremer.allegro.administration.user.generic.cluster.ClusterUser)

handleGetAllClusterUserSinceDateSynchro

protected ClusterUser[] handleGetAllClusterUserSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                java.lang.Integer userId,
                                                                java.lang.Integer[] registrationLocationIds,
                                                                java.lang.Integer pageNumber,
                                                                java.lang.Integer pageSize)
Description copied from class: UserDaoBase
Performs the core logic for UserDaoBase.getAllClusterUserSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterUserSinceDateSynchro in class UserDaoBase
See Also:
UserDao.getAllClusterUserSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteUserFullVO

public void toRemoteUserFullVO(User source,
                               RemoteUserFullVO target)
Description copied from interface: UserDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteUserFullVO(), 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:
toRemoteUserFullVO in interface UserDao
Overrides:
toRemoteUserFullVO in class UserDaoBase
See Also:
UserDao.toRemoteUserFullVO(fr.ifremer.allegro.administration.user.User, fr.ifremer.allegro.administration.user.generic.vo.RemoteUserFullVO)

toRemoteUserFullVO

public RemoteUserFullVO toRemoteUserFullVO(User entity)
Description copied from interface: UserDao
Converts this DAO's entity to an object of type RemoteUserFullVO.

Specified by:
toRemoteUserFullVO in interface UserDao
Overrides:
toRemoteUserFullVO in class UserDaoBase
See Also:
UserDao.toRemoteUserFullVO(fr.ifremer.allegro.administration.user.User)

remoteUserFullVOToEntity

public User remoteUserFullVOToEntity(RemoteUserFullVO remoteUserFullVO)
Description copied from interface: UserDao
Converts an instance of type RemoteUserFullVO to this DAO's entity.

See Also:
UserDao.remoteUserFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteUserFullVO)

remoteUserFullVOToEntity

public void remoteUserFullVOToEntity(RemoteUserFullVO source,
                                     User target,
                                     boolean copyIfNull)
Description copied from interface: UserDao
Copies the fields of RemoteUserFullVO to the specified entity.

Specified by:
remoteUserFullVOToEntity in interface UserDao
Overrides:
remoteUserFullVOToEntity in class UserDaoBase
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:
fr.ifremer.allegro.administration.user.UserDao#remoteUserFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteUserFullVO, fr.ifremer.allegro.administration.user.User)

toRemoteUserNaturalId

public void toRemoteUserNaturalId(User source,
                                  RemoteUserNaturalId target)
Description copied from interface: UserDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteUserNaturalId(), 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:
toRemoteUserNaturalId in interface UserDao
Overrides:
toRemoteUserNaturalId in class UserDaoBase
See Also:
UserDao.toRemoteUserNaturalId(fr.ifremer.allegro.administration.user.User, fr.ifremer.allegro.administration.user.generic.vo.RemoteUserNaturalId)

toRemoteUserNaturalId

public RemoteUserNaturalId toRemoteUserNaturalId(User entity)
Description copied from interface: UserDao
Converts this DAO's entity to an object of type RemoteUserNaturalId.

Specified by:
toRemoteUserNaturalId in interface UserDao
Overrides:
toRemoteUserNaturalId in class UserDaoBase
See Also:
UserDao.toRemoteUserNaturalId(fr.ifremer.allegro.administration.user.User)

remoteUserNaturalIdToEntity

public User remoteUserNaturalIdToEntity(RemoteUserNaturalId remoteUserNaturalId)
Description copied from interface: UserDao
Converts an instance of type RemoteUserNaturalId to this DAO's entity.

See Also:
UserDao.remoteUserNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteUserNaturalId)

remoteUserNaturalIdToEntity

public void remoteUserNaturalIdToEntity(RemoteUserNaturalId source,
                                        User target,
                                        boolean copyIfNull)
Description copied from interface: UserDao
Copies the fields of RemoteUserNaturalId to the specified entity.

Specified by:
remoteUserNaturalIdToEntity in interface UserDao
Overrides:
remoteUserNaturalIdToEntity in class UserDaoBase
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:
fr.ifremer.allegro.administration.user.UserDao#remoteUserNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteUserNaturalId, fr.ifremer.allegro.administration.user.User)

toClusterUser

public void toClusterUser(User source,
                          ClusterUser target)
Description copied from interface: UserDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterUser(), 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:
toClusterUser in interface UserDao
Overrides:
toClusterUser in class UserDaoBase
See Also:
UserDao.toClusterUser(fr.ifremer.allegro.administration.user.User, fr.ifremer.allegro.administration.user.generic.cluster.ClusterUser)

toClusterUser

public ClusterUser toClusterUser(User entity)
Description copied from interface: UserDao
Converts this DAO's entity to an object of type ClusterUser.

Specified by:
toClusterUser in interface UserDao
Overrides:
toClusterUser in class UserDaoBase
See Also:
UserDao.toClusterUser(fr.ifremer.allegro.administration.user.User)

clusterUserToEntity

public User clusterUserToEntity(ClusterUser clusterUser)
Description copied from interface: UserDao
Converts an instance of type ClusterUser to this DAO's entity.

See Also:
UserDao.clusterUserToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterUser)

clusterUserToEntity

public void clusterUserToEntity(ClusterUser source,
                                User target,
                                boolean copyIfNull)
Description copied from interface: UserDao
Copies the fields of ClusterUser to the specified entity.

Specified by:
clusterUserToEntity in interface UserDao
Overrides:
clusterUserToEntity in class UserDaoBase
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:
fr.ifremer.allegro.administration.user.UserDao#clusterUserToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterUser, fr.ifremer.allegro.administration.user.User)


Copyright © 2008-2010 IFREMER. All Rights Reserved.