fr.ifremer.allegro.referential.taxon
Class TaxonomicLevelDaoBase

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

public abstract class TaxonomicLevelDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements TaxonomicLevelDao

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

See Also:
TaxonomicLevel

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.taxon.TaxonomicLevelDao
TRANSFORM_CLUSTERTAXONOMICLEVEL, TRANSFORM_NONE, TRANSFORM_REMOTETAXONOMICLEVELFULLVO, TRANSFORM_REMOTETAXONOMICLEVELNATURALID
 
Constructor Summary
TaxonomicLevelDaoBase()
           
 
Method Summary
 void clusterTaxonomicLevelToEntity(ClusterTaxonomicLevel source, TaxonomicLevel target, boolean copyIfNull)
          Copies the fields of ClusterTaxonomicLevel to the specified entity.
 void clusterTaxonomicLevelToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterTaxonomicLevel to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.taxon.TaxonomicLevel and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as TaxonomicLevelDao.create(fr.ifremer.allegro.referential.taxon.TaxonomicLevel) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.String name, java.lang.Integer rank, Status status)
           Does the same thing as TaxonomicLevelDao.create(java.lang.String,java.util.Date,java.lang.String,java.lang.Integer,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.Integer rank, java.lang.String name, java.lang.String label, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection taxonNames, Status status)
           Does the same thing as TaxonomicLevelDao.create(java.lang.String,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, TaxonomicLevel taxonomicLevel)
           Does the same thing as TaxonomicLevelDao.create(fr.ifremer.allegro.referential.taxon.TaxonomicLevel) with an additional flag called transform.
 TaxonomicLevel create(java.lang.String code, java.util.Date creationDate, java.lang.String name, java.lang.Integer rank, Status status)
           Creates a new fr.ifremer.allegro.referential.taxon.TaxonomicLevel instance from only required properties (attributes and association ends) and adds it to the persistent store.
 TaxonomicLevel create(java.lang.String code, java.lang.Integer rank, java.lang.String name, java.lang.String label, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection taxonNames, Status status)
           Creates a new fr.ifremer.allegro.referential.taxon.TaxonomicLevel instance from all attributes and properties and adds it to the persistent store.
 TaxonomicLevel create(TaxonomicLevel taxonomicLevel)
          Creates an instance of fr.ifremer.allegro.referential.taxon.TaxonomicLevel and adds it to the persistent store.
 TaxonomicLevel createFromClusterTaxonomicLevel(ClusterTaxonomicLevel clusterTaxonomicLevel)
           
 java.lang.Object findTaxonomicLevelByCode(int transform, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findTaxonomicLevelByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByCode(int, java.lang.String) with an additional argument called queryString.
 TaxonomicLevel findTaxonomicLevelByCode(java.lang.String code)
           
 TaxonomicLevel findTaxonomicLevelByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findTaxonomicLevelByNaturalId(int transform, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findTaxonomicLevelByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByNaturalId(int, java.lang.String) with an additional argument called queryString.
 TaxonomicLevel findTaxonomicLevelByNaturalId(java.lang.String code)
           
 TaxonomicLevel findTaxonomicLevelByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByNaturalId(java.lang.String) with an additional argument called queryString.
 java.util.Collection findTaxonomicLevelByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findTaxonomicLevelByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findTaxonomicLevelByStatus(int transform, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findTaxonomicLevelByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findTaxonomicLevelByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findTaxonomicLevelByStatus(Status status)
           
 java.util.Collection findTaxonomicLevelByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findTaxonomicLevelByStatus(java.lang.String queryString, Status status)
           Does the same thing as TaxonomicLevelDao.findTaxonomicLevelByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterTaxonomicLevel[] getAllClusterTaxonomicLevelSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllTaxonomicLevel()
           
 java.util.Collection getAllTaxonomicLevel(int transform)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel() with an additional flag called transform.
 java.util.Collection getAllTaxonomicLevel(int pageNumber, int pageSize)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevel(int transform, int pageNumber, int pageSize)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevel(int transform, java.lang.String queryString)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel(int) with an additional argument called queryString.
 java.util.Collection getAllTaxonomicLevel(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevel(java.lang.String queryString)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel() with an additional argument called queryString.
 java.util.Collection getAllTaxonomicLevel(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevel(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as TaxonomicLevelDao.getAllTaxonomicLevelSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllTaxonomicLevelSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected  TaxonNameDao getTaxonNameDao()
          Gets the reference to taxonNameDao.
protected abstract  TaxonomicLevel handleCreateFromClusterTaxonomicLevel(ClusterTaxonomicLevel clusterTaxonomicLevel)
          Performs the core logic for createFromClusterTaxonomicLevel(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterTaxonomicLevel)
protected abstract  ClusterTaxonomicLevel[] handleGetAllClusterTaxonomicLevelSinceDateSynchro(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 getAllClusterTaxonomicLevelSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 java.lang.Object load(int transform, java.lang.String code)
           Does the same thing as TaxonomicLevelDao.load(java.lang.String) with an additional flag called transform.
 TaxonomicLevel load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.referential.taxon.TaxonomicLevel from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type TaxonomicLevel.
 java.util.Collection loadAll(int transform)
           Does the same thing as TaxonomicLevelDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as TaxonomicLevelDao.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 TaxonomicLevelDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteTaxonomicLevelFullVOToEntity(RemoteTaxonomicLevelFullVO source, TaxonomicLevel target, boolean copyIfNull)
          Copies the fields of RemoteTaxonomicLevelFullVO to the specified entity.
 void remoteTaxonomicLevelFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteTaxonomicLevelFullVO to this DAO's entity.
 void remoteTaxonomicLevelNaturalIdToEntity(RemoteTaxonomicLevelNaturalId source, TaxonomicLevel target, boolean copyIfNull)
          Copies the fields of RemoteTaxonomicLevelNaturalId to the specified entity.
 void remoteTaxonomicLevelNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteTaxonomicLevelNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.taxon.TaxonomicLevel having the given identifier from the persistent store.
 void remove(TaxonomicLevel taxonomicLevel)
          Removes the instance of fr.ifremer.allegro.referential.taxon.TaxonomicLevel 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 TaxonomicLevelDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 void setTaxonNameDao(TaxonNameDao taxonNameDao)
          Sets the reference to taxonNameDao.
protected  ClusterTaxonomicLevel toClusterTaxonomicLevel(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterTaxonomicLevel toClusterTaxonomicLevel(TaxonomicLevel entity)
          Converts this DAO's entity to an object of type ClusterTaxonomicLevel.
 void toClusterTaxonomicLevel(TaxonomicLevel source, ClusterTaxonomicLevel target)
          Copies the fields of the specified entity to the target value object.
 ClusterTaxonomicLevel[] toClusterTaxonomicLevelArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterTaxonomicLevel.
 void toClusterTaxonomicLevelCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterTaxonomicLevel.
protected  TaxonomicLevel toEntity(java.lang.Object[] row)
           
protected  RemoteTaxonomicLevelFullVO toRemoteTaxonomicLevelFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteTaxonomicLevelFullVO toRemoteTaxonomicLevelFullVO(TaxonomicLevel entity)
          Converts this DAO's entity to an object of type RemoteTaxonomicLevelFullVO.
 void toRemoteTaxonomicLevelFullVO(TaxonomicLevel source, RemoteTaxonomicLevelFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteTaxonomicLevelFullVO[] toRemoteTaxonomicLevelFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteTaxonomicLevelFullVO.
 void toRemoteTaxonomicLevelFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteTaxonomicLevelFullVO.
protected  RemoteTaxonomicLevelNaturalId toRemoteTaxonomicLevelNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteTaxonomicLevelNaturalId toRemoteTaxonomicLevelNaturalId(TaxonomicLevel entity)
          Converts this DAO's entity to an object of type RemoteTaxonomicLevelNaturalId.
 void toRemoteTaxonomicLevelNaturalId(TaxonomicLevel source, RemoteTaxonomicLevelNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteTaxonomicLevelNaturalId[] toRemoteTaxonomicLevelNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteTaxonomicLevelNaturalId.
 void toRemoteTaxonomicLevelNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteTaxonomicLevelNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.taxon.TaxonomicLevel) method.
protected  java.lang.Object transformEntity(int transform, TaxonomicLevel 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.TaxonomicLevelDao, please note that the TaxonomicLevelDao.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(TaxonomicLevel taxonomicLevel)
          Updates the taxonomicLevel 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.TaxonomicLevelDao
clusterTaxonomicLevelToEntity, remoteTaxonomicLevelFullVOToEntity, remoteTaxonomicLevelNaturalIdToEntity
 

Constructor Detail

TaxonomicLevelDaoBase

public TaxonomicLevelDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setTaxonNameDao

public void setTaxonNameDao(TaxonNameDao taxonNameDao)
Sets the reference to taxonNameDao.


getTaxonNameDao

protected TaxonNameDao getTaxonNameDao()
Gets the reference to taxonNameDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               TaxonomicLevel taxonomicLevel)
Description copied from interface: TaxonomicLevelDao

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

create

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

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

create

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

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

create

public TaxonomicLevel create(java.lang.String code,
                             java.lang.Integer rank,
                             java.lang.String name,
                             java.lang.String label,
                             java.lang.String comments,
                             java.util.Date creationDate,
                             java.sql.Timestamp updateDate,
                             java.util.Collection taxonNames,
                             Status status)
Description copied from interface: TaxonomicLevelDao

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

Specified by:
create in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.create(java.lang.String,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.lang.Integer rank,
                               java.lang.String name,
                               java.lang.String label,
                               java.lang.String comments,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection taxonNames,
                               Status status)
Description copied from interface: TaxonomicLevelDao

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

Specified by:
create in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.create(int, java.lang.String,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.Status)

create

public TaxonomicLevel create(java.lang.String code,
                             java.util.Date creationDate,
                             java.lang.String name,
                             java.lang.Integer rank,
                             Status status)
Description copied from interface: TaxonomicLevelDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.util.Date creationDate,
                               java.lang.String name,
                               java.lang.Integer rank,
                               Status status)
Description copied from interface: TaxonomicLevelDao

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

Specified by:
create in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.create(int, java.lang.String,java.util.Date,java.lang.String,java.lang.Integer,fr.ifremer.allegro.referential.Status)

update

public void update(TaxonomicLevel taxonomicLevel)
Description copied from interface: TaxonomicLevelDao
Updates the taxonomicLevel instance in the persistent store.

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

update

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

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

remove

public void remove(TaxonomicLevel taxonomicLevel)
Description copied from interface: TaxonomicLevelDao
Removes the instance of fr.ifremer.allegro.referential.taxon.TaxonomicLevel from the persistent store.

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

remove

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

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

remove

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

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

getAllTaxonomicLevel

public java.util.Collection getAllTaxonomicLevel()
Specified by:
getAllTaxonomicLevel in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.getAllTaxonomicLevel()

getAllTaxonomicLevel

public java.util.Collection getAllTaxonomicLevel(int transform)
Description copied from interface: TaxonomicLevelDao

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

getAllTaxonomicLevel

public java.util.Collection getAllTaxonomicLevel(java.lang.String queryString)
Description copied from interface: TaxonomicLevelDao

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

Specified by:
getAllTaxonomicLevel in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.getAllTaxonomicLevel(java.lang.String)

getAllTaxonomicLevel

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

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

getAllTaxonomicLevel

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

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

getAllTaxonomicLevel

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

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

Specified by:
getAllTaxonomicLevel in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.getAllTaxonomicLevel(int, String)

getAllTaxonomicLevel

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

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

getAllTaxonomicLevel

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

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

findTaxonomicLevelByCode

public TaxonomicLevel findTaxonomicLevelByCode(java.lang.String code)
Specified by:
findTaxonomicLevelByCode in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByCode(java.lang.String)

findTaxonomicLevelByCode

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

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

findTaxonomicLevelByCode

public TaxonomicLevel findTaxonomicLevelByCode(java.lang.String queryString,
                                               java.lang.String code)
Description copied from interface: TaxonomicLevelDao

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

Specified by:
findTaxonomicLevelByCode in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByCode(java.lang.String, java.lang.String)

findTaxonomicLevelByCode

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

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

Specified by:
findTaxonomicLevelByCode in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByCode(int, java.lang.String, java.lang.String)

findTaxonomicLevelByStatus

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

findTaxonomicLevelByStatus

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

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

Specified by:
findTaxonomicLevelByStatus in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByStatus(int, fr.ifremer.allegro.referential.Status)

findTaxonomicLevelByStatus

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

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

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

findTaxonomicLevelByStatus

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

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

Specified by:
findTaxonomicLevelByStatus in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByStatus(int, int, fr.ifremer.allegro.referential.Status)

findTaxonomicLevelByStatus

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

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

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

findTaxonomicLevelByStatus

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

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

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

findTaxonomicLevelByStatus

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

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

Specified by:
findTaxonomicLevelByStatus in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findTaxonomicLevelByStatus

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

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

Specified by:
findTaxonomicLevelByStatus in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)

findTaxonomicLevelByNaturalId

public TaxonomicLevel findTaxonomicLevelByNaturalId(java.lang.String code)
Specified by:
findTaxonomicLevelByNaturalId in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByNaturalId(java.lang.String)

findTaxonomicLevelByNaturalId

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

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

findTaxonomicLevelByNaturalId

public TaxonomicLevel findTaxonomicLevelByNaturalId(java.lang.String queryString,
                                                    java.lang.String code)
Description copied from interface: TaxonomicLevelDao

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

Specified by:
findTaxonomicLevelByNaturalId in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByNaturalId(java.lang.String, java.lang.String)

findTaxonomicLevelByNaturalId

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

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

Specified by:
findTaxonomicLevelByNaturalId in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.findTaxonomicLevelByNaturalId(int, java.lang.String, java.lang.String)

getAllTaxonomicLevelSinceDateSynchro

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

getAllTaxonomicLevelSinceDateSynchro

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

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

getAllTaxonomicLevelSinceDateSynchro

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

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

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

getAllTaxonomicLevelSinceDateSynchro

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

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

getAllTaxonomicLevelSinceDateSynchro

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

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

getAllTaxonomicLevelSinceDateSynchro

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

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

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

getAllTaxonomicLevelSinceDateSynchro

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

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

getAllTaxonomicLevelSinceDateSynchro

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

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

createFromClusterTaxonomicLevel

public TaxonomicLevel createFromClusterTaxonomicLevel(ClusterTaxonomicLevel clusterTaxonomicLevel)
Specified by:
createFromClusterTaxonomicLevel in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.createFromClusterTaxonomicLevel(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterTaxonomicLevel)

handleCreateFromClusterTaxonomicLevel

protected abstract TaxonomicLevel handleCreateFromClusterTaxonomicLevel(ClusterTaxonomicLevel clusterTaxonomicLevel)
                                                                 throws java.lang.Exception
Performs the core logic for createFromClusterTaxonomicLevel(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterTaxonomicLevel)

Throws:
java.lang.Exception

getAllClusterTaxonomicLevelSinceDateSynchro

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

handleGetAllClusterTaxonomicLevelSinceDateSynchro

protected abstract ClusterTaxonomicLevel[] handleGetAllClusterTaxonomicLevelSinceDateSynchro(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 getAllClusterTaxonomicLevelSinceDateSynchro(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,
                                           TaxonomicLevel 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.TaxonomicLevelDao, please note that the TaxonomicLevelDao.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 TaxonomicLevelDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteTaxonomicLevelFullVOCollection

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

Specified by:
toRemoteTaxonomicLevelFullVOCollection in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelFullVOCollection(java.util.Collection)

toRemoteTaxonomicLevelFullVOArray

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

Specified by:
toRemoteTaxonomicLevelFullVOArray in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelFullVOArray(java.util.Collection)

toRemoteTaxonomicLevelFullVO

protected RemoteTaxonomicLevelFullVO toRemoteTaxonomicLevelFullVO(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 TaxonomicLevelDaoImpl class if you intend to use reporting queries.

See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelFullVO(fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

remoteTaxonomicLevelFullVOToEntityCollection

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

Specified by:
remoteTaxonomicLevelFullVOToEntityCollection in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.remoteTaxonomicLevelFullVOToEntityCollection(java.util.Collection)

toRemoteTaxonomicLevelFullVO

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

toRemoteTaxonomicLevelFullVO

public RemoteTaxonomicLevelFullVO toRemoteTaxonomicLevelFullVO(TaxonomicLevel entity)
Description copied from interface: TaxonomicLevelDao
Converts this DAO's entity to an object of type RemoteTaxonomicLevelFullVO.

Specified by:
toRemoteTaxonomicLevelFullVO in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelFullVO(fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

remoteTaxonomicLevelFullVOToEntity

public void remoteTaxonomicLevelFullVOToEntity(RemoteTaxonomicLevelFullVO source,
                                               TaxonomicLevel target,
                                               boolean copyIfNull)
Description copied from interface: TaxonomicLevelDao
Copies the fields of RemoteTaxonomicLevelFullVO to the specified entity.

Specified by:
remoteTaxonomicLevelFullVOToEntity in interface TaxonomicLevelDao
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.TaxonomicLevelDao#remoteTaxonomicLevelFullVOToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteTaxonomicLevelFullVO, fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

toRemoteTaxonomicLevelNaturalIdCollection

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

Specified by:
toRemoteTaxonomicLevelNaturalIdCollection in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelNaturalIdCollection(java.util.Collection)

toRemoteTaxonomicLevelNaturalIdArray

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

Specified by:
toRemoteTaxonomicLevelNaturalIdArray in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelNaturalIdArray(java.util.Collection)

toRemoteTaxonomicLevelNaturalId

protected RemoteTaxonomicLevelNaturalId toRemoteTaxonomicLevelNaturalId(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 TaxonomicLevelDaoImpl class if you intend to use reporting queries.

See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelNaturalId(fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

remoteTaxonomicLevelNaturalIdToEntityCollection

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

Specified by:
remoteTaxonomicLevelNaturalIdToEntityCollection in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.remoteTaxonomicLevelNaturalIdToEntityCollection(java.util.Collection)

toRemoteTaxonomicLevelNaturalId

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

toRemoteTaxonomicLevelNaturalId

public RemoteTaxonomicLevelNaturalId toRemoteTaxonomicLevelNaturalId(TaxonomicLevel entity)
Description copied from interface: TaxonomicLevelDao
Converts this DAO's entity to an object of type RemoteTaxonomicLevelNaturalId.

Specified by:
toRemoteTaxonomicLevelNaturalId in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toRemoteTaxonomicLevelNaturalId(fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

remoteTaxonomicLevelNaturalIdToEntity

public void remoteTaxonomicLevelNaturalIdToEntity(RemoteTaxonomicLevelNaturalId source,
                                                  TaxonomicLevel target,
                                                  boolean copyIfNull)
Description copied from interface: TaxonomicLevelDao
Copies the fields of RemoteTaxonomicLevelNaturalId to the specified entity.

Specified by:
remoteTaxonomicLevelNaturalIdToEntity in interface TaxonomicLevelDao
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.TaxonomicLevelDao#remoteTaxonomicLevelNaturalIdToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteTaxonomicLevelNaturalId, fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

toClusterTaxonomicLevelCollection

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

Specified by:
toClusterTaxonomicLevelCollection in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toClusterTaxonomicLevelCollection(java.util.Collection)

toClusterTaxonomicLevelArray

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

Specified by:
toClusterTaxonomicLevelArray in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toClusterTaxonomicLevelArray(java.util.Collection)

toClusterTaxonomicLevel

protected ClusterTaxonomicLevel toClusterTaxonomicLevel(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 TaxonomicLevelDaoImpl class if you intend to use reporting queries.

See Also:
TaxonomicLevelDao.toClusterTaxonomicLevel(fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

clusterTaxonomicLevelToEntityCollection

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

Specified by:
clusterTaxonomicLevelToEntityCollection in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.clusterTaxonomicLevelToEntityCollection(java.util.Collection)

toClusterTaxonomicLevel

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

toClusterTaxonomicLevel

public ClusterTaxonomicLevel toClusterTaxonomicLevel(TaxonomicLevel entity)
Description copied from interface: TaxonomicLevelDao
Converts this DAO's entity to an object of type ClusterTaxonomicLevel.

Specified by:
toClusterTaxonomicLevel in interface TaxonomicLevelDao
See Also:
TaxonomicLevelDao.toClusterTaxonomicLevel(fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

clusterTaxonomicLevelToEntity

public void clusterTaxonomicLevelToEntity(ClusterTaxonomicLevel source,
                                          TaxonomicLevel target,
                                          boolean copyIfNull)
Description copied from interface: TaxonomicLevelDao
Copies the fields of ClusterTaxonomicLevel to the specified entity.

Specified by:
clusterTaxonomicLevelToEntity in interface TaxonomicLevelDao
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.TaxonomicLevelDao#clusterTaxonomicLevelToEntity(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterTaxonomicLevel, fr.ifremer.allegro.referential.taxon.TaxonomicLevel)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.