fr.ifremer.allegro.referential.pmfm
Class UnitDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.pmfm.UnitDaoBase
          extended by fr.ifremer.allegro.referential.pmfm.UnitDaoImpl
All Implemented Interfaces:
UnitDao

public class UnitDaoImpl
extends UnitDaoBase

See Also:
Unit

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.pmfm.UnitDao
TRANSFORM_CLUSTERUNIT, TRANSFORM_NONE, TRANSFORM_REMOTEUNITFULLVO, TRANSFORM_REMOTEUNITNATURALID
 
Constructor Summary
UnitDaoImpl()
           
 
Method Summary
 Unit clusterUnitToEntity(ClusterUnit clusterUnit)
          Converts an instance of type ClusterUnit to this DAO's entity.
 void clusterUnitToEntity(ClusterUnit source, Unit target, boolean copyIfNull)
          Copies the fields of ClusterUnit to the specified entity.
protected  Unit handleCreateFromClusterUnit(ClusterUnit clusterUnit)
          Performs the core logic for UnitDaoBase.createFromClusterUnit(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)
protected  ClusterUnit[] handleGetAllClusterUnitSinceDateSynchro(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 UnitDaoBase.getAllClusterUnitSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Unit remoteUnitFullVOToEntity(RemoteUnitFullVO remoteUnitFullVO)
          Converts an instance of type RemoteUnitFullVO to this DAO's entity.
 void remoteUnitFullVOToEntity(RemoteUnitFullVO source, Unit target, boolean copyIfNull)
          Copies the fields of RemoteUnitFullVO to the specified entity.
 Unit remoteUnitNaturalIdToEntity(RemoteUnitNaturalId remoteUnitNaturalId)
          Converts an instance of type RemoteUnitNaturalId to this DAO's entity.
 void remoteUnitNaturalIdToEntity(RemoteUnitNaturalId source, Unit target, boolean copyIfNull)
          Copies the fields of RemoteUnitNaturalId to the specified entity.
 ClusterUnit toClusterUnit(Unit entity)
          Converts this DAO's entity to an object of type ClusterUnit.
 void toClusterUnit(Unit source, ClusterUnit target)
          Copies the fields of the specified entity to the target value object.
 RemoteUnitFullVO toRemoteUnitFullVO(Unit entity)
          Converts this DAO's entity to an object of type RemoteUnitFullVO.
 void toRemoteUnitFullVO(Unit source, RemoteUnitFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteUnitNaturalId toRemoteUnitNaturalId(Unit entity)
          Converts this DAO's entity to an object of type RemoteUnitNaturalId.
 void toRemoteUnitNaturalId(Unit source, RemoteUnitNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.referential.pmfm.UnitDaoBase
clusterUnitToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterUnit, findUnitById, findUnitById, findUnitById, findUnitById, findUnitByNaturalId, findUnitByNaturalId, findUnitByNaturalId, findUnitByNaturalId, findUnitByStatus, findUnitByStatus, findUnitByStatus, findUnitByStatus, findUnitByStatus, findUnitByStatus, findUnitByStatus, findUnitByStatus, getAllClusterUnitSinceDateSynchro, getAllUnit, getAllUnit, getAllUnit, getAllUnit, getAllUnit, getAllUnit, getAllUnit, getAllUnit, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getAllUnitSinceDateSynchro, getPrincipal, getStatusDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteUnitFullVOToEntityCollection, remoteUnitNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setStatusDao, toClusterUnit, toClusterUnitArray, toClusterUnitCollection, toEntity, toRemoteUnitFullVO, toRemoteUnitFullVOArray, toRemoteUnitFullVOCollection, toRemoteUnitNaturalId, toRemoteUnitNaturalIdArray, toRemoteUnitNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitDaoImpl

public UnitDaoImpl()
Method Detail

handleCreateFromClusterUnit

protected Unit handleCreateFromClusterUnit(ClusterUnit clusterUnit)
Description copied from class: UnitDaoBase
Performs the core logic for UnitDaoBase.createFromClusterUnit(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)

Specified by:
handleCreateFromClusterUnit in class UnitDaoBase
See Also:
UnitDao.createFromClusterUnit(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)

handleGetAllClusterUnitSinceDateSynchro

protected ClusterUnit[] handleGetAllClusterUnitSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                java.lang.Integer userId,
                                                                java.lang.Integer[] registrationLocationIds,
                                                                java.lang.Integer pageNumber,
                                                                java.lang.Integer pageSize)
Description copied from class: UnitDaoBase
Performs the core logic for UnitDaoBase.getAllClusterUnitSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterUnitSinceDateSynchro in class UnitDaoBase
See Also:
UnitDao.getAllClusterUnitSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteUnitFullVO

public void toRemoteUnitFullVO(Unit source,
                               RemoteUnitFullVO target)
Description copied from interface: UnitDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteUnitFullVO(), 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:
toRemoteUnitFullVO in interface UnitDao
Overrides:
toRemoteUnitFullVO in class UnitDaoBase
See Also:
UnitDao.toRemoteUnitFullVO(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

toRemoteUnitFullVO

public RemoteUnitFullVO toRemoteUnitFullVO(Unit entity)
Description copied from interface: UnitDao
Converts this DAO's entity to an object of type RemoteUnitFullVO.

Specified by:
toRemoteUnitFullVO in interface UnitDao
Overrides:
toRemoteUnitFullVO in class UnitDaoBase
See Also:
UnitDao.toRemoteUnitFullVO(fr.ifremer.allegro.referential.pmfm.Unit)

remoteUnitFullVOToEntity

public Unit remoteUnitFullVOToEntity(RemoteUnitFullVO remoteUnitFullVO)
Description copied from interface: UnitDao
Converts an instance of type RemoteUnitFullVO to this DAO's entity.

See Also:
UnitDao.remoteUnitFullVOToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

remoteUnitFullVOToEntity

public void remoteUnitFullVOToEntity(RemoteUnitFullVO source,
                                     Unit target,
                                     boolean copyIfNull)
Description copied from interface: UnitDao
Copies the fields of RemoteUnitFullVO to the specified entity.

Specified by:
remoteUnitFullVOToEntity in interface UnitDao
Overrides:
remoteUnitFullVOToEntity in class UnitDaoBase
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.referential.pmfm.UnitDao#remoteUnitFullVOToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.Unit)

toRemoteUnitNaturalId

public void toRemoteUnitNaturalId(Unit source,
                                  RemoteUnitNaturalId target)
Description copied from interface: UnitDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteUnitNaturalId(), 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:
toRemoteUnitNaturalId in interface UnitDao
Overrides:
toRemoteUnitNaturalId in class UnitDaoBase
See Also:
UnitDao.toRemoteUnitNaturalId(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitNaturalId)

toRemoteUnitNaturalId

public RemoteUnitNaturalId toRemoteUnitNaturalId(Unit entity)
Description copied from interface: UnitDao
Converts this DAO's entity to an object of type RemoteUnitNaturalId.

Specified by:
toRemoteUnitNaturalId in interface UnitDao
Overrides:
toRemoteUnitNaturalId in class UnitDaoBase
See Also:
UnitDao.toRemoteUnitNaturalId(fr.ifremer.allegro.referential.pmfm.Unit)

remoteUnitNaturalIdToEntity

public Unit remoteUnitNaturalIdToEntity(RemoteUnitNaturalId remoteUnitNaturalId)
Description copied from interface: UnitDao
Converts an instance of type RemoteUnitNaturalId to this DAO's entity.

See Also:
UnitDao.remoteUnitNaturalIdToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitNaturalId)

remoteUnitNaturalIdToEntity

public void remoteUnitNaturalIdToEntity(RemoteUnitNaturalId source,
                                        Unit target,
                                        boolean copyIfNull)
Description copied from interface: UnitDao
Copies the fields of RemoteUnitNaturalId to the specified entity.

Specified by:
remoteUnitNaturalIdToEntity in interface UnitDao
Overrides:
remoteUnitNaturalIdToEntity in class UnitDaoBase
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.referential.pmfm.UnitDao#remoteUnitNaturalIdToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitNaturalId, fr.ifremer.allegro.referential.pmfm.Unit)

toClusterUnit

public void toClusterUnit(Unit source,
                          ClusterUnit target)
Description copied from interface: UnitDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterUnit(), 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:
toClusterUnit in interface UnitDao
Overrides:
toClusterUnit in class UnitDaoBase
See Also:
UnitDao.toClusterUnit(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)

toClusterUnit

public ClusterUnit toClusterUnit(Unit entity)
Description copied from interface: UnitDao
Converts this DAO's entity to an object of type ClusterUnit.

Specified by:
toClusterUnit in interface UnitDao
Overrides:
toClusterUnit in class UnitDaoBase
See Also:
UnitDao.toClusterUnit(fr.ifremer.allegro.referential.pmfm.Unit)

clusterUnitToEntity

public Unit clusterUnitToEntity(ClusterUnit clusterUnit)
Description copied from interface: UnitDao
Converts an instance of type ClusterUnit to this DAO's entity.

See Also:
UnitDao.clusterUnitToEntity(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)

clusterUnitToEntity

public void clusterUnitToEntity(ClusterUnit source,
                                Unit target,
                                boolean copyIfNull)
Description copied from interface: UnitDao
Copies the fields of ClusterUnit to the specified entity.

Specified by:
clusterUnitToEntity in interface UnitDao
Overrides:
clusterUnitToEntity in class UnitDaoBase
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.referential.pmfm.UnitDao#clusterUnitToEntity(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit, fr.ifremer.allegro.referential.pmfm.Unit)


Copyright © 2008-2010 IFREMER. All Rights Reserved.