fr.ifremer.allegro.referential
Class PhotoTypeDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.PhotoTypeDaoBase
All Implemented Interfaces:
PhotoTypeDao
Direct Known Subclasses:
PhotoTypeDaoImpl

public abstract class PhotoTypeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements PhotoTypeDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.referential.PhotoType.

See Also:
PhotoType

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.PhotoTypeDao
TRANSFORM_CLUSTERPHOTOTYPE, TRANSFORM_NONE, TRANSFORM_REMOTEPHOTOTYPEFULLVO, TRANSFORM_REMOTEPHOTOTYPENATURALID
 
Constructor Summary
PhotoTypeDaoBase()
           
 
Method Summary
 void clusterPhotoTypeToEntity(ClusterPhotoType source, PhotoType target, boolean copyIfNull)
          Copies the fields of ClusterPhotoType to the specified entity.
 void clusterPhotoTypeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterPhotoType to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.PhotoType and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as PhotoTypeDao.create(fr.ifremer.allegro.referential.PhotoType) with an additional flag called transform.
 java.lang.Object create(int transform, PhotoType photoType)
           Does the same thing as PhotoTypeDao.create(fr.ifremer.allegro.referential.PhotoType) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String description, java.lang.String name, Status status)
           Does the same thing as PhotoTypeDao.create(java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, Status status)
           Does the same thing as PhotoTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 PhotoType create(PhotoType photoType)
          Creates an instance of fr.ifremer.allegro.referential.PhotoType and adds it to the persistent store.
 PhotoType create(java.lang.String description, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.PhotoType instance from only required properties (attributes and association ends) and adds it to the persistent store.
 PhotoType create(java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.referential.PhotoType instance from all attributes and properties and adds it to the persistent store.
 PhotoType createFromClusterPhotoType(ClusterPhotoType clusterPhotoType)
           
 java.lang.Object findPhotoTypeByCode(int transform, java.lang.String code)
           Does the same thing as PhotoTypeDao.findPhotoTypeByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findPhotoTypeByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as PhotoTypeDao.findPhotoTypeByCode(int, java.lang.String) with an additional argument called queryString.
 PhotoType findPhotoTypeByCode(java.lang.String code)
           
 PhotoType findPhotoTypeByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as PhotoTypeDao.findPhotoTypeByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findPhotoTypeByNaturalId(int transform, java.lang.String code)
           Does the same thing as PhotoTypeDao.findPhotoTypeByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findPhotoTypeByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as PhotoTypeDao.findPhotoTypeByNaturalId(int, java.lang.String) with an additional argument called queryString.
 PhotoType findPhotoTypeByNaturalId(java.lang.String code)
           
 PhotoType findPhotoTypeByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as PhotoTypeDao.findPhotoTypeByNaturalId(java.lang.String) with an additional argument called queryString.
 java.util.Collection findPhotoTypeByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoTypeByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoTypeByStatus(int transform, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findPhotoTypeByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoTypeByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findPhotoTypeByStatus(Status status)
           
 java.util.Collection findPhotoTypeByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPhotoTypeByStatus(java.lang.String queryString, Status status)
           Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterPhotoType[] getAllClusterPhotoTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllPhotoType()
           
 java.util.Collection getAllPhotoType(int transform)
           Does the same thing as PhotoTypeDao.getAllPhotoType() with an additional flag called transform.
 java.util.Collection getAllPhotoType(int pageNumber, int pageSize)
           Does the same thing as PhotoTypeDao.getAllPhotoType() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoType(int transform, int pageNumber, int pageSize)
           Does the same thing as PhotoTypeDao.getAllPhotoType(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoType(int transform, java.lang.String queryString)
           Does the same thing as PhotoTypeDao.getAllPhotoType(int) with an additional argument called queryString.
 java.util.Collection getAllPhotoType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PhotoTypeDao.getAllPhotoType(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoType(java.lang.String queryString)
           Does the same thing as PhotoTypeDao.getAllPhotoType() with an additional argument called queryString.
 java.util.Collection getAllPhotoType(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PhotoTypeDao.getAllPhotoType(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPhotoTypeSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  PhotoType handleCreateFromClusterPhotoType(ClusterPhotoType clusterPhotoType)
          Performs the core logic for createFromClusterPhotoType(fr.ifremer.allegro.referential.generic.cluster.ClusterPhotoType)
protected abstract  ClusterPhotoType[] handleGetAllClusterPhotoTypeSinceDateSynchro(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 getAllClusterPhotoTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 java.lang.Object load(int transform, java.lang.String code)
           Does the same thing as PhotoTypeDao.load(java.lang.String) with an additional flag called transform.
 PhotoType load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.referential.PhotoType from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type PhotoType.
 java.util.Collection loadAll(int transform)
           Does the same thing as PhotoTypeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as PhotoTypeDao.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 PhotoTypeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remotePhotoTypeFullVOToEntity(RemotePhotoTypeFullVO source, PhotoType target, boolean copyIfNull)
          Copies the fields of RemotePhotoTypeFullVO to the specified entity.
 void remotePhotoTypeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePhotoTypeFullVO to this DAO's entity.
 void remotePhotoTypeNaturalIdToEntity(RemotePhotoTypeNaturalId source, PhotoType target, boolean copyIfNull)
          Copies the fields of RemotePhotoTypeNaturalId to the specified entity.
 void remotePhotoTypeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePhotoTypeNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(PhotoType photoType)
          Removes the instance of fr.ifremer.allegro.referential.PhotoType from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.PhotoType having the given identifier 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 PhotoTypeDao.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 setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
protected  ClusterPhotoType toClusterPhotoType(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterPhotoType toClusterPhotoType(PhotoType entity)
          Converts this DAO's entity to an object of type ClusterPhotoType.
 void toClusterPhotoType(PhotoType source, ClusterPhotoType target)
          Copies the fields of the specified entity to the target value object.
 ClusterPhotoType[] toClusterPhotoTypeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterPhotoType.
 void toClusterPhotoTypeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterPhotoType.
protected  PhotoType toEntity(java.lang.Object[] row)
           
protected  RemotePhotoTypeFullVO toRemotePhotoTypeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemotePhotoTypeFullVO toRemotePhotoTypeFullVO(PhotoType entity)
          Converts this DAO's entity to an object of type RemotePhotoTypeFullVO.
 void toRemotePhotoTypeFullVO(PhotoType source, RemotePhotoTypeFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemotePhotoTypeFullVO[] toRemotePhotoTypeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePhotoTypeFullVO.
 void toRemotePhotoTypeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePhotoTypeFullVO.
protected  RemotePhotoTypeNaturalId toRemotePhotoTypeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemotePhotoTypeNaturalId toRemotePhotoTypeNaturalId(PhotoType entity)
          Converts this DAO's entity to an object of type RemotePhotoTypeNaturalId.
 void toRemotePhotoTypeNaturalId(PhotoType source, RemotePhotoTypeNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemotePhotoTypeNaturalId[] toRemotePhotoTypeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePhotoTypeNaturalId.
 void toRemotePhotoTypeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePhotoTypeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.PhotoType) method.
protected  java.lang.Object transformEntity(int transform, PhotoType 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.referential.PhotoTypeDao, please note that the PhotoTypeDao.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(PhotoType photoType)
          Updates the photoType 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.referential.PhotoTypeDao
clusterPhotoTypeToEntity, remotePhotoTypeFullVOToEntity, remotePhotoTypeNaturalIdToEntity
 

Constructor Detail

PhotoTypeDaoBase

public PhotoTypeDaoBase()
Method Detail

setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to statusDao.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


load

public java.lang.Object load(int transform,
                             java.lang.String code)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.load(java.lang.String) 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 PhotoTypeDao
code - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
PhotoTypeDao.load(int, java.lang.String)

load

public PhotoType load(java.lang.String code)
Description copied from interface: PhotoTypeDao
Loads an instance of fr.ifremer.allegro.referential.PhotoType from the persistent store.

Specified by:
load in interface PhotoTypeDao
See Also:
PhotoTypeDao.load(java.lang.String)

loadAll

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

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

loadAll

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

Does the same thing as PhotoTypeDao.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 PhotoTypeDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
PhotoTypeDao.loadAll(int)

loadAll

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

Does the same thing as PhotoTypeDao.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 PhotoTypeDao
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:
PhotoTypeDao.loadAll(int, int)

loadAll

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

Does the same thing as PhotoTypeDao.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 PhotoTypeDao
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:
PhotoTypeDao.loadAll(int, int, int)

create

public PhotoType create(PhotoType photoType)
Description copied from interface: PhotoTypeDao
Creates an instance of fr.ifremer.allegro.referential.PhotoType and adds it to the persistent store.

Specified by:
create in interface PhotoTypeDao
See Also:
PhotoTypeDao.create(fr.ifremer.allegro.referential.PhotoType)

create

public java.lang.Object create(int transform,
                               PhotoType photoType)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.create(fr.ifremer.allegro.referential.PhotoType) 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 PhotoTypeDao
See Also:
PhotoTypeDao.create(int transform, fr.ifremer.allegro.referential.PhotoType)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: PhotoTypeDao
Creates a new instance of fr.ifremer.allegro.referential.PhotoType and adds from the passed in entities collection

Specified by:
create in interface PhotoTypeDao
Parameters:
entities - the collection of fr.ifremer.allegro.referential.PhotoType instances to create.
Returns:
the created instances.
See Also:
PhotoTypeDao.create(java.util.Collection)

create

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

Does the same thing as PhotoTypeDao.create(fr.ifremer.allegro.referential.PhotoType) 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 PhotoTypeDao
See Also:
PhotoTypeDao.create(int, java.util.Collection)

create

public PhotoType create(java.lang.String name,
                        java.lang.String description,
                        java.sql.Timestamp updateDate,
                        Status status)
Description copied from interface: PhotoTypeDao

Creates a new fr.ifremer.allegro.referential.PhotoType instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface PhotoTypeDao
See Also:
PhotoTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String description,
                               java.sql.Timestamp updateDate,
                               Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) 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 PhotoTypeDao
See Also:
PhotoTypeDao.create(int, java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)

create

public PhotoType create(java.lang.String description,
                        java.lang.String name,
                        Status status)
Description copied from interface: PhotoTypeDao

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

Specified by:
create in interface PhotoTypeDao
See Also:
PhotoTypeDao.create(java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String description,
                               java.lang.String name,
                               Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.create(java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status) 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 PhotoTypeDao
See Also:
PhotoTypeDao.create(int, java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)

update

public void update(PhotoType photoType)
Description copied from interface: PhotoTypeDao
Updates the photoType instance in the persistent store.

Specified by:
update in interface PhotoTypeDao
See Also:
PhotoTypeDao.update(fr.ifremer.allegro.referential.PhotoType)

update

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

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

remove

public void remove(PhotoType photoType)
Description copied from interface: PhotoTypeDao
Removes the instance of fr.ifremer.allegro.referential.PhotoType from the persistent store.

Specified by:
remove in interface PhotoTypeDao
See Also:
PhotoTypeDao.remove(fr.ifremer.allegro.referential.PhotoType)

remove

public void remove(java.lang.String code)
Description copied from interface: PhotoTypeDao
Removes the instance of fr.ifremer.allegro.referential.PhotoType having the given identifier from the persistent store.

Specified by:
remove in interface PhotoTypeDao
See Also:
PhotoTypeDao.remove(java.lang.String)

remove

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

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

getAllPhotoType

public java.util.Collection getAllPhotoType()
Specified by:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType()

getAllPhotoType

public java.util.Collection getAllPhotoType(int transform)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.getAllPhotoType() 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:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(int)

getAllPhotoType

public java.util.Collection getAllPhotoType(java.lang.String queryString)
Description copied from interface: PhotoTypeDao

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

Specified by:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(java.lang.String)

getAllPhotoType

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

Does the same thing as PhotoTypeDao.getAllPhotoType() 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:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(int, int)

getAllPhotoType

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

Does the same thing as PhotoTypeDao.getAllPhotoType(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:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(String, int, int)

getAllPhotoType

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

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

Specified by:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(int, String)

getAllPhotoType

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

Does the same thing as PhotoTypeDao.getAllPhotoType(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:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(int, int, int)

getAllPhotoType

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

Does the same thing as PhotoTypeDao.getAllPhotoType(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:
getAllPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoType(int, java.lang.String, int, int)

findPhotoTypeByCode

public PhotoType findPhotoTypeByCode(java.lang.String code)
Specified by:
findPhotoTypeByCode in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByCode(java.lang.String)

findPhotoTypeByCode

public java.lang.Object findPhotoTypeByCode(int transform,
                                            java.lang.String code)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByCode(java.lang.String) 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:
findPhotoTypeByCode in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByCode(int, java.lang.String)

findPhotoTypeByCode

public PhotoType findPhotoTypeByCode(java.lang.String queryString,
                                     java.lang.String code)
Description copied from interface: PhotoTypeDao

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

Specified by:
findPhotoTypeByCode in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByCode(java.lang.String, java.lang.String)

findPhotoTypeByCode

public java.lang.Object findPhotoTypeByCode(int transform,
                                            java.lang.String queryString,
                                            java.lang.String code)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByCode(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoTypeDao.findPhotoTypeByCode(int, java.lang.String code).

Specified by:
findPhotoTypeByCode in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByCode(int, java.lang.String, java.lang.String)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(Status status)
Specified by:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(int transform,
                                                  Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(fr.ifremer.allegro.referential.Status) 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:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(int, fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(java.lang.String queryString,
                                                  Status status)
Description copied from interface: PhotoTypeDao

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

Specified by:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(int pageNumber,
                                                  int pageSize,
                                                  Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(fr.ifremer.allegro.referential.Status) 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:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(int, int, fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(String, fr.ifremer.allegro.referential.Status) 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:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(String, int, int, fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(int transform,
                                                  java.lang.String queryString,
                                                  Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoTypeDao.findPhotoTypeByStatus(int, fr.ifremer.allegro.referential.Status status).

Specified by:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(int, String, fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(int transform,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(int, fr.ifremer.allegro.referential.Status) 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:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findPhotoTypeByStatus

public java.util.Collection findPhotoTypeByStatus(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Status status)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) 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:
findPhotoTypeByStatus in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)

findPhotoTypeByNaturalId

public PhotoType findPhotoTypeByNaturalId(java.lang.String code)
Specified by:
findPhotoTypeByNaturalId in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByNaturalId(java.lang.String)

findPhotoTypeByNaturalId

public java.lang.Object findPhotoTypeByNaturalId(int transform,
                                                 java.lang.String code)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByNaturalId(java.lang.String) 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:
findPhotoTypeByNaturalId in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByNaturalId(int, java.lang.String)

findPhotoTypeByNaturalId

public PhotoType findPhotoTypeByNaturalId(java.lang.String queryString,
                                          java.lang.String code)
Description copied from interface: PhotoTypeDao

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

Specified by:
findPhotoTypeByNaturalId in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByNaturalId(java.lang.String, java.lang.String)

findPhotoTypeByNaturalId

public java.lang.Object findPhotoTypeByNaturalId(int transform,
                                                 java.lang.String queryString,
                                                 java.lang.String code)
Description copied from interface: PhotoTypeDao

Does the same thing as PhotoTypeDao.findPhotoTypeByNaturalId(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in PhotoTypeDao.findPhotoTypeByNaturalId(int, java.lang.String code).

Specified by:
findPhotoTypeByNaturalId in interface PhotoTypeDao
See Also:
PhotoTypeDao.findPhotoTypeByNaturalId(int, java.lang.String, java.lang.String)

getAllPhotoTypeSinceDateSynchro

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

getAllPhotoTypeSinceDateSynchro

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

Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(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:
getAllPhotoTypeSinceDateSynchro in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, java.sql.Timestamp)

getAllPhotoTypeSinceDateSynchro

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

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

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

getAllPhotoTypeSinceDateSynchro

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

Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(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:
getAllPhotoTypeSinceDateSynchro in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, int, java.sql.Timestamp)

getAllPhotoTypeSinceDateSynchro

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

Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(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:
getAllPhotoTypeSinceDateSynchro in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllPhotoTypeSinceDateSynchro

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

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

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

getAllPhotoTypeSinceDateSynchro

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

Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(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:
getAllPhotoTypeSinceDateSynchro in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllPhotoTypeSinceDateSynchro

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

Does the same thing as PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(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:
getAllPhotoTypeSinceDateSynchro in interface PhotoTypeDao
See Also:
PhotoTypeDao.getAllPhotoTypeSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterPhotoType

public PhotoType createFromClusterPhotoType(ClusterPhotoType clusterPhotoType)
Specified by:
createFromClusterPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.createFromClusterPhotoType(fr.ifremer.allegro.referential.generic.cluster.ClusterPhotoType)

handleCreateFromClusterPhotoType

protected abstract PhotoType handleCreateFromClusterPhotoType(ClusterPhotoType clusterPhotoType)
                                                       throws java.lang.Exception
Performs the core logic for createFromClusterPhotoType(fr.ifremer.allegro.referential.generic.cluster.ClusterPhotoType)

Throws:
java.lang.Exception

getAllClusterPhotoTypeSinceDateSynchro

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

handleGetAllClusterPhotoTypeSinceDateSynchro

protected abstract ClusterPhotoType[] handleGetAllClusterPhotoTypeSinceDateSynchro(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 getAllClusterPhotoTypeSinceDateSynchro(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,
                                           PhotoType 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.referential.PhotoTypeDao, please note that the PhotoTypeDao.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 PhotoTypeDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in PhotoTypeDao
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.referential.PhotoType) 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.referential.PhotoTypeDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.PhotoType)

toEntity

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

toRemotePhotoTypeFullVOCollection

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

Specified by:
toRemotePhotoTypeFullVOCollection in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeFullVOCollection(java.util.Collection)

toRemotePhotoTypeFullVOArray

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

Specified by:
toRemotePhotoTypeFullVOArray in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeFullVOArray(java.util.Collection)

toRemotePhotoTypeFullVO

protected RemotePhotoTypeFullVO toRemotePhotoTypeFullVO(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 PhotoTypeDaoImpl class if you intend to use reporting queries.

See Also:
PhotoTypeDao.toRemotePhotoTypeFullVO(fr.ifremer.allegro.referential.PhotoType)

remotePhotoTypeFullVOToEntityCollection

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

Specified by:
remotePhotoTypeFullVOToEntityCollection in interface PhotoTypeDao
See Also:
PhotoTypeDao.remotePhotoTypeFullVOToEntityCollection(java.util.Collection)

toRemotePhotoTypeFullVO

public void toRemotePhotoTypeFullVO(PhotoType source,
                                    RemotePhotoTypeFullVO target)
Description copied from interface: PhotoTypeDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemotePhotoTypeFullVO(), 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:
toRemotePhotoTypeFullVO in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeFullVO(fr.ifremer.allegro.referential.PhotoType, fr.ifremer.allegro.referential.generic.vo.RemotePhotoTypeFullVO)

toRemotePhotoTypeFullVO

public RemotePhotoTypeFullVO toRemotePhotoTypeFullVO(PhotoType entity)
Description copied from interface: PhotoTypeDao
Converts this DAO's entity to an object of type RemotePhotoTypeFullVO.

Specified by:
toRemotePhotoTypeFullVO in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeFullVO(fr.ifremer.allegro.referential.PhotoType)

remotePhotoTypeFullVOToEntity

public void remotePhotoTypeFullVOToEntity(RemotePhotoTypeFullVO source,
                                          PhotoType target,
                                          boolean copyIfNull)
Description copied from interface: PhotoTypeDao
Copies the fields of RemotePhotoTypeFullVO to the specified entity.

Specified by:
remotePhotoTypeFullVOToEntity in interface PhotoTypeDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.PhotoTypeDao#remotePhotoTypeFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemotePhotoTypeFullVO, fr.ifremer.allegro.referential.PhotoType)

toRemotePhotoTypeNaturalIdCollection

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

Specified by:
toRemotePhotoTypeNaturalIdCollection in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeNaturalIdCollection(java.util.Collection)

toRemotePhotoTypeNaturalIdArray

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

Specified by:
toRemotePhotoTypeNaturalIdArray in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeNaturalIdArray(java.util.Collection)

toRemotePhotoTypeNaturalId

protected RemotePhotoTypeNaturalId toRemotePhotoTypeNaturalId(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 PhotoTypeDaoImpl class if you intend to use reporting queries.

See Also:
PhotoTypeDao.toRemotePhotoTypeNaturalId(fr.ifremer.allegro.referential.PhotoType)

remotePhotoTypeNaturalIdToEntityCollection

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

Specified by:
remotePhotoTypeNaturalIdToEntityCollection in interface PhotoTypeDao
See Also:
PhotoTypeDao.remotePhotoTypeNaturalIdToEntityCollection(java.util.Collection)

toRemotePhotoTypeNaturalId

public void toRemotePhotoTypeNaturalId(PhotoType source,
                                       RemotePhotoTypeNaturalId target)
Description copied from interface: PhotoTypeDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemotePhotoTypeNaturalId(), 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:
toRemotePhotoTypeNaturalId in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeNaturalId(fr.ifremer.allegro.referential.PhotoType, fr.ifremer.allegro.referential.generic.vo.RemotePhotoTypeNaturalId)

toRemotePhotoTypeNaturalId

public RemotePhotoTypeNaturalId toRemotePhotoTypeNaturalId(PhotoType entity)
Description copied from interface: PhotoTypeDao
Converts this DAO's entity to an object of type RemotePhotoTypeNaturalId.

Specified by:
toRemotePhotoTypeNaturalId in interface PhotoTypeDao
See Also:
PhotoTypeDao.toRemotePhotoTypeNaturalId(fr.ifremer.allegro.referential.PhotoType)

remotePhotoTypeNaturalIdToEntity

public void remotePhotoTypeNaturalIdToEntity(RemotePhotoTypeNaturalId source,
                                             PhotoType target,
                                             boolean copyIfNull)
Description copied from interface: PhotoTypeDao
Copies the fields of RemotePhotoTypeNaturalId to the specified entity.

Specified by:
remotePhotoTypeNaturalIdToEntity in interface PhotoTypeDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.PhotoTypeDao#remotePhotoTypeNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemotePhotoTypeNaturalId, fr.ifremer.allegro.referential.PhotoType)

toClusterPhotoTypeCollection

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

Specified by:
toClusterPhotoTypeCollection in interface PhotoTypeDao
See Also:
PhotoTypeDao.toClusterPhotoTypeCollection(java.util.Collection)

toClusterPhotoTypeArray

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

Specified by:
toClusterPhotoTypeArray in interface PhotoTypeDao
See Also:
PhotoTypeDao.toClusterPhotoTypeArray(java.util.Collection)

toClusterPhotoType

protected ClusterPhotoType toClusterPhotoType(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 PhotoTypeDaoImpl class if you intend to use reporting queries.

See Also:
PhotoTypeDao.toClusterPhotoType(fr.ifremer.allegro.referential.PhotoType)

clusterPhotoTypeToEntityCollection

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

Specified by:
clusterPhotoTypeToEntityCollection in interface PhotoTypeDao
See Also:
PhotoTypeDao.clusterPhotoTypeToEntityCollection(java.util.Collection)

toClusterPhotoType

public void toClusterPhotoType(PhotoType source,
                               ClusterPhotoType target)
Description copied from interface: PhotoTypeDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterPhotoType(), 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:
toClusterPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.toClusterPhotoType(fr.ifremer.allegro.referential.PhotoType, fr.ifremer.allegro.referential.generic.cluster.ClusterPhotoType)

toClusterPhotoType

public ClusterPhotoType toClusterPhotoType(PhotoType entity)
Description copied from interface: PhotoTypeDao
Converts this DAO's entity to an object of type ClusterPhotoType.

Specified by:
toClusterPhotoType in interface PhotoTypeDao
See Also:
PhotoTypeDao.toClusterPhotoType(fr.ifremer.allegro.referential.PhotoType)

clusterPhotoTypeToEntity

public void clusterPhotoTypeToEntity(ClusterPhotoType source,
                                     PhotoType target,
                                     boolean copyIfNull)
Description copied from interface: PhotoTypeDao
Copies the fields of ClusterPhotoType to the specified entity.

Specified by:
clusterPhotoTypeToEntity in interface PhotoTypeDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.PhotoTypeDao#clusterPhotoTypeToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterPhotoType, fr.ifremer.allegro.referential.PhotoType)

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: PhotoTypeDao
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 PhotoTypeDao
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:
PhotoTypeDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: PhotoTypeDao
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 PhotoTypeDao
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:
PhotoTypeDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: PhotoTypeDao
Does the same thing as PhotoTypeDao.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 PhotoTypeDao
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:
PhotoTypeDao.search(int, fr.ifremer.allegro.Search)

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.