fr.ifremer.allegro.referential.pmfm
Class ParameterDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.pmfm.ParameterDaoBase
All Implemented Interfaces:
ParameterDao
Direct Known Subclasses:
ParameterDaoImpl

public abstract class ParameterDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ParameterDao

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

See Also:
Parameter

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.pmfm.ParameterDao
TRANSFORM_CLUSTERPARAMETER, TRANSFORM_NONE, TRANSFORM_REMOTEPARAMETERFULLVO, TRANSFORM_REMOTEPARAMETERNATURALID
 
Constructor Summary
ParameterDaoBase()
           
 
Method Summary
 void clusterParameterToEntity(ClusterParameter source, Parameter target, boolean copyIfNull)
          Copies the fields of ClusterParameter to the specified entity.
 void clusterParameterToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterParameter to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.pmfm.Parameter and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ParameterDao.create(fr.ifremer.allegro.referential.pmfm.Parameter) with an additional flag called transform.
 java.lang.Object create(int transform, Parameter parameter)
           Does the same thing as ParameterDao.create(fr.ifremer.allegro.referential.pmfm.Parameter) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.Boolean isCalculated, java.lang.Boolean isQualitative, java.lang.Boolean isTaxinomic, java.lang.String name, ParameterGroup parameterGroup, Status status)
           Does the same thing as ParameterDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.Boolean,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.pmfm.ParameterGroup,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.String name, java.lang.String description, java.lang.Boolean isQualitative, java.lang.Boolean isTaxinomic, java.lang.Boolean isCalculated, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection qualitativeValues, ParameterGroup parameterGroup, Status status)
           Does the same thing as ParameterDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.pmfm.ParameterGroup,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 Parameter create(Parameter parameter)
          Creates an instance of fr.ifremer.allegro.referential.pmfm.Parameter and adds it to the persistent store.
 Parameter create(java.lang.String code, java.util.Date creationDate, java.lang.Boolean isCalculated, java.lang.Boolean isQualitative, java.lang.Boolean isTaxinomic, java.lang.String name, ParameterGroup parameterGroup, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Parameter instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Parameter create(java.lang.String code, java.lang.String name, java.lang.String description, java.lang.Boolean isQualitative, java.lang.Boolean isTaxinomic, java.lang.Boolean isCalculated, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection qualitativeValues, ParameterGroup parameterGroup, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Parameter instance from all attributes and properties and adds it to the persistent store.
 Parameter createFromClusterParameter(ClusterParameter clusterParameter)
           
 java.lang.Object findParameterByCode(int transform, java.lang.String code)
           Does the same thing as ParameterDao.findParameterByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findParameterByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as ParameterDao.findParameterByCode(int, java.lang.String) with an additional argument called queryString.
 Parameter findParameterByCode(java.lang.String code)
           
 Parameter findParameterByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as ParameterDao.findParameterByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findParameterByNaturalId(int transform, java.lang.String code)
           Does the same thing as ParameterDao.findParameterByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findParameterByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as ParameterDao.findParameterByNaturalId(int, java.lang.String) with an additional argument called queryString.
 Parameter findParameterByNaturalId(java.lang.String code)
           
 Parameter findParameterByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as ParameterDao.findParameterByNaturalId(java.lang.String) with an additional argument called queryString.
 java.util.Collection findParameterByParameterGroup(int transform, int pageNumber, int pageSize, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(int, fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByParameterGroup(int pageNumber, int pageSize, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByParameterGroup(int transform, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional flag called transform.
 java.util.Collection findParameterByParameterGroup(int transform, java.lang.String queryString, int pageNumber, int pageSize, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(int, String, fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByParameterGroup(int transform, java.lang.String queryString, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(int, fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional argument called queryString.
 java.util.Collection findParameterByParameterGroup(ParameterGroup parameterGroup)
           
 java.util.Collection findParameterByParameterGroup(java.lang.String queryString, int pageNumber, int pageSize, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(String, fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByParameterGroup(java.lang.String queryString, ParameterGroup parameterGroup)
           Does the same thing as ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional argument called queryString.
 java.util.Collection findParameterByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByStatus(int transform, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findParameterByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findParameterByStatus(Status status)
           
 java.util.Collection findParameterByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findParameterByStatus(java.lang.String queryString, Status status)
           Does the same thing as ParameterDao.findParameterByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterParameter[] getAllClusterParameterSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllParameter()
           
 java.util.Collection getAllParameter(int transform)
           Does the same thing as ParameterDao.getAllParameter() with an additional flag called transform.
 java.util.Collection getAllParameter(int pageNumber, int pageSize)
           Does the same thing as ParameterDao.getAllParameter() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameter(int transform, int pageNumber, int pageSize)
           Does the same thing as ParameterDao.getAllParameter(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameter(int transform, java.lang.String queryString)
           Does the same thing as ParameterDao.getAllParameter(int) with an additional argument called queryString.
 java.util.Collection getAllParameter(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ParameterDao.getAllParameter(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameter(java.lang.String queryString)
           Does the same thing as ParameterDao.getAllParameter() with an additional argument called queryString.
 java.util.Collection getAllParameter(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ParameterDao.getAllParameter(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameterSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameterSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameterSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameterSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllParameterSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllParameterSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllParameterSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ParameterDao.getAllParameterSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllParameterSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  ParameterGroupDao getParameterGroupDao()
          Gets the reference to parameterGroupDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  QualitativeValueDao getQualitativeValueDao()
          Gets the reference to qualitativeValueDao.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  Parameter handleCreateFromClusterParameter(ClusterParameter clusterParameter)
          Performs the core logic for createFromClusterParameter(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter)
protected abstract  ClusterParameter[] handleGetAllClusterParameterSinceDateSynchro(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 getAllClusterParameterSinceDateSynchro(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 ParameterDao.load(java.lang.String) with an additional flag called transform.
 Parameter load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.referential.pmfm.Parameter from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type Parameter.
 java.util.Collection loadAll(int transform)
           Does the same thing as ParameterDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ParameterDao.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 ParameterDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteParameterFullVOToEntity(RemoteParameterFullVO source, Parameter target, boolean copyIfNull)
          Copies the fields of RemoteParameterFullVO to the specified entity.
 void remoteParameterFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteParameterFullVO to this DAO's entity.
 void remoteParameterNaturalIdToEntity(RemoteParameterNaturalId source, Parameter target, boolean copyIfNull)
          Copies the fields of RemoteParameterNaturalId to the specified entity.
 void remoteParameterNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteParameterNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Parameter parameter)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Parameter from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Parameter having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as ParameterDao.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 setParameterGroupDao(ParameterGroupDao parameterGroupDao)
          Sets the reference to parameterGroupDao.
 void setQualitativeValueDao(QualitativeValueDao qualitativeValueDao)
          Sets the reference to qualitativeValueDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
protected  ClusterParameter toClusterParameter(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterParameter toClusterParameter(Parameter entity)
          Converts this DAO's entity to an object of type ClusterParameter.
 void toClusterParameter(Parameter source, ClusterParameter target)
          Copies the fields of the specified entity to the target value object.
 ClusterParameter[] toClusterParameterArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterParameter.
 void toClusterParameterCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterParameter.
protected  Parameter toEntity(java.lang.Object[] row)
           
protected  RemoteParameterFullVO toRemoteParameterFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteParameterFullVO toRemoteParameterFullVO(Parameter entity)
          Converts this DAO's entity to an object of type RemoteParameterFullVO.
 void toRemoteParameterFullVO(Parameter source, RemoteParameterFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteParameterFullVO[] toRemoteParameterFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteParameterFullVO.
 void toRemoteParameterFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteParameterFullVO.
protected  RemoteParameterNaturalId toRemoteParameterNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteParameterNaturalId toRemoteParameterNaturalId(Parameter entity)
          Converts this DAO's entity to an object of type RemoteParameterNaturalId.
 void toRemoteParameterNaturalId(Parameter source, RemoteParameterNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteParameterNaturalId[] toRemoteParameterNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteParameterNaturalId.
 void toRemoteParameterNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteParameterNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.pmfm.Parameter) method.
protected  java.lang.Object transformEntity(int transform, Parameter 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.pmfm.ParameterDao, please note that the ParameterDao.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(Parameter parameter)
          Updates the parameter 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.pmfm.ParameterDao
clusterParameterToEntity, remoteParameterFullVOToEntity, remoteParameterNaturalIdToEntity
 

Constructor Detail

ParameterDaoBase

public ParameterDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setParameterGroupDao

public void setParameterGroupDao(ParameterGroupDao parameterGroupDao)
Sets the reference to parameterGroupDao.


getParameterGroupDao

protected ParameterGroupDao getParameterGroupDao()
Gets the reference to parameterGroupDao.


setQualitativeValueDao

public void setQualitativeValueDao(QualitativeValueDao qualitativeValueDao)
Sets the reference to qualitativeValueDao.


getQualitativeValueDao

protected QualitativeValueDao getQualitativeValueDao()
Gets the reference to qualitativeValueDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public Parameter create(Parameter parameter)
Description copied from interface: ParameterDao
Creates an instance of fr.ifremer.allegro.referential.pmfm.Parameter and adds it to the persistent store.

Specified by:
create in interface ParameterDao
See Also:
ParameterDao.create(fr.ifremer.allegro.referential.pmfm.Parameter)

create

public java.lang.Object create(int transform,
                               Parameter parameter)
Description copied from interface: ParameterDao

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

create

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

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

create

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

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

create

public Parameter create(java.lang.String code,
                        java.lang.String name,
                        java.lang.String description,
                        java.lang.Boolean isQualitative,
                        java.lang.Boolean isTaxinomic,
                        java.lang.Boolean isCalculated,
                        java.util.Date creationDate,
                        java.sql.Timestamp updateDate,
                        java.util.Collection qualitativeValues,
                        ParameterGroup parameterGroup,
                        Status status)
Description copied from interface: ParameterDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.Boolean isQualitative,
                               java.lang.Boolean isTaxinomic,
                               java.lang.Boolean isCalculated,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection qualitativeValues,
                               ParameterGroup parameterGroup,
                               Status status)
Description copied from interface: ParameterDao

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

create

public Parameter create(java.lang.String code,
                        java.util.Date creationDate,
                        java.lang.Boolean isCalculated,
                        java.lang.Boolean isQualitative,
                        java.lang.Boolean isTaxinomic,
                        java.lang.String name,
                        ParameterGroup parameterGroup,
                        Status status)
Description copied from interface: ParameterDao

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

Specified by:
create in interface ParameterDao
See Also:
ParameterDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.Boolean,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.pmfm.ParameterGroup,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.util.Date creationDate,
                               java.lang.Boolean isCalculated,
                               java.lang.Boolean isQualitative,
                               java.lang.Boolean isTaxinomic,
                               java.lang.String name,
                               ParameterGroup parameterGroup,
                               Status status)
Description copied from interface: ParameterDao

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

update

public void update(Parameter parameter)
Description copied from interface: ParameterDao
Updates the parameter instance in the persistent store.

Specified by:
update in interface ParameterDao
See Also:
ParameterDao.update(fr.ifremer.allegro.referential.pmfm.Parameter)

update

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

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

remove

public void remove(Parameter parameter)
Description copied from interface: ParameterDao
Removes the instance of fr.ifremer.allegro.referential.pmfm.Parameter from the persistent store.

Specified by:
remove in interface ParameterDao
See Also:
ParameterDao.remove(fr.ifremer.allegro.referential.pmfm.Parameter)

remove

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

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

remove

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

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

getAllParameter

public java.util.Collection getAllParameter()
Specified by:
getAllParameter in interface ParameterDao
See Also:
ParameterDao.getAllParameter()

getAllParameter

public java.util.Collection getAllParameter(int transform)
Description copied from interface: ParameterDao

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

getAllParameter

public java.util.Collection getAllParameter(java.lang.String queryString)
Description copied from interface: ParameterDao

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

Specified by:
getAllParameter in interface ParameterDao
See Also:
ParameterDao.getAllParameter(java.lang.String)

getAllParameter

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

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

getAllParameter

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

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

getAllParameter

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

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

Specified by:
getAllParameter in interface ParameterDao
See Also:
ParameterDao.getAllParameter(int, String)

getAllParameter

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

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

getAllParameter

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

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

findParameterByCode

public Parameter findParameterByCode(java.lang.String code)
Specified by:
findParameterByCode in interface ParameterDao
See Also:
ParameterDao.findParameterByCode(java.lang.String)

findParameterByCode

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

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

findParameterByCode

public Parameter findParameterByCode(java.lang.String queryString,
                                     java.lang.String code)
Description copied from interface: ParameterDao

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

Specified by:
findParameterByCode in interface ParameterDao
See Also:
ParameterDao.findParameterByCode(java.lang.String, java.lang.String)

findParameterByCode

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

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

Specified by:
findParameterByCode in interface ParameterDao
See Also:
ParameterDao.findParameterByCode(int, java.lang.String, java.lang.String)

findParameterByStatus

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

findParameterByStatus

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

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

findParameterByStatus

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

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

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

findParameterByStatus

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

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

findParameterByStatus

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

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

findParameterByStatus

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

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

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

findParameterByStatus

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

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

findParameterByStatus

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

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

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(ParameterGroup parameterGroup)
Specified by:
findParameterByParameterGroup in interface ParameterDao
See Also:
ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup)

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(int transform,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

Does the same thing as ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup) 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:
findParameterByParameterGroup in interface ParameterDao
See Also:
ParameterDao.findParameterByParameterGroup(int, fr.ifremer.allegro.referential.pmfm.ParameterGroup)

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(java.lang.String queryString,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

Does the same thing as ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup).

Specified by:
findParameterByParameterGroup in interface ParameterDao
See Also:
ParameterDao.findParameterByParameterGroup(java.lang.String, fr.ifremer.allegro.referential.pmfm.ParameterGroup)

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(int pageNumber,
                                                          int pageSize,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

Does the same thing as ParameterDao.findParameterByParameterGroup(fr.ifremer.allegro.referential.pmfm.ParameterGroup) 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:
findParameterByParameterGroup in interface ParameterDao
See Also:
ParameterDao.findParameterByParameterGroup(int, int, fr.ifremer.allegro.referential.pmfm.ParameterGroup)

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

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

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(int transform,
                                                          java.lang.String queryString,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

Does the same thing as ParameterDao.findParameterByParameterGroup(int, fr.ifremer.allegro.referential.pmfm.ParameterGroup) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ParameterDao.findParameterByParameterGroup(int, fr.ifremer.allegro.referential.pmfm.ParameterGroup parameterGroup).

Specified by:
findParameterByParameterGroup in interface ParameterDao
See Also:
ParameterDao.findParameterByParameterGroup(int, String, fr.ifremer.allegro.referential.pmfm.ParameterGroup)

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(int transform,
                                                          int pageNumber,
                                                          int pageSize,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

Does the same thing as ParameterDao.findParameterByParameterGroup(int, fr.ifremer.allegro.referential.pmfm.ParameterGroup) 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:
findParameterByParameterGroup in interface ParameterDao
See Also:
ParameterDao.findParameterByParameterGroup(int, int, int, fr.ifremer.allegro.referential.pmfm.ParameterGroup)

findParameterByParameterGroup

public java.util.Collection findParameterByParameterGroup(int transform,
                                                          java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          ParameterGroup parameterGroup)
Description copied from interface: ParameterDao

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

findParameterByNaturalId

public Parameter findParameterByNaturalId(java.lang.String code)
Specified by:
findParameterByNaturalId in interface ParameterDao
See Also:
ParameterDao.findParameterByNaturalId(java.lang.String)

findParameterByNaturalId

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

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

findParameterByNaturalId

public Parameter findParameterByNaturalId(java.lang.String queryString,
                                          java.lang.String code)
Description copied from interface: ParameterDao

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

Specified by:
findParameterByNaturalId in interface ParameterDao
See Also:
ParameterDao.findParameterByNaturalId(java.lang.String, java.lang.String)

findParameterByNaturalId

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

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

Specified by:
findParameterByNaturalId in interface ParameterDao
See Also:
ParameterDao.findParameterByNaturalId(int, java.lang.String, java.lang.String)

getAllParameterSinceDateSynchro

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

getAllParameterSinceDateSynchro

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

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

getAllParameterSinceDateSynchro

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

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

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

getAllParameterSinceDateSynchro

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

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

getAllParameterSinceDateSynchro

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

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

getAllParameterSinceDateSynchro

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

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

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

getAllParameterSinceDateSynchro

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

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

getAllParameterSinceDateSynchro

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

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

createFromClusterParameter

public Parameter createFromClusterParameter(ClusterParameter clusterParameter)
Specified by:
createFromClusterParameter in interface ParameterDao
See Also:
ParameterDao.createFromClusterParameter(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter)

handleCreateFromClusterParameter

protected abstract Parameter handleCreateFromClusterParameter(ClusterParameter clusterParameter)
                                                       throws java.lang.Exception
Performs the core logic for createFromClusterParameter(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter)

Throws:
java.lang.Exception

getAllClusterParameterSinceDateSynchro

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

handleGetAllClusterParameterSinceDateSynchro

protected abstract ClusterParameter[] handleGetAllClusterParameterSinceDateSynchro(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 getAllClusterParameterSinceDateSynchro(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,
                                           Parameter 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.pmfm.ParameterDao, please note that the ParameterDao.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 ParameterDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteParameterFullVOCollection

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

Specified by:
toRemoteParameterFullVOCollection in interface ParameterDao
See Also:
ParameterDao.toRemoteParameterFullVOCollection(java.util.Collection)

toRemoteParameterFullVOArray

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

Specified by:
toRemoteParameterFullVOArray in interface ParameterDao
See Also:
ParameterDao.toRemoteParameterFullVOArray(java.util.Collection)

toRemoteParameterFullVO

protected RemoteParameterFullVO toRemoteParameterFullVO(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 ParameterDaoImpl class if you intend to use reporting queries.

See Also:
ParameterDao.toRemoteParameterFullVO(fr.ifremer.allegro.referential.pmfm.Parameter)

remoteParameterFullVOToEntityCollection

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

Specified by:
remoteParameterFullVOToEntityCollection in interface ParameterDao
See Also:
ParameterDao.remoteParameterFullVOToEntityCollection(java.util.Collection)

toRemoteParameterFullVO

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

toRemoteParameterFullVO

public RemoteParameterFullVO toRemoteParameterFullVO(Parameter entity)
Description copied from interface: ParameterDao
Converts this DAO's entity to an object of type RemoteParameterFullVO.

Specified by:
toRemoteParameterFullVO in interface ParameterDao
See Also:
ParameterDao.toRemoteParameterFullVO(fr.ifremer.allegro.referential.pmfm.Parameter)

remoteParameterFullVOToEntity

public void remoteParameterFullVOToEntity(RemoteParameterFullVO source,
                                          Parameter target,
                                          boolean copyIfNull)
Description copied from interface: ParameterDao
Copies the fields of RemoteParameterFullVO to the specified entity.

Specified by:
remoteParameterFullVOToEntity in interface ParameterDao
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.pmfm.ParameterDao#remoteParameterFullVOToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.Parameter)

toRemoteParameterNaturalIdCollection

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

Specified by:
toRemoteParameterNaturalIdCollection in interface ParameterDao
See Also:
ParameterDao.toRemoteParameterNaturalIdCollection(java.util.Collection)

toRemoteParameterNaturalIdArray

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

Specified by:
toRemoteParameterNaturalIdArray in interface ParameterDao
See Also:
ParameterDao.toRemoteParameterNaturalIdArray(java.util.Collection)

toRemoteParameterNaturalId

protected RemoteParameterNaturalId toRemoteParameterNaturalId(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 ParameterDaoImpl class if you intend to use reporting queries.

See Also:
ParameterDao.toRemoteParameterNaturalId(fr.ifremer.allegro.referential.pmfm.Parameter)

remoteParameterNaturalIdToEntityCollection

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

Specified by:
remoteParameterNaturalIdToEntityCollection in interface ParameterDao
See Also:
ParameterDao.remoteParameterNaturalIdToEntityCollection(java.util.Collection)

toRemoteParameterNaturalId

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

toRemoteParameterNaturalId

public RemoteParameterNaturalId toRemoteParameterNaturalId(Parameter entity)
Description copied from interface: ParameterDao
Converts this DAO's entity to an object of type RemoteParameterNaturalId.

Specified by:
toRemoteParameterNaturalId in interface ParameterDao
See Also:
ParameterDao.toRemoteParameterNaturalId(fr.ifremer.allegro.referential.pmfm.Parameter)

remoteParameterNaturalIdToEntity

public void remoteParameterNaturalIdToEntity(RemoteParameterNaturalId source,
                                             Parameter target,
                                             boolean copyIfNull)
Description copied from interface: ParameterDao
Copies the fields of RemoteParameterNaturalId to the specified entity.

Specified by:
remoteParameterNaturalIdToEntity in interface ParameterDao
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.pmfm.ParameterDao#remoteParameterNaturalIdToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterNaturalId, fr.ifremer.allegro.referential.pmfm.Parameter)

toClusterParameterCollection

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

Specified by:
toClusterParameterCollection in interface ParameterDao
See Also:
ParameterDao.toClusterParameterCollection(java.util.Collection)

toClusterParameterArray

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

Specified by:
toClusterParameterArray in interface ParameterDao
See Also:
ParameterDao.toClusterParameterArray(java.util.Collection)

toClusterParameter

protected ClusterParameter toClusterParameter(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 ParameterDaoImpl class if you intend to use reporting queries.

See Also:
ParameterDao.toClusterParameter(fr.ifremer.allegro.referential.pmfm.Parameter)

clusterParameterToEntityCollection

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

Specified by:
clusterParameterToEntityCollection in interface ParameterDao
See Also:
ParameterDao.clusterParameterToEntityCollection(java.util.Collection)

toClusterParameter

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

toClusterParameter

public ClusterParameter toClusterParameter(Parameter entity)
Description copied from interface: ParameterDao
Converts this DAO's entity to an object of type ClusterParameter.

Specified by:
toClusterParameter in interface ParameterDao
See Also:
ParameterDao.toClusterParameter(fr.ifremer.allegro.referential.pmfm.Parameter)

clusterParameterToEntity

public void clusterParameterToEntity(ClusterParameter source,
                                     Parameter target,
                                     boolean copyIfNull)
Description copied from interface: ParameterDao
Copies the fields of ClusterParameter to the specified entity.

Specified by:
clusterParameterToEntity in interface ParameterDao
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.pmfm.ParameterDao#clusterParameterToEntity(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter, fr.ifremer.allegro.referential.pmfm.Parameter)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.