fr.ifremer.allegro.referential.taxon
Class ReferenceTaxonDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.taxon.ReferenceTaxonDaoBase
All Implemented Interfaces:
ReferenceTaxonDao
Direct Known Subclasses:
ReferenceTaxonDaoImpl

public abstract class ReferenceTaxonDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ReferenceTaxonDao

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

See Also:
ReferenceTaxon

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.taxon.ReferenceTaxonDao
TRANSFORM_CLUSTERREFERENCETAXON, TRANSFORM_NONE, TRANSFORM_REMOTEREFERENCETAXONFULLVO, TRANSFORM_REMOTEREFERENCETAXONNATURALID
 
Constructor Summary
ReferenceTaxonDaoBase()
           
 
Method Summary
 void clusterReferenceTaxonToEntity(ClusterReferenceTaxon source, ReferenceTaxon target, boolean copyIfNull)
          Copies the fields of ClusterReferenceTaxon to the specified entity.
 void clusterReferenceTaxonToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterReferenceTaxon to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ReferenceTaxonDao.create(fr.ifremer.allegro.referential.taxon.ReferenceTaxon) with an additional flag called transform.
 java.lang.Object create(int transform, ReferenceTaxon referenceTaxon)
           Does the same thing as ReferenceTaxonDao.create(fr.ifremer.allegro.referential.taxon.ReferenceTaxon) with an additional flag called transform.
 java.lang.Object create(int transform, java.sql.Timestamp updateDate, java.util.Collection referenceTaxonStrategies)
           Does the same thing as ReferenceTaxonDao.create(java.sql.Timestamp,java.util.Collection) with an additional flag called transform.
 ReferenceTaxon create(ReferenceTaxon referenceTaxon)
          Creates an instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon and adds it to the persistent store.
 ReferenceTaxon create(java.sql.Timestamp updateDate, java.util.Collection referenceTaxonStrategies)
           Creates a new fr.ifremer.allegro.referential.taxon.ReferenceTaxon instance from all attributes and properties and adds it to the persistent store.
 ReferenceTaxon createFromClusterReferenceTaxon(ClusterReferenceTaxon clusterReferenceTaxon)
           
 ReferenceTaxon findReferenceTaxonById(java.lang.Integer id)
           
 java.lang.Object findReferenceTaxonById(int transform, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.findReferenceTaxonById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findReferenceTaxonById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.findReferenceTaxonById(int, java.lang.Integer) with an additional argument called queryString.
 ReferenceTaxon findReferenceTaxonById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.findReferenceTaxonById(java.lang.Integer) with an additional argument called queryString.
 ReferenceTaxon findReferenceTaxonByNaturalId(java.lang.Integer id)
           
 java.lang.Object findReferenceTaxonByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.findReferenceTaxonByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findReferenceTaxonByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.findReferenceTaxonByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 ReferenceTaxon findReferenceTaxonByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.findReferenceTaxonByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterReferenceTaxon[] getAllClusterReferenceTaxonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllReferenceTaxon()
           
 java.util.Collection getAllReferenceTaxon(int transform)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon() with an additional flag called transform.
 java.util.Collection getAllReferenceTaxon(int pageNumber, int pageSize)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxon(int transform, int pageNumber, int pageSize)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxon(int transform, java.lang.String queryString)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon(int) with an additional argument called queryString.
 java.util.Collection getAllReferenceTaxon(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxon(java.lang.String queryString)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon() with an additional argument called queryString.
 java.util.Collection getAllReferenceTaxon(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxon(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceTaxonDao.getAllReferenceTaxonSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllReferenceTaxonSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  ReferenceTaxonStrategyDao getReferenceTaxonStrategyDao()
          Gets the reference to referenceTaxonStrategyDao.
protected abstract  ReferenceTaxon handleCreateFromClusterReferenceTaxon(ClusterReferenceTaxon clusterReferenceTaxon)
          Performs the core logic for createFromClusterReferenceTaxon(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceTaxon)
protected abstract  ClusterReferenceTaxon[] handleGetAllClusterReferenceTaxonSinceDateSynchro(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 getAllClusterReferenceTaxonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 ReferenceTaxon load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as ReferenceTaxonDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type ReferenceTaxon.
 java.util.Collection loadAll(int transform)
           Does the same thing as ReferenceTaxonDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ReferenceTaxonDao.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 ReferenceTaxonDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteReferenceTaxonFullVOToEntity(RemoteReferenceTaxonFullVO source, ReferenceTaxon target, boolean copyIfNull)
          Copies the fields of RemoteReferenceTaxonFullVO to the specified entity.
 void remoteReferenceTaxonFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteReferenceTaxonFullVO to this DAO's entity.
 void remoteReferenceTaxonNaturalIdToEntity(RemoteReferenceTaxonNaturalId source, ReferenceTaxon target, boolean copyIfNull)
          Copies the fields of RemoteReferenceTaxonNaturalId to the specified entity.
 void remoteReferenceTaxonNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteReferenceTaxonNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon having the given identifier from the persistent store.
 void remove(ReferenceTaxon referenceTaxon)
          Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon 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 ReferenceTaxonDao.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 setReferenceTaxonStrategyDao(ReferenceTaxonStrategyDao referenceTaxonStrategyDao)
          Sets the reference to referenceTaxonStrategyDao.
protected  ClusterReferenceTaxon toClusterReferenceTaxon(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterReferenceTaxon toClusterReferenceTaxon(ReferenceTaxon entity)
          Converts this DAO's entity to an object of type ClusterReferenceTaxon.
 void toClusterReferenceTaxon(ReferenceTaxon source, ClusterReferenceTaxon target)
          Copies the fields of the specified entity to the target value object.
 ClusterReferenceTaxon[] toClusterReferenceTaxonArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterReferenceTaxon.
 void toClusterReferenceTaxonCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterReferenceTaxon.
protected  ReferenceTaxon toEntity(java.lang.Object[] row)
           
protected  RemoteReferenceTaxonFullVO toRemoteReferenceTaxonFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteReferenceTaxonFullVO toRemoteReferenceTaxonFullVO(ReferenceTaxon entity)
          Converts this DAO's entity to an object of type RemoteReferenceTaxonFullVO.
 void toRemoteReferenceTaxonFullVO(ReferenceTaxon source, RemoteReferenceTaxonFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteReferenceTaxonFullVO[] toRemoteReferenceTaxonFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteReferenceTaxonFullVO.
 void toRemoteReferenceTaxonFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteReferenceTaxonFullVO.
protected  RemoteReferenceTaxonNaturalId toRemoteReferenceTaxonNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteReferenceTaxonNaturalId toRemoteReferenceTaxonNaturalId(ReferenceTaxon entity)
          Converts this DAO's entity to an object of type RemoteReferenceTaxonNaturalId.
 void toRemoteReferenceTaxonNaturalId(ReferenceTaxon source, RemoteReferenceTaxonNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteReferenceTaxonNaturalId[] toRemoteReferenceTaxonNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteReferenceTaxonNaturalId.
 void toRemoteReferenceTaxonNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteReferenceTaxonNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.taxon.ReferenceTaxon) method.
protected  java.lang.Object transformEntity(int transform, ReferenceTaxon 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.taxon.ReferenceTaxonDao, please note that the ReferenceTaxonDao.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(ReferenceTaxon referenceTaxon)
          Updates the referenceTaxon 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.taxon.ReferenceTaxonDao
clusterReferenceTaxonToEntity, remoteReferenceTaxonFullVOToEntity, remoteReferenceTaxonNaturalIdToEntity
 

Constructor Detail

ReferenceTaxonDaoBase

public ReferenceTaxonDaoBase()
Method Detail

setReferenceTaxonStrategyDao

public void setReferenceTaxonStrategyDao(ReferenceTaxonStrategyDao referenceTaxonStrategyDao)
Sets the reference to referenceTaxonStrategyDao.


getReferenceTaxonStrategyDao

protected ReferenceTaxonStrategyDao getReferenceTaxonStrategyDao()
Gets the reference to referenceTaxonStrategyDao.


load

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

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

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

load

public ReferenceTaxon load(java.lang.Integer id)
Description copied from interface: ReferenceTaxonDao
Loads an instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public ReferenceTaxon create(ReferenceTaxon referenceTaxon)
Description copied from interface: ReferenceTaxonDao
Creates an instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon and adds it to the persistent store.

Specified by:
create in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.create(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

create

public java.lang.Object create(int transform,
                               ReferenceTaxon referenceTaxon)
Description copied from interface: ReferenceTaxonDao

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

create

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

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

create

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

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

create

public ReferenceTaxon create(java.sql.Timestamp updateDate,
                             java.util.Collection referenceTaxonStrategies)
Description copied from interface: ReferenceTaxonDao

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

Specified by:
create in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.create(java.sql.Timestamp,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.sql.Timestamp updateDate,
                               java.util.Collection referenceTaxonStrategies)
Description copied from interface: ReferenceTaxonDao

Does the same thing as ReferenceTaxonDao.create(java.sql.Timestamp,java.util.Collection) 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 ReferenceTaxonDao
See Also:
ReferenceTaxonDao.create(int, java.sql.Timestamp,java.util.Collection)

update

public void update(ReferenceTaxon referenceTaxon)
Description copied from interface: ReferenceTaxonDao
Updates the referenceTaxon instance in the persistent store.

Specified by:
update in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.update(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

update

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

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

remove

public void remove(ReferenceTaxon referenceTaxon)
Description copied from interface: ReferenceTaxonDao
Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon from the persistent store.

Specified by:
remove in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.remove(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

remove

public void remove(java.lang.Integer id)
Description copied from interface: ReferenceTaxonDao
Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceTaxon having the given identifier from the persistent store.

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

remove

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

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

getAllReferenceTaxon

public java.util.Collection getAllReferenceTaxon()
Specified by:
getAllReferenceTaxon in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.getAllReferenceTaxon()

getAllReferenceTaxon

public java.util.Collection getAllReferenceTaxon(int transform)
Description copied from interface: ReferenceTaxonDao

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

getAllReferenceTaxon

public java.util.Collection getAllReferenceTaxon(java.lang.String queryString)
Description copied from interface: ReferenceTaxonDao

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

Specified by:
getAllReferenceTaxon in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.getAllReferenceTaxon(java.lang.String)

getAllReferenceTaxon

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

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

getAllReferenceTaxon

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

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

getAllReferenceTaxon

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

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

Specified by:
getAllReferenceTaxon in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.getAllReferenceTaxon(int, String)

getAllReferenceTaxon

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

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

getAllReferenceTaxon

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

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

findReferenceTaxonById

public ReferenceTaxon findReferenceTaxonById(java.lang.Integer id)
Specified by:
findReferenceTaxonById in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.findReferenceTaxonById(java.lang.Integer)

findReferenceTaxonById

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

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

Specified by:
findReferenceTaxonById in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.findReferenceTaxonById(int, java.lang.Integer)

findReferenceTaxonById

public ReferenceTaxon findReferenceTaxonById(java.lang.String queryString,
                                             java.lang.Integer id)
Description copied from interface: ReferenceTaxonDao

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

Specified by:
findReferenceTaxonById in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.findReferenceTaxonById(java.lang.String, java.lang.Integer)

findReferenceTaxonById

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

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

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

findReferenceTaxonByNaturalId

public ReferenceTaxon findReferenceTaxonByNaturalId(java.lang.Integer id)
Specified by:
findReferenceTaxonByNaturalId in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.findReferenceTaxonByNaturalId(java.lang.Integer)

findReferenceTaxonByNaturalId

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

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

Specified by:
findReferenceTaxonByNaturalId in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.findReferenceTaxonByNaturalId(int, java.lang.Integer)

findReferenceTaxonByNaturalId

public ReferenceTaxon findReferenceTaxonByNaturalId(java.lang.String queryString,
                                                    java.lang.Integer id)
Description copied from interface: ReferenceTaxonDao

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

Specified by:
findReferenceTaxonByNaturalId in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.findReferenceTaxonByNaturalId(java.lang.String, java.lang.Integer)

findReferenceTaxonByNaturalId

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

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

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

getAllReferenceTaxonSinceDateSynchro

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

getAllReferenceTaxonSinceDateSynchro

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

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

getAllReferenceTaxonSinceDateSynchro

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

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

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

getAllReferenceTaxonSinceDateSynchro

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

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

getAllReferenceTaxonSinceDateSynchro

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

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

getAllReferenceTaxonSinceDateSynchro

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

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

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

getAllReferenceTaxonSinceDateSynchro

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

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

getAllReferenceTaxonSinceDateSynchro

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

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

createFromClusterReferenceTaxon

public ReferenceTaxon createFromClusterReferenceTaxon(ClusterReferenceTaxon clusterReferenceTaxon)
Specified by:
createFromClusterReferenceTaxon in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.createFromClusterReferenceTaxon(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceTaxon)

handleCreateFromClusterReferenceTaxon

protected abstract ReferenceTaxon handleCreateFromClusterReferenceTaxon(ClusterReferenceTaxon clusterReferenceTaxon)
                                                                 throws java.lang.Exception
Performs the core logic for createFromClusterReferenceTaxon(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceTaxon)

Throws:
java.lang.Exception

getAllClusterReferenceTaxonSinceDateSynchro

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

handleGetAllClusterReferenceTaxonSinceDateSynchro

protected abstract ClusterReferenceTaxon[] handleGetAllClusterReferenceTaxonSinceDateSynchro(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 getAllClusterReferenceTaxonSinceDateSynchro(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,
                                           ReferenceTaxon 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.taxon.ReferenceTaxonDao, please note that the ReferenceTaxonDao.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 ReferenceTaxonDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteReferenceTaxonFullVOCollection

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

Specified by:
toRemoteReferenceTaxonFullVOCollection in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonFullVOCollection(java.util.Collection)

toRemoteReferenceTaxonFullVOArray

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

Specified by:
toRemoteReferenceTaxonFullVOArray in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonFullVOArray(java.util.Collection)

toRemoteReferenceTaxonFullVO

protected RemoteReferenceTaxonFullVO toRemoteReferenceTaxonFullVO(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 ReferenceTaxonDaoImpl class if you intend to use reporting queries.

See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonFullVO(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

remoteReferenceTaxonFullVOToEntityCollection

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

Specified by:
remoteReferenceTaxonFullVOToEntityCollection in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.remoteReferenceTaxonFullVOToEntityCollection(java.util.Collection)

toRemoteReferenceTaxonFullVO

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

toRemoteReferenceTaxonFullVO

public RemoteReferenceTaxonFullVO toRemoteReferenceTaxonFullVO(ReferenceTaxon entity)
Description copied from interface: ReferenceTaxonDao
Converts this DAO's entity to an object of type RemoteReferenceTaxonFullVO.

Specified by:
toRemoteReferenceTaxonFullVO in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonFullVO(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

remoteReferenceTaxonFullVOToEntity

public void remoteReferenceTaxonFullVOToEntity(RemoteReferenceTaxonFullVO source,
                                               ReferenceTaxon target,
                                               boolean copyIfNull)
Description copied from interface: ReferenceTaxonDao
Copies the fields of RemoteReferenceTaxonFullVO to the specified entity.

Specified by:
remoteReferenceTaxonFullVOToEntity in interface ReferenceTaxonDao
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.taxon.ReferenceTaxonDao#remoteReferenceTaxonFullVOToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceTaxonFullVO, fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

toRemoteReferenceTaxonNaturalIdCollection

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

Specified by:
toRemoteReferenceTaxonNaturalIdCollection in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonNaturalIdCollection(java.util.Collection)

toRemoteReferenceTaxonNaturalIdArray

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

Specified by:
toRemoteReferenceTaxonNaturalIdArray in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonNaturalIdArray(java.util.Collection)

toRemoteReferenceTaxonNaturalId

protected RemoteReferenceTaxonNaturalId toRemoteReferenceTaxonNaturalId(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 ReferenceTaxonDaoImpl class if you intend to use reporting queries.

See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

remoteReferenceTaxonNaturalIdToEntityCollection

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

Specified by:
remoteReferenceTaxonNaturalIdToEntityCollection in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.remoteReferenceTaxonNaturalIdToEntityCollection(java.util.Collection)

toRemoteReferenceTaxonNaturalId

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

toRemoteReferenceTaxonNaturalId

public RemoteReferenceTaxonNaturalId toRemoteReferenceTaxonNaturalId(ReferenceTaxon entity)
Description copied from interface: ReferenceTaxonDao
Converts this DAO's entity to an object of type RemoteReferenceTaxonNaturalId.

Specified by:
toRemoteReferenceTaxonNaturalId in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toRemoteReferenceTaxonNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

remoteReferenceTaxonNaturalIdToEntity

public void remoteReferenceTaxonNaturalIdToEntity(RemoteReferenceTaxonNaturalId source,
                                                  ReferenceTaxon target,
                                                  boolean copyIfNull)
Description copied from interface: ReferenceTaxonDao
Copies the fields of RemoteReferenceTaxonNaturalId to the specified entity.

Specified by:
remoteReferenceTaxonNaturalIdToEntity in interface ReferenceTaxonDao
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.taxon.ReferenceTaxonDao#remoteReferenceTaxonNaturalIdToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceTaxonNaturalId, fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

toClusterReferenceTaxonCollection

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

Specified by:
toClusterReferenceTaxonCollection in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toClusterReferenceTaxonCollection(java.util.Collection)

toClusterReferenceTaxonArray

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

Specified by:
toClusterReferenceTaxonArray in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toClusterReferenceTaxonArray(java.util.Collection)

toClusterReferenceTaxon

protected ClusterReferenceTaxon toClusterReferenceTaxon(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 ReferenceTaxonDaoImpl class if you intend to use reporting queries.

See Also:
ReferenceTaxonDao.toClusterReferenceTaxon(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

clusterReferenceTaxonToEntityCollection

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

Specified by:
clusterReferenceTaxonToEntityCollection in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.clusterReferenceTaxonToEntityCollection(java.util.Collection)

toClusterReferenceTaxon

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

toClusterReferenceTaxon

public ClusterReferenceTaxon toClusterReferenceTaxon(ReferenceTaxon entity)
Description copied from interface: ReferenceTaxonDao
Converts this DAO's entity to an object of type ClusterReferenceTaxon.

Specified by:
toClusterReferenceTaxon in interface ReferenceTaxonDao
See Also:
ReferenceTaxonDao.toClusterReferenceTaxon(fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

clusterReferenceTaxonToEntity

public void clusterReferenceTaxonToEntity(ClusterReferenceTaxon source,
                                          ReferenceTaxon target,
                                          boolean copyIfNull)
Description copied from interface: ReferenceTaxonDao
Copies the fields of ClusterReferenceTaxon to the specified entity.

Specified by:
clusterReferenceTaxonToEntity in interface ReferenceTaxonDao
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.taxon.ReferenceTaxonDao#clusterReferenceTaxonToEntity(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceTaxon, fr.ifremer.allegro.referential.taxon.ReferenceTaxon)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.