fr.ifremer.allegro.administration.user
Class DepartmentDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.administration.user.DepartmentDaoBase
          extended by fr.ifremer.allegro.administration.user.DepartmentDaoImpl
All Implemented Interfaces:
DepartmentDao

public class DepartmentDaoImpl
extends DepartmentDaoBase

See Also:
Department

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.DepartmentDao
TRANSFORM_CLUSTERDEPARTMENT, TRANSFORM_NONE, TRANSFORM_REMOTEDEPARTMENTFULLVO, TRANSFORM_REMOTEDEPARTMENTNATURALID
 
Constructor Summary
DepartmentDaoImpl()
           
 
Method Summary
 Department clusterDepartmentToEntity(ClusterDepartment clusterDepartment)
          Converts an instance of type ClusterDepartment to this DAO's entity.
 void clusterDepartmentToEntity(ClusterDepartment source, Department target, boolean copyIfNull)
          Copies the fields of ClusterDepartment to the specified entity.
protected  Department handleCreateFromClusterDepartment(ClusterDepartment clusterDepartment)
          Performs the core logic for DepartmentDaoBase.createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)
protected  ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(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 DepartmentDaoBase.getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Department remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO remoteDepartmentFullVO)
          Converts an instance of type RemoteDepartmentFullVO to this DAO's entity.
 void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source, Department target, boolean copyIfNull)
          Copies the fields of RemoteDepartmentFullVO to the specified entity.
 Department remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId remoteDepartmentNaturalId)
          Converts an instance of type RemoteDepartmentNaturalId to this DAO's entity.
 void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source, Department target, boolean copyIfNull)
          Copies the fields of RemoteDepartmentNaturalId to the specified entity.
 ClusterDepartment toClusterDepartment(Department entity)
          Converts this DAO's entity to an object of type ClusterDepartment.
 void toClusterDepartment(Department source, ClusterDepartment target)
          Copies the fields of the specified entity to the target value object.
 RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
          Converts this DAO's entity to an object of type RemoteDepartmentFullVO.
 void toRemoteDepartmentFullVO(Department source, RemoteDepartmentFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
          Converts this DAO's entity to an object of type RemoteDepartmentNaturalId.
 void toRemoteDepartmentNaturalId(Department source, RemoteDepartmentNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.administration.user.DepartmentDaoBase
clusterDepartmentToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterDepartment, findDepartmentById, findDepartmentById, findDepartmentById, findDepartmentById, findDepartmentByNaturalId, findDepartmentByNaturalId, findDepartmentByNaturalId, findDepartmentByNaturalId, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByParentDepartment, findDepartmentByStatus, findDepartmentByStatus, findDepartmentByStatus, findDepartmentByStatus, findDepartmentByStatus, findDepartmentByStatus, findDepartmentByStatus, findDepartmentByStatus, getAllClusterDepartmentSinceDateSynchro, getAllDepartment, getAllDepartment, getAllDepartment, getAllDepartment, getAllDepartment, getAllDepartment, getAllDepartment, getAllDepartment, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getAllDepartmentSinceDateSynchro, getDepartmentDao, getDepartmentPrivilegeTransfertDao, getPrincipal, getProgram2DepartmentDao, getStatusDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteDepartmentFullVOToEntityCollection, remoteDepartmentNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setDepartmentDao, setDepartmentPrivilegeTransfertDao, setProgram2DepartmentDao, setStatusDao, toClusterDepartment, toClusterDepartmentArray, toClusterDepartmentCollection, toEntity, toRemoteDepartmentFullVO, toRemoteDepartmentFullVOArray, toRemoteDepartmentFullVOCollection, toRemoteDepartmentNaturalId, toRemoteDepartmentNaturalIdArray, toRemoteDepartmentNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepartmentDaoImpl

public DepartmentDaoImpl()
Method Detail

handleCreateFromClusterDepartment

protected Department handleCreateFromClusterDepartment(ClusterDepartment clusterDepartment)
Description copied from class: DepartmentDaoBase
Performs the core logic for DepartmentDaoBase.createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

Specified by:
handleCreateFromClusterDepartment in class DepartmentDaoBase
See Also:
DepartmentDao.createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

handleGetAllClusterDepartmentSinceDateSynchro

protected ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                            java.lang.Integer userId,
                                                                            java.lang.Integer[] registrationLocationIds,
                                                                            java.lang.Integer pageNumber,
                                                                            java.lang.Integer pageSize)
Description copied from class: DepartmentDaoBase
Performs the core logic for DepartmentDaoBase.getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterDepartmentSinceDateSynchro in class DepartmentDaoBase
See Also:
DepartmentDao.getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteDepartmentFullVO

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

toRemoteDepartmentFullVO

public RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
Description copied from interface: DepartmentDao
Converts this DAO's entity to an object of type RemoteDepartmentFullVO.

Specified by:
toRemoteDepartmentFullVO in interface DepartmentDao
Overrides:
toRemoteDepartmentFullVO in class DepartmentDaoBase
See Also:
DepartmentDao.toRemoteDepartmentFullVO(fr.ifremer.allegro.administration.user.Department)

remoteDepartmentFullVOToEntity

public Department remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO remoteDepartmentFullVO)
Description copied from interface: DepartmentDao
Converts an instance of type RemoteDepartmentFullVO to this DAO's entity.

See Also:
DepartmentDao.remoteDepartmentFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

remoteDepartmentFullVOToEntity

public void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source,
                                           Department target,
                                           boolean copyIfNull)
Description copied from interface: DepartmentDao
Copies the fields of RemoteDepartmentFullVO to the specified entity.

Specified by:
remoteDepartmentFullVOToEntity in interface DepartmentDao
Overrides:
remoteDepartmentFullVOToEntity in class DepartmentDaoBase
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.DepartmentDao#remoteDepartmentFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.Department)

toRemoteDepartmentNaturalId

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

toRemoteDepartmentNaturalId

public RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
Description copied from interface: DepartmentDao
Converts this DAO's entity to an object of type RemoteDepartmentNaturalId.

Specified by:
toRemoteDepartmentNaturalId in interface DepartmentDao
Overrides:
toRemoteDepartmentNaturalId in class DepartmentDaoBase
See Also:
DepartmentDao.toRemoteDepartmentNaturalId(fr.ifremer.allegro.administration.user.Department)

remoteDepartmentNaturalIdToEntity

public Department remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId remoteDepartmentNaturalId)
Description copied from interface: DepartmentDao
Converts an instance of type RemoteDepartmentNaturalId to this DAO's entity.

See Also:
DepartmentDao.remoteDepartmentNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId)

remoteDepartmentNaturalIdToEntity

public void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source,
                                              Department target,
                                              boolean copyIfNull)
Description copied from interface: DepartmentDao
Copies the fields of RemoteDepartmentNaturalId to the specified entity.

Specified by:
remoteDepartmentNaturalIdToEntity in interface DepartmentDao
Overrides:
remoteDepartmentNaturalIdToEntity in class DepartmentDaoBase
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.DepartmentDao#remoteDepartmentNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId, fr.ifremer.allegro.administration.user.Department)

toClusterDepartment

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

toClusterDepartment

public ClusterDepartment toClusterDepartment(Department entity)
Description copied from interface: DepartmentDao
Converts this DAO's entity to an object of type ClusterDepartment.

Specified by:
toClusterDepartment in interface DepartmentDao
Overrides:
toClusterDepartment in class DepartmentDaoBase
See Also:
DepartmentDao.toClusterDepartment(fr.ifremer.allegro.administration.user.Department)

clusterDepartmentToEntity

public Department clusterDepartmentToEntity(ClusterDepartment clusterDepartment)
Description copied from interface: DepartmentDao
Converts an instance of type ClusterDepartment to this DAO's entity.

See Also:
DepartmentDao.clusterDepartmentToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

clusterDepartmentToEntity

public void clusterDepartmentToEntity(ClusterDepartment source,
                                      Department target,
                                      boolean copyIfNull)
Description copied from interface: DepartmentDao
Copies the fields of ClusterDepartment to the specified entity.

Specified by:
clusterDepartmentToEntity in interface DepartmentDao
Overrides:
clusterDepartmentToEntity in class DepartmentDaoBase
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.DepartmentDao#clusterDepartmentToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment, fr.ifremer.allegro.administration.user.Department)


Copyright © 2008-2010 IFREMER. All Rights Reserved.