fr.ifremer.allegro.referential
Class QualityFlagDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.QualityFlagDaoBase
All Implemented Interfaces:
QualityFlagDao
Direct Known Subclasses:
QualityFlagDaoImpl

public abstract class QualityFlagDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements QualityFlagDao

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

See Also:
QualityFlag

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.QualityFlagDao
TRANSFORM_CLUSTERQUALITYFLAG, TRANSFORM_NONE, TRANSFORM_REMOTEQUALITYFLAGFULLVO, TRANSFORM_REMOTEQUALITYFLAGNATURALID
 
Constructor Summary
QualityFlagDaoBase()
           
 
Method Summary
 void clusterQualityFlagToEntity(ClusterQualityFlag source, QualityFlag target, boolean copyIfNull)
          Copies the fields of ClusterQualityFlag to the specified entity.
 void clusterQualityFlagToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterQualityFlag to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.QualityFlag and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as QualityFlagDao.create(fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform.
 java.lang.Object create(int transform, QualityFlag qualityFlag)
           Does the same thing as QualityFlagDao.create(fr.ifremer.allegro.referential.QualityFlag) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.String name)
           Does the same thing as QualityFlagDao.create(java.lang.String,java.lang.String) with an additional flag called transform.
 QualityFlag create(QualityFlag qualityFlag)
          Creates an instance of fr.ifremer.allegro.referential.QualityFlag and adds it to the persistent store.
 QualityFlag create(java.lang.String code, java.lang.String name)
           Creates a new fr.ifremer.allegro.referential.QualityFlag instance from all attributes and properties and adds it to the persistent store.
 QualityFlag createFromClusterQualityFlag(ClusterQualityFlag clusterQualityFlag)
           
 java.lang.Object findQualityFlagByCode(int transform, java.lang.String code)
           Does the same thing as QualityFlagDao.findQualityFlagByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findQualityFlagByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as QualityFlagDao.findQualityFlagByCode(int, java.lang.String) with an additional argument called queryString.
 QualityFlag findQualityFlagByCode(java.lang.String code)
           
 QualityFlag findQualityFlagByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as QualityFlagDao.findQualityFlagByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findQualityFlagByNaturalId(int transform, java.lang.String code)
           Does the same thing as QualityFlagDao.findQualityFlagByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findQualityFlagByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as QualityFlagDao.findQualityFlagByNaturalId(int, java.lang.String) with an additional argument called queryString.
 QualityFlag findQualityFlagByNaturalId(java.lang.String code)
           
 QualityFlag findQualityFlagByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as QualityFlagDao.findQualityFlagByNaturalId(java.lang.String) with an additional argument called queryString.
 ClusterQualityFlag[] getAllClusterQualityFlag(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllQualityFlag()
           
 java.util.Collection getAllQualityFlag(int transform)
           Does the same thing as QualityFlagDao.getAllQualityFlag() with an additional flag called transform.
 java.util.Collection getAllQualityFlag(int pageNumber, int pageSize)
           Does the same thing as QualityFlagDao.getAllQualityFlag() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllQualityFlag(int transform, int pageNumber, int pageSize)
           Does the same thing as QualityFlagDao.getAllQualityFlag(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllQualityFlag(int transform, java.lang.String queryString)
           Does the same thing as QualityFlagDao.getAllQualityFlag(int) with an additional argument called queryString.
 java.util.Collection getAllQualityFlag(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as QualityFlagDao.getAllQualityFlag(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllQualityFlag(java.lang.String queryString)
           Does the same thing as QualityFlagDao.getAllQualityFlag() with an additional argument called queryString.
 java.util.Collection getAllQualityFlag(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as QualityFlagDao.getAllQualityFlag(String) with an additional two arguments called pageNumber and pageSize.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected abstract  QualityFlag handleCreateFromClusterQualityFlag(ClusterQualityFlag clusterQualityFlag)
          Performs the core logic for createFromClusterQualityFlag(fr.ifremer.allegro.referential.generic.cluster.ClusterQualityFlag)
protected abstract  ClusterQualityFlag[] handleGetAllClusterQualityFlag(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterQualityFlag(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 QualityFlagDao.load(java.lang.String) with an additional flag called transform.
 QualityFlag load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.referential.QualityFlag from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type QualityFlag.
 java.util.Collection loadAll(int transform)
           Does the same thing as QualityFlagDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as QualityFlagDao.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 QualityFlagDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteQualityFlagFullVOToEntity(RemoteQualityFlagFullVO source, QualityFlag target, boolean copyIfNull)
          Copies the fields of RemoteQualityFlagFullVO to the specified entity.
 void remoteQualityFlagFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteQualityFlagFullVO to this DAO's entity.
 void remoteQualityFlagNaturalIdToEntity(RemoteQualityFlagNaturalId source, QualityFlag target, boolean copyIfNull)
          Copies the fields of RemoteQualityFlagNaturalId to the specified entity.
 void remoteQualityFlagNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteQualityFlagNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(QualityFlag qualityFlag)
          Removes the instance of fr.ifremer.allegro.referential.QualityFlag from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.QualityFlag 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 QualityFlagDao.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.
protected  ClusterQualityFlag toClusterQualityFlag(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterQualityFlag toClusterQualityFlag(QualityFlag entity)
          Converts this DAO's entity to an object of type ClusterQualityFlag.
 void toClusterQualityFlag(QualityFlag source, ClusterQualityFlag target)
          Copies the fields of the specified entity to the target value object.
 ClusterQualityFlag[] toClusterQualityFlagArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterQualityFlag.
 void toClusterQualityFlagCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterQualityFlag.
protected  QualityFlag toEntity(java.lang.Object[] row)
           
protected  RemoteQualityFlagFullVO toRemoteQualityFlagFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteQualityFlagFullVO toRemoteQualityFlagFullVO(QualityFlag entity)
          Converts this DAO's entity to an object of type RemoteQualityFlagFullVO.
 void toRemoteQualityFlagFullVO(QualityFlag source, RemoteQualityFlagFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteQualityFlagFullVO[] toRemoteQualityFlagFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteQualityFlagFullVO.
 void toRemoteQualityFlagFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteQualityFlagFullVO.
protected  RemoteQualityFlagNaturalId toRemoteQualityFlagNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteQualityFlagNaturalId toRemoteQualityFlagNaturalId(QualityFlag entity)
          Converts this DAO's entity to an object of type RemoteQualityFlagNaturalId.
 void toRemoteQualityFlagNaturalId(QualityFlag source, RemoteQualityFlagNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteQualityFlagNaturalId[] toRemoteQualityFlagNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteQualityFlagNaturalId.
 void toRemoteQualityFlagNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteQualityFlagNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.QualityFlag) method.
protected  java.lang.Object transformEntity(int transform, QualityFlag 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.QualityFlagDao, please note that the QualityFlagDao.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(QualityFlag qualityFlag)
          Updates the qualityFlag 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.QualityFlagDao
clusterQualityFlagToEntity, remoteQualityFlagFullVOToEntity, remoteQualityFlagNaturalIdToEntity
 

Constructor Detail

QualityFlagDaoBase

public QualityFlagDaoBase()
Method Detail

load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

Specified by:
create in interface QualityFlagDao
See Also:
QualityFlagDao.create(fr.ifremer.allegro.referential.QualityFlag)

create

public java.lang.Object create(int transform,
                               QualityFlag qualityFlag)
Description copied from interface: QualityFlagDao

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

create

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

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

create

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

Does the same thing as QualityFlagDao.create(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 entities (into value objects for example). By default, transformation does not occur.

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

create

public QualityFlag create(java.lang.String code,
                          java.lang.String name)
Description copied from interface: QualityFlagDao

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

Specified by:
create in interface QualityFlagDao
See Also:
QualityFlagDao.create(java.lang.String,java.lang.String)

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.lang.String name)
Description copied from interface: QualityFlagDao

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

update

public void update(QualityFlag qualityFlag)
Description copied from interface: QualityFlagDao
Updates the qualityFlag instance in the persistent store.

Specified by:
update in interface QualityFlagDao
See Also:
QualityFlagDao.update(fr.ifremer.allegro.referential.QualityFlag)

update

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

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

remove

public void remove(QualityFlag qualityFlag)
Description copied from interface: QualityFlagDao
Removes the instance of fr.ifremer.allegro.referential.QualityFlag from the persistent store.

Specified by:
remove in interface QualityFlagDao
See Also:
QualityFlagDao.remove(fr.ifremer.allegro.referential.QualityFlag)

remove

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

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

remove

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

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

getAllQualityFlag

public java.util.Collection getAllQualityFlag()
Specified by:
getAllQualityFlag in interface QualityFlagDao
See Also:
QualityFlagDao.getAllQualityFlag()

getAllQualityFlag

public java.util.Collection getAllQualityFlag(int transform)
Description copied from interface: QualityFlagDao

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

getAllQualityFlag

public java.util.Collection getAllQualityFlag(java.lang.String queryString)
Description copied from interface: QualityFlagDao

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

Specified by:
getAllQualityFlag in interface QualityFlagDao
See Also:
QualityFlagDao.getAllQualityFlag(java.lang.String)

getAllQualityFlag

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

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

getAllQualityFlag

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

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

getAllQualityFlag

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

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

Specified by:
getAllQualityFlag in interface QualityFlagDao
See Also:
QualityFlagDao.getAllQualityFlag(int, String)

getAllQualityFlag

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

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

getAllQualityFlag

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

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

findQualityFlagByCode

public QualityFlag findQualityFlagByCode(java.lang.String code)
Specified by:
findQualityFlagByCode in interface QualityFlagDao
See Also:
QualityFlagDao.findQualityFlagByCode(java.lang.String)

findQualityFlagByCode

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

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

findQualityFlagByCode

public QualityFlag findQualityFlagByCode(java.lang.String queryString,
                                         java.lang.String code)
Description copied from interface: QualityFlagDao

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

Specified by:
findQualityFlagByCode in interface QualityFlagDao
See Also:
QualityFlagDao.findQualityFlagByCode(java.lang.String, java.lang.String)

findQualityFlagByCode

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

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

Specified by:
findQualityFlagByCode in interface QualityFlagDao
See Also:
QualityFlagDao.findQualityFlagByCode(int, java.lang.String, java.lang.String)

findQualityFlagByNaturalId

public QualityFlag findQualityFlagByNaturalId(java.lang.String code)
Specified by:
findQualityFlagByNaturalId in interface QualityFlagDao
See Also:
QualityFlagDao.findQualityFlagByNaturalId(java.lang.String)

findQualityFlagByNaturalId

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

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

findQualityFlagByNaturalId

public QualityFlag findQualityFlagByNaturalId(java.lang.String queryString,
                                              java.lang.String code)
Description copied from interface: QualityFlagDao

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

Specified by:
findQualityFlagByNaturalId in interface QualityFlagDao
See Also:
QualityFlagDao.findQualityFlagByNaturalId(java.lang.String, java.lang.String)

findQualityFlagByNaturalId

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

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

Specified by:
findQualityFlagByNaturalId in interface QualityFlagDao
See Also:
QualityFlagDao.findQualityFlagByNaturalId(int, java.lang.String, java.lang.String)

createFromClusterQualityFlag

public QualityFlag createFromClusterQualityFlag(ClusterQualityFlag clusterQualityFlag)
Specified by:
createFromClusterQualityFlag in interface QualityFlagDao
See Also:
QualityFlagDao.createFromClusterQualityFlag(fr.ifremer.allegro.referential.generic.cluster.ClusterQualityFlag)

handleCreateFromClusterQualityFlag

protected abstract QualityFlag handleCreateFromClusterQualityFlag(ClusterQualityFlag clusterQualityFlag)
                                                           throws java.lang.Exception
Performs the core logic for createFromClusterQualityFlag(fr.ifremer.allegro.referential.generic.cluster.ClusterQualityFlag)

Throws:
java.lang.Exception

getAllClusterQualityFlag

public ClusterQualityFlag[] getAllClusterQualityFlag(java.lang.Integer userId,
                                                     java.lang.Integer[] registrationLocationIds,
                                                     java.lang.Integer pageNumber,
                                                     java.lang.Integer pageSize)
Specified by:
getAllClusterQualityFlag in interface QualityFlagDao
See Also:
QualityFlagDao.getAllClusterQualityFlag(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterQualityFlag

protected abstract ClusterQualityFlag[] handleGetAllClusterQualityFlag(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 getAllClusterQualityFlag(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           QualityFlag 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.QualityFlagDao, please note that the QualityFlagDao.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 QualityFlagDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteQualityFlagFullVOCollection

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

Specified by:
toRemoteQualityFlagFullVOCollection in interface QualityFlagDao
See Also:
QualityFlagDao.toRemoteQualityFlagFullVOCollection(java.util.Collection)

toRemoteQualityFlagFullVOArray

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

Specified by:
toRemoteQualityFlagFullVOArray in interface QualityFlagDao
See Also:
QualityFlagDao.toRemoteQualityFlagFullVOArray(java.util.Collection)

toRemoteQualityFlagFullVO

protected RemoteQualityFlagFullVO toRemoteQualityFlagFullVO(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 QualityFlagDaoImpl class if you intend to use reporting queries.

See Also:
QualityFlagDao.toRemoteQualityFlagFullVO(fr.ifremer.allegro.referential.QualityFlag)

remoteQualityFlagFullVOToEntityCollection

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

Specified by:
remoteQualityFlagFullVOToEntityCollection in interface QualityFlagDao
See Also:
QualityFlagDao.remoteQualityFlagFullVOToEntityCollection(java.util.Collection)

toRemoteQualityFlagFullVO

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

toRemoteQualityFlagFullVO

public RemoteQualityFlagFullVO toRemoteQualityFlagFullVO(QualityFlag entity)
Description copied from interface: QualityFlagDao
Converts this DAO's entity to an object of type RemoteQualityFlagFullVO.

Specified by:
toRemoteQualityFlagFullVO in interface QualityFlagDao
See Also:
QualityFlagDao.toRemoteQualityFlagFullVO(fr.ifremer.allegro.referential.QualityFlag)

remoteQualityFlagFullVOToEntity

public void remoteQualityFlagFullVOToEntity(RemoteQualityFlagFullVO source,
                                            QualityFlag target,
                                            boolean copyIfNull)
Description copied from interface: QualityFlagDao
Copies the fields of RemoteQualityFlagFullVO to the specified entity.

Specified by:
remoteQualityFlagFullVOToEntity in interface QualityFlagDao
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.QualityFlagDao#remoteQualityFlagFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteQualityFlagFullVO, fr.ifremer.allegro.referential.QualityFlag)

toRemoteQualityFlagNaturalIdCollection

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

Specified by:
toRemoteQualityFlagNaturalIdCollection in interface QualityFlagDao
See Also:
QualityFlagDao.toRemoteQualityFlagNaturalIdCollection(java.util.Collection)

toRemoteQualityFlagNaturalIdArray

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

Specified by:
toRemoteQualityFlagNaturalIdArray in interface QualityFlagDao
See Also:
QualityFlagDao.toRemoteQualityFlagNaturalIdArray(java.util.Collection)

toRemoteQualityFlagNaturalId

protected RemoteQualityFlagNaturalId toRemoteQualityFlagNaturalId(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 QualityFlagDaoImpl class if you intend to use reporting queries.

See Also:
QualityFlagDao.toRemoteQualityFlagNaturalId(fr.ifremer.allegro.referential.QualityFlag)

remoteQualityFlagNaturalIdToEntityCollection

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

Specified by:
remoteQualityFlagNaturalIdToEntityCollection in interface QualityFlagDao
See Also:
QualityFlagDao.remoteQualityFlagNaturalIdToEntityCollection(java.util.Collection)

toRemoteQualityFlagNaturalId

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

toRemoteQualityFlagNaturalId

public RemoteQualityFlagNaturalId toRemoteQualityFlagNaturalId(QualityFlag entity)
Description copied from interface: QualityFlagDao
Converts this DAO's entity to an object of type RemoteQualityFlagNaturalId.

Specified by:
toRemoteQualityFlagNaturalId in interface QualityFlagDao
See Also:
QualityFlagDao.toRemoteQualityFlagNaturalId(fr.ifremer.allegro.referential.QualityFlag)

remoteQualityFlagNaturalIdToEntity

public void remoteQualityFlagNaturalIdToEntity(RemoteQualityFlagNaturalId source,
                                               QualityFlag target,
                                               boolean copyIfNull)
Description copied from interface: QualityFlagDao
Copies the fields of RemoteQualityFlagNaturalId to the specified entity.

Specified by:
remoteQualityFlagNaturalIdToEntity in interface QualityFlagDao
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.QualityFlagDao#remoteQualityFlagNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteQualityFlagNaturalId, fr.ifremer.allegro.referential.QualityFlag)

toClusterQualityFlagCollection

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

Specified by:
toClusterQualityFlagCollection in interface QualityFlagDao
See Also:
QualityFlagDao.toClusterQualityFlagCollection(java.util.Collection)

toClusterQualityFlagArray

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

Specified by:
toClusterQualityFlagArray in interface QualityFlagDao
See Also:
QualityFlagDao.toClusterQualityFlagArray(java.util.Collection)

toClusterQualityFlag

protected ClusterQualityFlag toClusterQualityFlag(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 QualityFlagDaoImpl class if you intend to use reporting queries.

See Also:
QualityFlagDao.toClusterQualityFlag(fr.ifremer.allegro.referential.QualityFlag)

clusterQualityFlagToEntityCollection

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

Specified by:
clusterQualityFlagToEntityCollection in interface QualityFlagDao
See Also:
QualityFlagDao.clusterQualityFlagToEntityCollection(java.util.Collection)

toClusterQualityFlag

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

toClusterQualityFlag

public ClusterQualityFlag toClusterQualityFlag(QualityFlag entity)
Description copied from interface: QualityFlagDao
Converts this DAO's entity to an object of type ClusterQualityFlag.

Specified by:
toClusterQualityFlag in interface QualityFlagDao
See Also:
QualityFlagDao.toClusterQualityFlag(fr.ifremer.allegro.referential.QualityFlag)

clusterQualityFlagToEntity

public void clusterQualityFlagToEntity(ClusterQualityFlag source,
                                       QualityFlag target,
                                       boolean copyIfNull)
Description copied from interface: QualityFlagDao
Copies the fields of ClusterQualityFlag to the specified entity.

Specified by:
clusterQualityFlagToEntity in interface QualityFlagDao
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.QualityFlagDao#clusterQualityFlagToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterQualityFlag, fr.ifremer.allegro.referential.QualityFlag)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.