fr.ifremer.allegro.data.measure.photo
Class PhotoDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.measure.photo.PhotoDaoBase
          extended by fr.ifremer.allegro.data.measure.photo.PhotoDaoImpl
All Implemented Interfaces:
PhotoDao

public class PhotoDaoImpl
extends PhotoDaoBase

See Also:
Photo

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.measure.photo.PhotoDao
TRANSFORM_CLUSTERPHOTO, TRANSFORM_NONE, TRANSFORM_REMOTEPHOTOFULLVO, TRANSFORM_REMOTEPHOTONATURALID
 
Constructor Summary
PhotoDaoImpl()
           
 
Method Summary
 Photo clusterPhotoToEntity(ClusterPhoto clusterPhoto)
          Converts an instance of type ClusterPhoto to this DAO's entity.
 void clusterPhotoToEntity(ClusterPhoto source, Photo target, boolean copyIfNull)
          Copies the fields of ClusterPhoto to the specified entity.
protected  Photo handleCreateFromClusterPhoto(ClusterPhoto clusterPhoto)
          Performs the core logic for PhotoDaoBase.createFromClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)
protected  ClusterPhoto[] handleGetAllClusterPhotoSinceDateSynchro(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 PhotoDaoBase.getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Photo remotePhotoFullVOToEntity(RemotePhotoFullVO remotePhotoFullVO)
          Converts an instance of type RemotePhotoFullVO to this DAO's entity.
 void remotePhotoFullVOToEntity(RemotePhotoFullVO source, Photo target, boolean copyIfNull)
          Copies the fields of RemotePhotoFullVO to the specified entity.
 Photo remotePhotoNaturalIdToEntity(RemotePhotoNaturalId remotePhotoNaturalId)
          Converts an instance of type RemotePhotoNaturalId to this DAO's entity.
 void remotePhotoNaturalIdToEntity(RemotePhotoNaturalId source, Photo target, boolean copyIfNull)
          Copies the fields of RemotePhotoNaturalId to the specified entity.
 ClusterPhoto toClusterPhoto(Photo entity)
          Converts this DAO's entity to an object of type ClusterPhoto.
 void toClusterPhoto(Photo source, ClusterPhoto target)
          Copies the fields of the specified entity to the target value object.
 RemotePhotoFullVO toRemotePhotoFullVO(Photo entity)
          Converts this DAO's entity to an object of type RemotePhotoFullVO.
 void toRemotePhotoFullVO(Photo source, RemotePhotoFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemotePhotoNaturalId toRemotePhotoNaturalId(Photo entity)
          Converts this DAO's entity to an object of type RemotePhotoNaturalId.
 void toRemotePhotoNaturalId(Photo source, RemotePhotoNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.data.measure.photo.PhotoDaoBase
clusterPhotoToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterPhoto, findPhotoByDepartment, findPhotoByDepartment, findPhotoByDepartment, findPhotoByDepartment, findPhotoByDepartment, findPhotoByDepartment, findPhotoByDepartment, findPhotoByDepartment, findPhotoById, findPhotoById, findPhotoById, findPhotoById, findPhotoByNaturalId, findPhotoByNaturalId, findPhotoByNaturalId, findPhotoByNaturalId, findPhotoByObjectType, findPhotoByObjectType, findPhotoByObjectType, findPhotoByObjectType, findPhotoByObjectType, findPhotoByObjectType, findPhotoByObjectType, findPhotoByObjectType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByPhotoType, findPhotoByQualityFlag, findPhotoByQualityFlag, findPhotoByQualityFlag, findPhotoByQualityFlag, findPhotoByQualityFlag, findPhotoByQualityFlag, findPhotoByQualityFlag, findPhotoByQualityFlag, getAllClusterPhotoSinceDateSynchro, getAllPhoto, getAllPhoto, getAllPhoto, getAllPhoto, getAllPhoto, getAllPhoto, getAllPhoto, getAllPhoto, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getAllPhotoSinceDateSynchro, getDepartmentDao, getObjectTypeDao, getPhotoTypeDao, getPrincipal, getQualityFlagDao, load, load, loadAll, loadAll, loadAll, loadAll, remotePhotoFullVOToEntityCollection, remotePhotoNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setDepartmentDao, setObjectTypeDao, setPhotoTypeDao, setQualityFlagDao, toClusterPhoto, toClusterPhotoArray, toClusterPhotoCollection, toEntity, toRemotePhotoFullVO, toRemotePhotoFullVOArray, toRemotePhotoFullVOCollection, toRemotePhotoNaturalId, toRemotePhotoNaturalIdArray, toRemotePhotoNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhotoDaoImpl

public PhotoDaoImpl()
Method Detail

handleCreateFromClusterPhoto

protected Photo handleCreateFromClusterPhoto(ClusterPhoto clusterPhoto)
Description copied from class: PhotoDaoBase
Performs the core logic for PhotoDaoBase.createFromClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

Specified by:
handleCreateFromClusterPhoto in class PhotoDaoBase
See Also:
PhotoDao.createFromClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

handleGetAllClusterPhotoSinceDateSynchro

protected ClusterPhoto[] handleGetAllClusterPhotoSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                  java.lang.Integer userId,
                                                                  java.lang.Integer[] registrationLocationIds,
                                                                  java.lang.Integer pageNumber,
                                                                  java.lang.Integer pageSize)
Description copied from class: PhotoDaoBase
Performs the core logic for PhotoDaoBase.getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterPhotoSinceDateSynchro in class PhotoDaoBase
See Also:
PhotoDao.getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemotePhotoFullVO

public void toRemotePhotoFullVO(Photo source,
                                RemotePhotoFullVO target)
Description copied from interface: PhotoDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemotePhotoFullVO(), 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:
toRemotePhotoFullVO in interface PhotoDao
Overrides:
toRemotePhotoFullVO in class PhotoDaoBase
See Also:
PhotoDao.toRemotePhotoFullVO(fr.ifremer.allegro.data.measure.photo.Photo, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

toRemotePhotoFullVO

public RemotePhotoFullVO toRemotePhotoFullVO(Photo entity)
Description copied from interface: PhotoDao
Converts this DAO's entity to an object of type RemotePhotoFullVO.

Specified by:
toRemotePhotoFullVO in interface PhotoDao
Overrides:
toRemotePhotoFullVO in class PhotoDaoBase
See Also:
PhotoDao.toRemotePhotoFullVO(fr.ifremer.allegro.data.measure.photo.Photo)

remotePhotoFullVOToEntity

public Photo remotePhotoFullVOToEntity(RemotePhotoFullVO remotePhotoFullVO)
Description copied from interface: PhotoDao
Converts an instance of type RemotePhotoFullVO to this DAO's entity.

See Also:
PhotoDao.remotePhotoFullVOToEntity(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

remotePhotoFullVOToEntity

public void remotePhotoFullVOToEntity(RemotePhotoFullVO source,
                                      Photo target,
                                      boolean copyIfNull)
Description copied from interface: PhotoDao
Copies the fields of RemotePhotoFullVO to the specified entity.

Specified by:
remotePhotoFullVOToEntity in interface PhotoDao
Overrides:
remotePhotoFullVOToEntity in class PhotoDaoBase
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.data.measure.photo.PhotoDao#remotePhotoFullVOToEntity(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.Photo)

toRemotePhotoNaturalId

public void toRemotePhotoNaturalId(Photo source,
                                   RemotePhotoNaturalId target)
Description copied from interface: PhotoDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemotePhotoNaturalId(), 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:
toRemotePhotoNaturalId in interface PhotoDao
Overrides:
toRemotePhotoNaturalId in class PhotoDaoBase
See Also:
PhotoDao.toRemotePhotoNaturalId(fr.ifremer.allegro.data.measure.photo.Photo, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoNaturalId)

toRemotePhotoNaturalId

public RemotePhotoNaturalId toRemotePhotoNaturalId(Photo entity)
Description copied from interface: PhotoDao
Converts this DAO's entity to an object of type RemotePhotoNaturalId.

Specified by:
toRemotePhotoNaturalId in interface PhotoDao
Overrides:
toRemotePhotoNaturalId in class PhotoDaoBase
See Also:
PhotoDao.toRemotePhotoNaturalId(fr.ifremer.allegro.data.measure.photo.Photo)

remotePhotoNaturalIdToEntity

public Photo remotePhotoNaturalIdToEntity(RemotePhotoNaturalId remotePhotoNaturalId)
Description copied from interface: PhotoDao
Converts an instance of type RemotePhotoNaturalId to this DAO's entity.

See Also:
PhotoDao.remotePhotoNaturalIdToEntity(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoNaturalId)

remotePhotoNaturalIdToEntity

public void remotePhotoNaturalIdToEntity(RemotePhotoNaturalId source,
                                         Photo target,
                                         boolean copyIfNull)
Description copied from interface: PhotoDao
Copies the fields of RemotePhotoNaturalId to the specified entity.

Specified by:
remotePhotoNaturalIdToEntity in interface PhotoDao
Overrides:
remotePhotoNaturalIdToEntity in class PhotoDaoBase
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.data.measure.photo.PhotoDao#remotePhotoNaturalIdToEntity(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoNaturalId, fr.ifremer.allegro.data.measure.photo.Photo)

toClusterPhoto

public void toClusterPhoto(Photo source,
                           ClusterPhoto target)
Description copied from interface: PhotoDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterPhoto(), 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:
toClusterPhoto in interface PhotoDao
Overrides:
toClusterPhoto in class PhotoDaoBase
See Also:
PhotoDao.toClusterPhoto(fr.ifremer.allegro.data.measure.photo.Photo, fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

toClusterPhoto

public ClusterPhoto toClusterPhoto(Photo entity)
Description copied from interface: PhotoDao
Converts this DAO's entity to an object of type ClusterPhoto.

Specified by:
toClusterPhoto in interface PhotoDao
Overrides:
toClusterPhoto in class PhotoDaoBase
See Also:
PhotoDao.toClusterPhoto(fr.ifremer.allegro.data.measure.photo.Photo)

clusterPhotoToEntity

public Photo clusterPhotoToEntity(ClusterPhoto clusterPhoto)
Description copied from interface: PhotoDao
Converts an instance of type ClusterPhoto to this DAO's entity.

See Also:
PhotoDao.clusterPhotoToEntity(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

clusterPhotoToEntity

public void clusterPhotoToEntity(ClusterPhoto source,
                                 Photo target,
                                 boolean copyIfNull)
Description copied from interface: PhotoDao
Copies the fields of ClusterPhoto to the specified entity.

Specified by:
clusterPhotoToEntity in interface PhotoDao
Overrides:
clusterPhotoToEntity in class PhotoDaoBase
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.data.measure.photo.PhotoDao#clusterPhotoToEntity(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto, fr.ifremer.allegro.data.measure.photo.Photo)


Copyright © 2008-2010 IFREMER. All Rights Reserved.