fr.ifremer.allegro.administration.user
Class PersonDaoImpl

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
All Implemented Interfaces:
PersonDao
Direct Known Subclasses:
UserDaoBase

public class PersonDaoImpl
extends PersonDaoBase

See Also:
Person

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.PersonDao
TRANSFORM_CLUSTERPERSON, TRANSFORM_NONE, TRANSFORM_REMOTEPERSONFULLVO, TRANSFORM_REMOTEPERSONNATURALID
 
Constructor Summary
PersonDaoImpl()
           
 
Method Summary
 Person clusterPersonToEntity(ClusterPerson clusterPerson)
          Converts an instance of type ClusterPerson to this DAO's entity.
 void clusterPersonToEntity(ClusterPerson source, Person target, boolean copyIfNull)
          Copies the fields of ClusterPerson to the specified entity.
protected  Person handleCreateFromClusterPerson(ClusterPerson clusterPerson)
          Performs the core logic for PersonDaoBase.createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)
protected  ClusterPerson[] handleGetAllClusterPersonSinceDateSynchro(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 PersonDaoBase.getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Person remotePersonFullVOToEntity(RemotePersonFullVO remotePersonFullVO)
          Converts an instance of type RemotePersonFullVO to this DAO's entity.
 void remotePersonFullVOToEntity(RemotePersonFullVO source, Person target, boolean copyIfNull)
          Copies the fields of RemotePersonFullVO to the specified entity.
 Person remotePersonNaturalIdToEntity(RemotePersonNaturalId remotePersonNaturalId)
          Converts an instance of type RemotePersonNaturalId to this DAO's entity.
 void remotePersonNaturalIdToEntity(RemotePersonNaturalId source, Person target, boolean copyIfNull)
          Copies the fields of RemotePersonNaturalId to the specified entity.
 ClusterPerson toClusterPerson(Person entity)
          Converts this DAO's entity to an object of type ClusterPerson.
 void toClusterPerson(Person source, ClusterPerson target)
          Copies the fields of the specified entity to the target value object.
 RemotePersonFullVO toRemotePersonFullVO(Person entity)
          Converts this DAO's entity to an object of type RemotePersonFullVO.
 void toRemotePersonFullVO(Person source, RemotePersonFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemotePersonNaturalId toRemotePersonNaturalId(Person entity)
          Converts this DAO's entity to an object of type RemotePersonNaturalId.
 void toRemotePersonNaturalId(Person source, RemotePersonNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.administration.user.PersonDaoBase
clusterPersonToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterPerson, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonById, findPersonById, findPersonById, findPersonById, findPersonByNaturalId, findPersonByNaturalId, findPersonByNaturalId, findPersonByNaturalId, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, getAgeReaderQualificationDao, getAllClusterPersonSinceDateSynchro, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getDepartmentDao, getPrincipal, getProgram2PersonDao, getStatusDao, load, load, loadAll, loadAll, loadAll, loadAll, remotePersonFullVOToEntityCollection, remotePersonNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setAgeReaderQualificationDao, setDepartmentDao, setProgram2PersonDao, setStatusDao, toClusterPerson, toClusterPersonArray, toClusterPersonCollection, toEntity, toRemotePersonFullVO, toRemotePersonFullVOArray, toRemotePersonFullVOCollection, toRemotePersonNaturalId, toRemotePersonNaturalIdArray, toRemotePersonNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonDaoImpl

public PersonDaoImpl()
Method Detail

handleCreateFromClusterPerson

protected Person handleCreateFromClusterPerson(ClusterPerson clusterPerson)
Description copied from class: PersonDaoBase
Performs the core logic for PersonDaoBase.createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

Specified by:
handleCreateFromClusterPerson in class PersonDaoBase
See Also:
PersonDao.createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

handleGetAllClusterPersonSinceDateSynchro

protected ClusterPerson[] handleGetAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                    java.lang.Integer userId,
                                                                    java.lang.Integer[] registrationLocationIds,
                                                                    java.lang.Integer pageNumber,
                                                                    java.lang.Integer pageSize)
Description copied from class: PersonDaoBase
Performs the core logic for PersonDaoBase.getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterPersonSinceDateSynchro in class PersonDaoBase
See Also:
PersonDao.getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemotePersonFullVO

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

toRemotePersonFullVO

public RemotePersonFullVO toRemotePersonFullVO(Person entity)
Description copied from interface: PersonDao
Converts this DAO's entity to an object of type RemotePersonFullVO.

Specified by:
toRemotePersonFullVO in interface PersonDao
Overrides:
toRemotePersonFullVO in class PersonDaoBase
See Also:
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person)

remotePersonFullVOToEntity

public Person remotePersonFullVOToEntity(RemotePersonFullVO remotePersonFullVO)
Description copied from interface: PersonDao
Converts an instance of type RemotePersonFullVO to this DAO's entity.

See Also:
PersonDao.remotePersonFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

remotePersonFullVOToEntity

public void remotePersonFullVOToEntity(RemotePersonFullVO source,
                                       Person target,
                                       boolean copyIfNull)
Description copied from interface: PersonDao
Copies the fields of RemotePersonFullVO to the specified entity.

Specified by:
remotePersonFullVOToEntity in interface PersonDao
Overrides:
remotePersonFullVOToEntity in class PersonDaoBase
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.PersonDao#remotePersonFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.Person)

toRemotePersonNaturalId

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

toRemotePersonNaturalId

public RemotePersonNaturalId toRemotePersonNaturalId(Person entity)
Description copied from interface: PersonDao
Converts this DAO's entity to an object of type RemotePersonNaturalId.

Specified by:
toRemotePersonNaturalId in interface PersonDao
Overrides:
toRemotePersonNaturalId in class PersonDaoBase
See Also:
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person)

remotePersonNaturalIdToEntity

public Person remotePersonNaturalIdToEntity(RemotePersonNaturalId remotePersonNaturalId)
Description copied from interface: PersonDao
Converts an instance of type RemotePersonNaturalId to this DAO's entity.

See Also:
PersonDao.remotePersonNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId)

remotePersonNaturalIdToEntity

public void remotePersonNaturalIdToEntity(RemotePersonNaturalId source,
                                          Person target,
                                          boolean copyIfNull)
Description copied from interface: PersonDao
Copies the fields of RemotePersonNaturalId to the specified entity.

Specified by:
remotePersonNaturalIdToEntity in interface PersonDao
Overrides:
remotePersonNaturalIdToEntity in class PersonDaoBase
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.PersonDao#remotePersonNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId, fr.ifremer.allegro.administration.user.Person)

toClusterPerson

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

toClusterPerson

public ClusterPerson toClusterPerson(Person entity)
Description copied from interface: PersonDao
Converts this DAO's entity to an object of type ClusterPerson.

Specified by:
toClusterPerson in interface PersonDao
Overrides:
toClusterPerson in class PersonDaoBase
See Also:
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person)

clusterPersonToEntity

public Person clusterPersonToEntity(ClusterPerson clusterPerson)
Description copied from interface: PersonDao
Converts an instance of type ClusterPerson to this DAO's entity.

See Also:
PersonDao.clusterPersonToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

clusterPersonToEntity

public void clusterPersonToEntity(ClusterPerson source,
                                  Person target,
                                  boolean copyIfNull)
Description copied from interface: PersonDao
Copies the fields of ClusterPerson to the specified entity.

Specified by:
clusterPersonToEntity in interface PersonDao
Overrides:
clusterPersonToEntity in class PersonDaoBase
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.PersonDao#clusterPersonToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson, fr.ifremer.allegro.administration.user.Person)


Copyright © 2008-2010 IFREMER. All Rights Reserved.