fr.ifremer.allegro.referential.location
Class LocationDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.location.LocationDaoBase
          extended by fr.ifremer.allegro.referential.location.LocationDaoImpl
All Implemented Interfaces:
LocationDao

public class LocationDaoImpl
extends LocationDaoBase

See Also:
Location

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.location.LocationDao
TRANSFORM_CLUSTERLOCATION, TRANSFORM_NONE, TRANSFORM_REMOTELOCATIONFULLVO, TRANSFORM_REMOTELOCATIONNATURALID
 
Constructor Summary
LocationDaoImpl()
           
 
Method Summary
 Location clusterLocationToEntity(ClusterLocation clusterLocation)
          Converts an instance of type ClusterLocation to this DAO's entity.
 void clusterLocationToEntity(ClusterLocation source, Location target, boolean copyIfNull)
          Copies the fields of ClusterLocation to the specified entity.
protected  Location handleCreateFromClusterLocation(ClusterLocation clusterLocation)
          Performs the core logic for LocationDaoBase.createFromClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)
protected  ClusterLocation[] handleGetAllClusterLocationSinceDateSynchro(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 LocationDaoBase.getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Location remoteLocationFullVOToEntity(RemoteLocationFullVO remoteLocationFullVO)
          Converts an instance of type RemoteLocationFullVO to this DAO's entity.
 void remoteLocationFullVOToEntity(RemoteLocationFullVO source, Location target, boolean copyIfNull)
          Copies the fields of RemoteLocationFullVO to the specified entity.
 Location remoteLocationNaturalIdToEntity(RemoteLocationNaturalId remoteLocationNaturalId)
          Converts an instance of type RemoteLocationNaturalId to this DAO's entity.
 void remoteLocationNaturalIdToEntity(RemoteLocationNaturalId source, Location target, boolean copyIfNull)
          Copies the fields of RemoteLocationNaturalId to the specified entity.
 ClusterLocation toClusterLocation(Location entity)
          Converts this DAO's entity to an object of type ClusterLocation.
 void toClusterLocation(Location source, ClusterLocation target)
          Copies the fields of the specified entity to the target value object.
 RemoteLocationFullVO toRemoteLocationFullVO(Location entity)
          Converts this DAO's entity to an object of type RemoteLocationFullVO.
 void toRemoteLocationFullVO(Location source, RemoteLocationFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteLocationNaturalId toRemoteLocationNaturalId(Location entity)
          Converts this DAO's entity to an object of type RemoteLocationNaturalId.
 void toRemoteLocationNaturalId(Location source, RemoteLocationNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.referential.location.LocationDaoBase
clusterLocationToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterLocation, findLocationById, findLocationById, findLocationById, findLocationById, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationClassification, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByLocationLevel, findLocationByNaturalId, findLocationByNaturalId, findLocationByNaturalId, findLocationByNaturalId, findLocationByStatus, findLocationByStatus, findLocationByStatus, findLocationByStatus, findLocationByStatus, findLocationByStatus, findLocationByStatus, findLocationByStatus, getAllClusterLocationSinceDateSynchro, getAllLocation, getAllLocation, getAllLocation, getAllLocation, getAllLocation, getAllLocation, getAllLocation, getAllLocation, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getAllLocationSinceDateSynchro, getLocationAreaDao, getLocationClassificationDao, getLocationLevelDao, getLocationLineDao, getLocationPointDao, getPrincipal, getStatusDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteLocationFullVOToEntityCollection, remoteLocationNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setLocationAreaDao, setLocationClassificationDao, setLocationLevelDao, setLocationLineDao, setLocationPointDao, setStatusDao, toClusterLocation, toClusterLocationArray, toClusterLocationCollection, toEntity, toRemoteLocationFullVO, toRemoteLocationFullVOArray, toRemoteLocationFullVOCollection, toRemoteLocationNaturalId, toRemoteLocationNaturalIdArray, toRemoteLocationNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationDaoImpl

public LocationDaoImpl()
Method Detail

handleCreateFromClusterLocation

protected Location handleCreateFromClusterLocation(ClusterLocation clusterLocation)
Description copied from class: LocationDaoBase
Performs the core logic for LocationDaoBase.createFromClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)

Specified by:
handleCreateFromClusterLocation in class LocationDaoBase
See Also:
LocationDao.createFromClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)

handleGetAllClusterLocationSinceDateSynchro

protected ClusterLocation[] handleGetAllClusterLocationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                        java.lang.Integer userId,
                                                                        java.lang.Integer[] registrationLocationIds,
                                                                        java.lang.Integer pageNumber,
                                                                        java.lang.Integer pageSize)
Description copied from class: LocationDaoBase
Performs the core logic for LocationDaoBase.getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterLocationSinceDateSynchro in class LocationDaoBase
See Also:
LocationDao.getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteLocationFullVO

public void toRemoteLocationFullVO(Location source,
                                   RemoteLocationFullVO target)
Description copied from interface: LocationDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteLocationFullVO(), 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:
toRemoteLocationFullVO in interface LocationDao
Overrides:
toRemoteLocationFullVO in class LocationDaoBase
See Also:
LocationDao.toRemoteLocationFullVO(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

toRemoteLocationFullVO

public RemoteLocationFullVO toRemoteLocationFullVO(Location entity)
Description copied from interface: LocationDao
Converts this DAO's entity to an object of type RemoteLocationFullVO.

Specified by:
toRemoteLocationFullVO in interface LocationDao
Overrides:
toRemoteLocationFullVO in class LocationDaoBase
See Also:
LocationDao.toRemoteLocationFullVO(fr.ifremer.allegro.referential.location.Location)

remoteLocationFullVOToEntity

public Location remoteLocationFullVOToEntity(RemoteLocationFullVO remoteLocationFullVO)
Description copied from interface: LocationDao
Converts an instance of type RemoteLocationFullVO to this DAO's entity.

See Also:
LocationDao.remoteLocationFullVOToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)

remoteLocationFullVOToEntity

public void remoteLocationFullVOToEntity(RemoteLocationFullVO source,
                                         Location target,
                                         boolean copyIfNull)
Description copied from interface: LocationDao
Copies the fields of RemoteLocationFullVO to the specified entity.

Specified by:
remoteLocationFullVOToEntity in interface LocationDao
Overrides:
remoteLocationFullVOToEntity in class LocationDaoBase
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.location.LocationDao#remoteLocationFullVOToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.Location)

toRemoteLocationNaturalId

public void toRemoteLocationNaturalId(Location source,
                                      RemoteLocationNaturalId target)
Description copied from interface: LocationDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteLocationNaturalId(), 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:
toRemoteLocationNaturalId in interface LocationDao
Overrides:
toRemoteLocationNaturalId in class LocationDaoBase
See Also:
LocationDao.toRemoteLocationNaturalId(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId)

toRemoteLocationNaturalId

public RemoteLocationNaturalId toRemoteLocationNaturalId(Location entity)
Description copied from interface: LocationDao
Converts this DAO's entity to an object of type RemoteLocationNaturalId.

Specified by:
toRemoteLocationNaturalId in interface LocationDao
Overrides:
toRemoteLocationNaturalId in class LocationDaoBase
See Also:
LocationDao.toRemoteLocationNaturalId(fr.ifremer.allegro.referential.location.Location)

remoteLocationNaturalIdToEntity

public Location remoteLocationNaturalIdToEntity(RemoteLocationNaturalId remoteLocationNaturalId)
Description copied from interface: LocationDao
Converts an instance of type RemoteLocationNaturalId to this DAO's entity.

See Also:
LocationDao.remoteLocationNaturalIdToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId)

remoteLocationNaturalIdToEntity

public void remoteLocationNaturalIdToEntity(RemoteLocationNaturalId source,
                                            Location target,
                                            boolean copyIfNull)
Description copied from interface: LocationDao
Copies the fields of RemoteLocationNaturalId to the specified entity.

Specified by:
remoteLocationNaturalIdToEntity in interface LocationDao
Overrides:
remoteLocationNaturalIdToEntity in class LocationDaoBase
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.location.LocationDao#remoteLocationNaturalIdToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId, fr.ifremer.allegro.referential.location.Location)

toClusterLocation

public void toClusterLocation(Location source,
                              ClusterLocation target)
Description copied from interface: LocationDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterLocation(), 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:
toClusterLocation in interface LocationDao
Overrides:
toClusterLocation in class LocationDaoBase
See Also:
LocationDao.toClusterLocation(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)

toClusterLocation

public ClusterLocation toClusterLocation(Location entity)
Description copied from interface: LocationDao
Converts this DAO's entity to an object of type ClusterLocation.

Specified by:
toClusterLocation in interface LocationDao
Overrides:
toClusterLocation in class LocationDaoBase
See Also:
LocationDao.toClusterLocation(fr.ifremer.allegro.referential.location.Location)

clusterLocationToEntity

public Location clusterLocationToEntity(ClusterLocation clusterLocation)
Description copied from interface: LocationDao
Converts an instance of type ClusterLocation to this DAO's entity.

See Also:
LocationDao.clusterLocationToEntity(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)

clusterLocationToEntity

public void clusterLocationToEntity(ClusterLocation source,
                                    Location target,
                                    boolean copyIfNull)
Description copied from interface: LocationDao
Copies the fields of ClusterLocation to the specified entity.

Specified by:
clusterLocationToEntity in interface LocationDao
Overrides:
clusterLocationToEntity in class LocationDaoBase
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.location.LocationDao#clusterLocationToEntity(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation, fr.ifremer.allegro.referential.location.Location)


Copyright © 2008-2010 IFREMER. All Rights Reserved.