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

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

public abstract class PhotoDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements PhotoDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.data.measure.photo.Photo.

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
PhotoDaoBase()
           
 
Method Summary
 void clusterPhotoToEntity(ClusterPhoto source, Photo target, boolean copyIfNull)
          Copies the fields of ClusterPhoto to the specified entity.
 void clusterPhotoToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterPhoto to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.data.measure.photo.Photo and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as PhotoDao.create(fr.ifremer.allegro.data.measure.photo.Photo) with an additional flag called transform.
 Photo create(java.lang.Integer objectId, ObjectType objectType, java.lang.String path, PhotoType photoType, QualityFlag qualityFlag)
           Creates a new fr.ifremer.allegro.data.measure.photo.Photo instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Photo create(java.lang.Integer objectId, java.lang.String name, java.lang.String directionDescription, java.lang.String comments, java.lang.String path, java.util.Date photoDate, java.util.Date validationDate, java.util.Date qualificationDate, java.lang.String qualificationComments, java.sql.Timestamp updateDate, Department department, PhotoType photoType, ObjectType objectType, QualityFlag qualityFlag)
           Creates a new fr.ifremer.allegro.data.measure.photo.Photo instance from all attributes and properties and adds it to the persistent store.
 java.lang.Object create(int transform, java.lang.Integer objectId, ObjectType objectType, java.lang.String path, PhotoType photoType, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.create(java.lang.Integer,fr.ifremer.allegro.referential.ObjectType,java.lang.String,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.Integer objectId, java.lang.String name, java.lang.String directionDescription, java.lang.String comments, java.lang.String path, java.util.Date photoDate, java.util.Date validationDate, java.util.Date qualificationDate, java.lang.String qualificationComments, java.sql.Timestamp updateDate, Department department, PhotoType photoType, ObjectType objectType, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.ObjectType,fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform.
 java.lang.Object create(int transform, Photo photo)
           Does the same thing as PhotoDao.create(fr.ifremer.allegro.data.measure.photo.Photo) with an additional flag called transform.
 Photo create(Photo photo)
          Creates an instance of fr.ifremer.allegro.data.measure.photo.Photo and adds it to the persistent store.
 Photo createFromClusterPhoto(ClusterPhoto clusterPhoto)
           
 java.util.Collection findPhotoByDepartment(Department department)
           
 java.util.Collection findPhotoByDepartment(int transform, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.util.Collection findPhotoByDepartment(int pageNumber, int pageSize, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByDepartment(int transform, int pageNumber, int pageSize, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByDepartment(int transform, java.lang.String queryString, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findPhotoByDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByDepartment(java.lang.String queryString, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findPhotoByDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department department)
           Does the same thing as PhotoDao.findPhotoByDepartment(String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 Photo findPhotoById(java.lang.Integer id)
           
 java.lang.Object findPhotoById(int transform, java.lang.Integer id)
           Does the same thing as PhotoDao.findPhotoById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findPhotoById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PhotoDao.findPhotoById(int, java.lang.Integer) with an additional argument called queryString.
 Photo findPhotoById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PhotoDao.findPhotoById(java.lang.Integer) with an additional argument called queryString.
 Photo findPhotoByNaturalId(java.lang.Integer id)
           
 java.lang.Object findPhotoByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as PhotoDao.findPhotoByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findPhotoByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PhotoDao.findPhotoByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Photo findPhotoByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PhotoDao.findPhotoByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findPhotoByObjectType(int transform, int pageNumber, int pageSize, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(int, fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByObjectType(int pageNumber, int pageSize, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByObjectType(int transform, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType) with an additional flag called transform.
 java.util.Collection findPhotoByObjectType(int transform, java.lang.String queryString, int pageNumber, int pageSize, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(int, String, fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByObjectType(int transform, java.lang.String queryString, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(int, fr.ifremer.allegro.referential.ObjectType) with an additional argument called queryString.
 java.util.Collection findPhotoByObjectType(ObjectType objectType)
           
 java.util.Collection findPhotoByObjectType(java.lang.String queryString, int pageNumber, int pageSize, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(String, fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByObjectType(java.lang.String queryString, ObjectType objectType)
           Does the same thing as PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType) with an additional argument called queryString.
 java.util.Collection findPhotoByPhotoType(int transform, int pageNumber, int pageSize, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(int, fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByPhotoType(int pageNumber, int pageSize, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByPhotoType(int transform, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType) with an additional flag called transform.
 java.util.Collection findPhotoByPhotoType(int transform, java.lang.String queryString, int pageNumber, int pageSize, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(int, String, fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByPhotoType(int transform, java.lang.String queryString, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(int, fr.ifremer.allegro.referential.PhotoType) with an additional argument called queryString.
 java.util.Collection findPhotoByPhotoType(PhotoType photoType)
           
 java.util.Collection findPhotoByPhotoType(java.lang.String queryString, int pageNumber, int pageSize, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(String, fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByPhotoType(java.lang.String queryString, PhotoType photoType)
           Does the same thing as PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType) with an additional argument called queryString.
 java.util.Collection findPhotoByQualityFlag(int transform, int pageNumber, int pageSize, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(int, fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByQualityFlag(int pageNumber, int pageSize, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByQualityFlag(int transform, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform.
 java.util.Collection findPhotoByQualityFlag(int transform, java.lang.String queryString, int pageNumber, int pageSize, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(int, String, fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByQualityFlag(int transform, java.lang.String queryString, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(int, fr.ifremer.allegro.referential.QualityFlag) with an additional argument called queryString.
 java.util.Collection findPhotoByQualityFlag(QualityFlag qualityFlag)
           
 java.util.Collection findPhotoByQualityFlag(java.lang.String queryString, int pageNumber, int pageSize, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(String, fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoByQualityFlag(java.lang.String queryString, QualityFlag qualityFlag)
           Does the same thing as PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag) with an additional argument called queryString.
 ClusterPhoto[] getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllPhoto()
           
 java.util.Collection getAllPhoto(int transform)
           Does the same thing as PhotoDao.getAllPhoto() with an additional flag called transform.
 java.util.Collection getAllPhoto(int pageNumber, int pageSize)
           Does the same thing as PhotoDao.getAllPhoto() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhoto(int transform, int pageNumber, int pageSize)
           Does the same thing as PhotoDao.getAllPhoto(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhoto(int transform, java.lang.String queryString)
           Does the same thing as PhotoDao.getAllPhoto(int) with an additional argument called queryString.
 java.util.Collection getAllPhoto(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PhotoDao.getAllPhoto(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhoto(java.lang.String queryString)
           Does the same thing as PhotoDao.getAllPhoto() with an additional argument called queryString.
 java.util.Collection getAllPhoto(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PhotoDao.getAllPhoto(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPhotoSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllPhotoSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPhotoSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  DepartmentDao getDepartmentDao()
          Gets the reference to departmentDao.
protected  ObjectTypeDao getObjectTypeDao()
          Gets the reference to objectTypeDao.
protected  PhotoTypeDao getPhotoTypeDao()
          Gets the reference to photoTypeDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  QualityFlagDao getQualityFlagDao()
          Gets the reference to qualityFlagDao.
protected abstract  Photo handleCreateFromClusterPhoto(ClusterPhoto clusterPhoto)
          Performs the core logic for createFromClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)
protected abstract  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 getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Photo load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.data.measure.photo.Photo from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as PhotoDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Photo.
 java.util.Collection loadAll(int transform)
           Does the same thing as PhotoDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as PhotoDao.loadAll() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
           Does the same thing as PhotoDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remotePhotoFullVOToEntity(RemotePhotoFullVO source, Photo target, boolean copyIfNull)
          Copies the fields of RemotePhotoFullVO to the specified entity.
 void remotePhotoFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePhotoFullVO to this DAO's entity.
 void remotePhotoNaturalIdToEntity(RemotePhotoNaturalId source, Photo target, boolean copyIfNull)
          Copies the fields of RemotePhotoNaturalId to the specified entity.
 void remotePhotoNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePhotoNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.data.measure.photo.Photo having the given identifier from the persistent store.
 void remove(Photo photo)
          Removes the instance of fr.ifremer.allegro.data.measure.photo.Photo from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as PhotoDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to departmentDao.
 void setObjectTypeDao(ObjectTypeDao objectTypeDao)
          Sets the reference to objectTypeDao.
 void setPhotoTypeDao(PhotoTypeDao photoTypeDao)
          Sets the reference to photoTypeDao.
 void setQualityFlagDao(QualityFlagDao qualityFlagDao)
          Sets the reference to qualityFlagDao.
protected  ClusterPhoto toClusterPhoto(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 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.
 ClusterPhoto[] toClusterPhotoArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterPhoto.
 void toClusterPhotoCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterPhoto.
protected  Photo toEntity(java.lang.Object[] row)
           
protected  RemotePhotoFullVO toRemotePhotoFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a 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.
 RemotePhotoFullVO[] toRemotePhotoFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePhotoFullVO.
 void toRemotePhotoFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePhotoFullVO.
protected  RemotePhotoNaturalId toRemotePhotoNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a 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.
 RemotePhotoNaturalId[] toRemotePhotoNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePhotoNaturalId.
 void toRemotePhotoNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePhotoNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.data.measure.photo.Photo) method.
protected  java.lang.Object transformEntity(int transform, Photo entity)
          Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.data.measure.photo.PhotoDao, please note that the PhotoDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(Photo photo)
          Updates the photo instance in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.data.measure.photo.PhotoDao
clusterPhotoToEntity, remotePhotoFullVOToEntity, remotePhotoNaturalIdToEntity
 

Constructor Detail

PhotoDaoBase

public PhotoDaoBase()
Method Detail

setDepartmentDao

public void setDepartmentDao(DepartmentDao departmentDao)
Sets the reference to departmentDao.


getDepartmentDao

protected DepartmentDao getDepartmentDao()
Gets the reference to departmentDao.


setPhotoTypeDao

public void setPhotoTypeDao(PhotoTypeDao photoTypeDao)
Sets the reference to photoTypeDao.


getPhotoTypeDao

protected PhotoTypeDao getPhotoTypeDao()
Gets the reference to photoTypeDao.


setObjectTypeDao

public void setObjectTypeDao(ObjectTypeDao objectTypeDao)
Sets the reference to objectTypeDao.


getObjectTypeDao

protected ObjectTypeDao getObjectTypeDao()
Gets the reference to objectTypeDao.


setQualityFlagDao

public void setQualityFlagDao(QualityFlagDao qualityFlagDao)
Sets the reference to qualityFlagDao.


getQualityFlagDao

protected QualityFlagDao getQualityFlagDao()
Gets the reference to qualityFlagDao.


load

public java.lang.Object load(int transform,
                             java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.load(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined in this class then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
load in interface PhotoDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
PhotoDao.load(int, java.lang.Integer)

load

public Photo load(java.lang.Integer id)
Description copied from interface: PhotoDao
Loads an instance of fr.ifremer.allegro.data.measure.photo.Photo from the persistent store.

Specified by:
load in interface PhotoDao
See Also:
PhotoDao.load(java.lang.Integer)

loadAll

public java.util.Collection loadAll()
Description copied from interface: PhotoDao
Loads all entities of type Photo.

Specified by:
loadAll in interface PhotoDao
Returns:
the loaded entities.
See Also:
PhotoDao.loadAll()

loadAll

public java.util.Collection loadAll(int transform)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.loadAll() with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
loadAll in interface PhotoDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
PhotoDao.loadAll(int)

loadAll

public java.util.Collection loadAll(int pageNumber,
                                    int pageSize)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.loadAll() with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
loadAll in interface PhotoDao
Parameters:
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
PhotoDao.loadAll(int, int)

loadAll

public java.util.Collection loadAll(int transform,
                                    int pageNumber,
                                    int pageSize)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.loadAll(int) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
loadAll in interface PhotoDao
Parameters:
transform - the flag indicating what transformation to use.
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
PhotoDao.loadAll(int, int, int)

create

public Photo create(Photo photo)
Description copied from interface: PhotoDao
Creates an instance of fr.ifremer.allegro.data.measure.photo.Photo and adds it to the persistent store.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(fr.ifremer.allegro.data.measure.photo.Photo)

create

public java.lang.Object create(int transform,
                               Photo photo)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.create(fr.ifremer.allegro.data.measure.photo.Photo) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(int transform, fr.ifremer.allegro.data.measure.photo.Photo)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: PhotoDao
Creates a new instance of fr.ifremer.allegro.data.measure.photo.Photo and adds from the passed in entities collection

Specified by:
create in interface PhotoDao
Parameters:
entities - the collection of fr.ifremer.allegro.data.measure.photo.Photo instances to create.
Returns:
the created instances.
See Also:
PhotoDao.create(java.util.Collection)

create

public java.util.Collection create(int transform,
                                   java.util.Collection entities)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.create(fr.ifremer.allegro.data.measure.photo.Photo) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(int, java.util.Collection)

create

public Photo create(java.lang.Integer objectId,
                    java.lang.String name,
                    java.lang.String directionDescription,
                    java.lang.String comments,
                    java.lang.String path,
                    java.util.Date photoDate,
                    java.util.Date validationDate,
                    java.util.Date qualificationDate,
                    java.lang.String qualificationComments,
                    java.sql.Timestamp updateDate,
                    Department department,
                    PhotoType photoType,
                    ObjectType objectType,
                    QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Creates a new fr.ifremer.allegro.data.measure.photo.Photo instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.ObjectType,fr.ifremer.allegro.referential.QualityFlag)

create

public java.lang.Object create(int transform,
                               java.lang.Integer objectId,
                               java.lang.String name,
                               java.lang.String directionDescription,
                               java.lang.String comments,
                               java.lang.String path,
                               java.util.Date photoDate,
                               java.util.Date validationDate,
                               java.util.Date qualificationDate,
                               java.lang.String qualificationComments,
                               java.sql.Timestamp updateDate,
                               Department department,
                               PhotoType photoType,
                               ObjectType objectType,
                               QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.ObjectType,fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(int, java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.ObjectType,fr.ifremer.allegro.referential.QualityFlag)

create

public Photo create(java.lang.Integer objectId,
                    ObjectType objectType,
                    java.lang.String path,
                    PhotoType photoType,
                    QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Creates a new fr.ifremer.allegro.data.measure.photo.Photo instance from only required properties (attributes and association ends) and adds it to the persistent store.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(java.lang.Integer,fr.ifremer.allegro.referential.ObjectType,java.lang.String,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.QualityFlag)

create

public java.lang.Object create(int transform,
                               java.lang.Integer objectId,
                               ObjectType objectType,
                               java.lang.String path,
                               PhotoType photoType,
                               QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.create(java.lang.Integer,fr.ifremer.allegro.referential.ObjectType,java.lang.String,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOTWILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface PhotoDao
See Also:
PhotoDao.create(int, java.lang.Integer,fr.ifremer.allegro.referential.ObjectType,java.lang.String,fr.ifremer.allegro.referential.PhotoType,fr.ifremer.allegro.referential.QualityFlag)

update

public void update(Photo photo)
Description copied from interface: PhotoDao
Updates the photo instance in the persistent store.

Specified by:
update in interface PhotoDao
See Also:
PhotoDao.update(fr.ifremer.allegro.data.measure.photo.Photo)

update

public void update(java.util.Collection entities)
Description copied from interface: PhotoDao
Updates all instances in the entities collection in the persistent store.

Specified by:
update in interface PhotoDao
See Also:
PhotoDao.update(java.util.Collection)

remove

public void remove(Photo photo)
Description copied from interface: PhotoDao
Removes the instance of fr.ifremer.allegro.data.measure.photo.Photo from the persistent store.

Specified by:
remove in interface PhotoDao
See Also:
PhotoDao.remove(fr.ifremer.allegro.data.measure.photo.Photo)

remove

public void remove(java.lang.Integer id)
Description copied from interface: PhotoDao
Removes the instance of fr.ifremer.allegro.data.measure.photo.Photo having the given identifier from the persistent store.

Specified by:
remove in interface PhotoDao
See Also:
PhotoDao.remove(java.lang.Integer)

remove

public void remove(java.util.Collection entities)
Description copied from interface: PhotoDao
Removes all entities in the given entities collection.

Specified by:
remove in interface PhotoDao
See Also:
PhotoDao.remove(java.util.Collection)

getAllPhoto

public java.util.Collection getAllPhoto()
Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto()

getAllPhoto

public java.util.Collection getAllPhoto(int transform)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto() with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(int)

getAllPhoto

public java.util.Collection getAllPhoto(java.lang.String queryString)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto() with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.getAllPhoto().

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(java.lang.String)

getAllPhoto

public java.util.Collection getAllPhoto(int pageNumber,
                                        int pageSize)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto() with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(int, int)

getAllPhoto

public java.util.Collection getAllPhoto(java.lang.String queryString,
                                        int pageNumber,
                                        int pageSize)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto(String) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(String, int, int)

getAllPhoto

public java.util.Collection getAllPhoto(int transform,
                                        java.lang.String queryString)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto(int) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.getAllPhoto(int).

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(int, String)

getAllPhoto

public java.util.Collection getAllPhoto(int transform,
                                        int pageNumber,
                                        int pageSize)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto(int) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(int, int, int)

getAllPhoto

public java.util.Collection getAllPhoto(int transform,
                                        java.lang.String queryString,
                                        int pageNumber,
                                        int pageSize)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhoto(int, String) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhoto in interface PhotoDao
See Also:
PhotoDao.getAllPhoto(int, java.lang.String, int, int)

findPhotoById

public Photo findPhotoById(java.lang.Integer id)
Specified by:
findPhotoById in interface PhotoDao
See Also:
PhotoDao.findPhotoById(java.lang.Integer)

findPhotoById

public java.lang.Object findPhotoById(int transform,
                                      java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoById(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPhotoById in interface PhotoDao
See Also:
PhotoDao.findPhotoById(int, java.lang.Integer)

findPhotoById

public Photo findPhotoById(java.lang.String queryString,
                           java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoById(java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoById(java.lang.Integer).

Specified by:
findPhotoById in interface PhotoDao
See Also:
PhotoDao.findPhotoById(java.lang.String, java.lang.Integer)

findPhotoById

public java.lang.Object findPhotoById(int transform,
                                      java.lang.String queryString,
                                      java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoById(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoById(int, java.lang.Integer id).

Specified by:
findPhotoById in interface PhotoDao
See Also:
PhotoDao.findPhotoById(int, java.lang.String, java.lang.Integer)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(Department department)
Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(int transform,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(int, fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(java.lang.String queryString,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department).

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(java.lang.String, fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(int pageNumber,
                                                  int pageSize,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(int, int, fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(String, int, int, fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(int transform,
                                                  java.lang.String queryString,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByDepartment(int, fr.ifremer.allegro.administration.user.Department department).

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(int, String, fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(int transform,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(int, int, int, fr.ifremer.allegro.administration.user.Department)

findPhotoByDepartment

public java.util.Collection findPhotoByDepartment(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Department department)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByDepartment in interface PhotoDao
See Also:
PhotoDao.findPhotoByDepartment(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.Department)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(PhotoType photoType)
Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(int transform,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(int, fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(java.lang.String queryString,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType).

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(java.lang.String, fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(int pageNumber,
                                                 int pageSize,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(int, int, fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(java.lang.String queryString,
                                                 int pageNumber,
                                                 int pageSize,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(String, fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(String, int, int, fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(int transform,
                                                 java.lang.String queryString,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(int, fr.ifremer.allegro.referential.PhotoType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByPhotoType(int, fr.ifremer.allegro.referential.PhotoType photoType).

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(int, String, fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(int transform,
                                                 int pageNumber,
                                                 int pageSize,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(int, fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(int, int, int, fr.ifremer.allegro.referential.PhotoType)

findPhotoByPhotoType

public java.util.Collection findPhotoByPhotoType(int transform,
                                                 java.lang.String queryString,
                                                 int pageNumber,
                                                 int pageSize,
                                                 PhotoType photoType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByPhotoType(int, String, fr.ifremer.allegro.referential.PhotoType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByPhotoType in interface PhotoDao
See Also:
PhotoDao.findPhotoByPhotoType(int, java.lang.String, int, int, fr.ifremer.allegro.referential.PhotoType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(ObjectType objectType)
Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(int transform,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(int, fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(java.lang.String queryString,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType).

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(java.lang.String, fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(int pageNumber,
                                                  int pageSize,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(int, int, fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(String, fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(String, int, int, fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(int transform,
                                                  java.lang.String queryString,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(int, fr.ifremer.allegro.referential.ObjectType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByObjectType(int, fr.ifremer.allegro.referential.ObjectType objectType).

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(int, String, fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(int transform,
                                                  int pageNumber,
                                                  int pageSize,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(int, fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(int, int, int, fr.ifremer.allegro.referential.ObjectType)

findPhotoByObjectType

public java.util.Collection findPhotoByObjectType(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  ObjectType objectType)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByObjectType(int, String, fr.ifremer.allegro.referential.ObjectType) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByObjectType in interface PhotoDao
See Also:
PhotoDao.findPhotoByObjectType(int, java.lang.String, int, int, fr.ifremer.allegro.referential.ObjectType)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(QualityFlag qualityFlag)
Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(int transform,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(int, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(java.lang.String queryString,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag).

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(java.lang.String, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(int pageNumber,
                                                   int pageSize,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(int, int, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(String, fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(String, int, int, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(int transform,
                                                   java.lang.String queryString,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(int, fr.ifremer.allegro.referential.QualityFlag) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByQualityFlag(int, fr.ifremer.allegro.referential.QualityFlag qualityFlag).

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(int, String, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(int transform,
                                                   int pageNumber,
                                                   int pageSize,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(int, fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(int, int, int, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByQualityFlag

public java.util.Collection findPhotoByQualityFlag(int transform,
                                                   java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   QualityFlag qualityFlag)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByQualityFlag(int, String, fr.ifremer.allegro.referential.QualityFlag) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findPhotoByQualityFlag in interface PhotoDao
See Also:
PhotoDao.findPhotoByQualityFlag(int, java.lang.String, int, int, fr.ifremer.allegro.referential.QualityFlag)

findPhotoByNaturalId

public Photo findPhotoByNaturalId(java.lang.Integer id)
Specified by:
findPhotoByNaturalId in interface PhotoDao
See Also:
PhotoDao.findPhotoByNaturalId(java.lang.Integer)

findPhotoByNaturalId

public java.lang.Object findPhotoByNaturalId(int transform,
                                             java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByNaturalId(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findPhotoByNaturalId in interface PhotoDao
See Also:
PhotoDao.findPhotoByNaturalId(int, java.lang.Integer)

findPhotoByNaturalId

public Photo findPhotoByNaturalId(java.lang.String queryString,
                                  java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByNaturalId(java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByNaturalId(java.lang.Integer).

Specified by:
findPhotoByNaturalId in interface PhotoDao
See Also:
PhotoDao.findPhotoByNaturalId(java.lang.String, java.lang.Integer)

findPhotoByNaturalId

public java.lang.Object findPhotoByNaturalId(int transform,
                                             java.lang.String queryString,
                                             java.lang.Integer id)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.findPhotoByNaturalId(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.findPhotoByNaturalId(int, java.lang.Integer id).

Specified by:
findPhotoByNaturalId in interface PhotoDao
See Also:
PhotoDao.findPhotoByNaturalId(int, java.lang.String, java.lang.Integer)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(java.sql.Timestamp updateDate)
Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(int transform,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(int, java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(java.lang.String queryString,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp).

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(java.lang.String, java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(int pageNumber,
                                                        int pageSize,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(int, int, java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(java.lang.String queryString,
                                                        int pageNumber,
                                                        int pageSize,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(int transform,
                                                        java.lang.String queryString,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoDao.getAllPhotoSinceDateSynchro(int, java.sql.Timestamp updateDate).

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(int, String, java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(int transform,
                                                        int pageNumber,
                                                        int pageSize,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllPhotoSinceDateSynchro

public java.util.Collection getAllPhotoSinceDateSynchro(int transform,
                                                        java.lang.String queryString,
                                                        int pageNumber,
                                                        int pageSize,
                                                        java.sql.Timestamp updateDate)
Description copied from interface: PhotoDao

Does the same thing as PhotoDao.getAllPhotoSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllPhotoSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterPhoto

public Photo createFromClusterPhoto(ClusterPhoto clusterPhoto)
Specified by:
createFromClusterPhoto in interface PhotoDao
See Also:
PhotoDao.createFromClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

handleCreateFromClusterPhoto

protected abstract Photo handleCreateFromClusterPhoto(ClusterPhoto clusterPhoto)
                                               throws java.lang.Exception
Performs the core logic for createFromClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

Throws:
java.lang.Exception

getAllClusterPhotoSinceDateSynchro

public ClusterPhoto[] getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                         java.lang.Integer userId,
                                                         java.lang.Integer[] registrationLocationIds,
                                                         java.lang.Integer pageNumber,
                                                         java.lang.Integer pageSize)
Specified by:
getAllClusterPhotoSinceDateSynchro in interface PhotoDao
See Also:
PhotoDao.getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterPhotoSinceDateSynchro

protected abstract ClusterPhoto[] handleGetAllClusterPhotoSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                           java.lang.Integer userId,
                                                                           java.lang.Integer[] registrationLocationIds,
                                                                           java.lang.Integer pageNumber,
                                                                           java.lang.Integer pageSize)
                                                                    throws java.lang.Exception
Performs the core logic for getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           Photo entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.data.measure.photo.PhotoDao, please note that the PhotoDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.

This method will return instances of these types:

If the integer argument value is unknown PhotoDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in PhotoDao
entity - an entity that was found
Returns:
the transformed entity (i.e. new value object, etc)
See Also:
transformEntities(int,java.util.Collection)

transformEntities

protected void transformEntities(int transform,
                                 java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.data.measure.photo.Photo) method. This method does not instantiate a new collection.

This method is to be used internally only.

Parameters:
transform - one of the constants declared in fr.ifremer.allegro.data.measure.photo.PhotoDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.data.measure.photo.Photo)

toEntity

protected Photo toEntity(java.lang.Object[] row)

toRemotePhotoFullVOCollection

public final void toRemotePhotoFullVOCollection(java.util.Collection entities)
Description copied from interface: PhotoDao
Converts this DAO's entity to a Collection of instances of type RemotePhotoFullVO.

Specified by:
toRemotePhotoFullVOCollection in interface PhotoDao
See Also:
PhotoDao.toRemotePhotoFullVOCollection(java.util.Collection)

toRemotePhotoFullVOArray

public final RemotePhotoFullVO[] toRemotePhotoFullVOArray(java.util.Collection entities)
Description copied from interface: PhotoDao
Converts this DAO's entity to an array of instances of type RemotePhotoFullVO.

Specified by:
toRemotePhotoFullVOArray in interface PhotoDao
See Also:
PhotoDao.toRemotePhotoFullVOArray(java.util.Collection)

toRemotePhotoFullVO

protected RemotePhotoFullVO toRemotePhotoFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the PhotoDaoImpl class if you intend to use reporting queries.

See Also:
PhotoDao.toRemotePhotoFullVO(fr.ifremer.allegro.data.measure.photo.Photo)

remotePhotoFullVOToEntityCollection

public final void remotePhotoFullVOToEntityCollection(java.util.Collection instances)
Description copied from interface: PhotoDao
Converts a Collection of instances of type RemotePhotoFullVO to this DAO's entity.

Specified by:
remotePhotoFullVOToEntityCollection in interface PhotoDao
See Also:
PhotoDao.remotePhotoFullVOToEntityCollection(java.util.Collection)

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
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
See Also:
PhotoDao.toRemotePhotoFullVO(fr.ifremer.allegro.data.measure.photo.Photo)

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
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)

toRemotePhotoNaturalIdCollection

public final void toRemotePhotoNaturalIdCollection(java.util.Collection entities)
Description copied from interface: PhotoDao
Converts this DAO's entity to a Collection of instances of type RemotePhotoNaturalId.

Specified by:
toRemotePhotoNaturalIdCollection in interface PhotoDao
See Also:
PhotoDao.toRemotePhotoNaturalIdCollection(java.util.Collection)

toRemotePhotoNaturalIdArray

public final RemotePhotoNaturalId[] toRemotePhotoNaturalIdArray(java.util.Collection entities)
Description copied from interface: PhotoDao
Converts this DAO's entity to an array of instances of type RemotePhotoNaturalId.

Specified by:
toRemotePhotoNaturalIdArray in interface PhotoDao
See Also:
PhotoDao.toRemotePhotoNaturalIdArray(java.util.Collection)

toRemotePhotoNaturalId

protected RemotePhotoNaturalId toRemotePhotoNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the PhotoDaoImpl class if you intend to use reporting queries.

See Also:
PhotoDao.toRemotePhotoNaturalId(fr.ifremer.allegro.data.measure.photo.Photo)

remotePhotoNaturalIdToEntityCollection

public final void remotePhotoNaturalIdToEntityCollection(java.util.Collection instances)
Description copied from interface: PhotoDao
Converts a Collection of instances of type RemotePhotoNaturalId to this DAO's entity.

Specified by:
remotePhotoNaturalIdToEntityCollection in interface PhotoDao
See Also:
PhotoDao.remotePhotoNaturalIdToEntityCollection(java.util.Collection)

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
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
See Also:
PhotoDao.toRemotePhotoNaturalId(fr.ifremer.allegro.data.measure.photo.Photo)

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
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)

toClusterPhotoCollection

public final void toClusterPhotoCollection(java.util.Collection entities)
Description copied from interface: PhotoDao
Converts this DAO's entity to a Collection of instances of type ClusterPhoto.

Specified by:
toClusterPhotoCollection in interface PhotoDao
See Also:
PhotoDao.toClusterPhotoCollection(java.util.Collection)

toClusterPhotoArray

public final ClusterPhoto[] toClusterPhotoArray(java.util.Collection entities)
Description copied from interface: PhotoDao
Converts this DAO's entity to an array of instances of type ClusterPhoto.

Specified by:
toClusterPhotoArray in interface PhotoDao
See Also:
PhotoDao.toClusterPhotoArray(java.util.Collection)

toClusterPhoto

protected ClusterPhoto toClusterPhoto(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the PhotoDaoImpl class if you intend to use reporting queries.

See Also:
PhotoDao.toClusterPhoto(fr.ifremer.allegro.data.measure.photo.Photo)

clusterPhotoToEntityCollection

public final void clusterPhotoToEntityCollection(java.util.Collection instances)
Description copied from interface: PhotoDao
Converts a Collection of instances of type ClusterPhoto to this DAO's entity.

Specified by:
clusterPhotoToEntityCollection in interface PhotoDao
See Also:
PhotoDao.clusterPhotoToEntityCollection(java.util.Collection)

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
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
See Also:
PhotoDao.toClusterPhoto(fr.ifremer.allegro.data.measure.photo.Photo)

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
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)

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

search

public PaginationResult search(int transform,
                               int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: PhotoDao
Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface PhotoDao
Parameters:
transform - the transformation flag.
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
PhotoDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: PhotoDao
Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface PhotoDao
Parameters:
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
PhotoDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: PhotoDao
Does the same thing as PhotoDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
search in interface PhotoDao
Parameters:
transform - the transformation flag.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
PhotoDao.search(int, fr.ifremer.allegro.Search)

search

public java.util.Set search(Search search)
Description copied from interface: PhotoDao
Performs a search using the parameters specified in the given search object.

Specified by:
search in interface PhotoDao
Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
PhotoDao.search(fr.ifremer.allegro.Search)


Copyright © 2008-2010 IFREMER. All Rights Reserved.