fr.ifremer.allegro.data.sample
Class SampleDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.sample.SampleDaoBase
          extended by fr.ifremer.allegro.data.sample.SampleDaoImpl
All Implemented Interfaces:
SampleDao

public class SampleDaoImpl
extends SampleDaoBase

See Also:
Sample

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.sample.SampleDao
TRANSFORM_CLUSTERSAMPLE, TRANSFORM_NONE, TRANSFORM_REMOTESAMPLEFULLVO, TRANSFORM_REMOTESAMPLENATURALID
 
Constructor Summary
SampleDaoImpl()
           
 
Method Summary
 Sample clusterSampleToEntity(ClusterSample clusterSample)
          Converts an instance of type ClusterSample to this DAO's entity.
 void clusterSampleToEntity(ClusterSample source, Sample target, boolean copyIfNull)
          Copies the fields of ClusterSample to the specified entity.
protected  Sample handleCreateFromClusterSample(ClusterSample clusterSample)
          Performs the core logic for SampleDaoBase.createFromClusterSample(fr.ifremer.allegro.data.sample.generic.cluster.ClusterSample)
protected  ClusterSample[] handleGetAllClusterSampleSinceDateSynchro(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 SampleDaoBase.getAllClusterSampleSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Sample remoteSampleFullVOToEntity(RemoteSampleFullVO remoteSampleFullVO)
          Converts an instance of type RemoteSampleFullVO to this DAO's entity.
 void remoteSampleFullVOToEntity(RemoteSampleFullVO source, Sample target, boolean copyIfNull)
          Copies the fields of RemoteSampleFullVO to the specified entity.
 Sample remoteSampleNaturalIdToEntity(RemoteSampleNaturalId remoteSampleNaturalId)
          Converts an instance of type RemoteSampleNaturalId to this DAO's entity.
 void remoteSampleNaturalIdToEntity(RemoteSampleNaturalId source, Sample target, boolean copyIfNull)
          Copies the fields of RemoteSampleNaturalId to the specified entity.
 ClusterSample toClusterSample(Sample entity)
          Converts this DAO's entity to an object of type ClusterSample.
 void toClusterSample(Sample source, ClusterSample target)
          Copies the fields of the specified entity to the target value object.
 RemoteSampleFullVO toRemoteSampleFullVO(Sample entity)
          Converts this DAO's entity to an object of type RemoteSampleFullVO.
 void toRemoteSampleFullVO(Sample source, RemoteSampleFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteSampleNaturalId toRemoteSampleNaturalId(Sample entity)
          Converts this DAO's entity to an object of type RemoteSampleNaturalId.
 void toRemoteSampleNaturalId(Sample source, RemoteSampleNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.data.sample.SampleDaoBase
clusterSampleToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterSample, findSampleByBatch, findSampleByBatch, findSampleByBatch, findSampleByBatch, findSampleByBatch, findSampleByBatch, findSampleByBatch, findSampleByBatch, findSampleByFishingOperation, findSampleByFishingOperation, findSampleByFishingOperation, findSampleByFishingOperation, findSampleByFishingOperation, findSampleByFishingOperation, findSampleByFishingOperation, findSampleByFishingOperation, findSampleById, findSampleById, findSampleById, findSampleById, findSampleByMatrix, findSampleByMatrix, findSampleByMatrix, findSampleByMatrix, findSampleByMatrix, findSampleByMatrix, findSampleByMatrix, findSampleByMatrix, findSampleByNaturalId, findSampleByNaturalId, findSampleByNaturalId, findSampleByNaturalId, findSampleByParentSample, findSampleByParentSample, findSampleByParentSample, findSampleByParentSample, findSampleByParentSample, findSampleByParentSample, findSampleByParentSample, findSampleByParentSample, findSampleByProgram, findSampleByProgram, findSampleByProgram, findSampleByProgram, findSampleByProgram, findSampleByProgram, findSampleByProgram, findSampleByProgram, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByQualityFlag, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderDepartment, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByRecorderUser, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleByReferenceTaxon, findSampleBySizeUnit, findSampleBySizeUnit, findSampleBySizeUnit, findSampleBySizeUnit, findSampleBySizeUnit, findSampleBySizeUnit, findSampleBySizeUnit, findSampleBySizeUnit, findSampleByTaxonGroup, findSampleByTaxonGroup, findSampleByTaxonGroup, findSampleByTaxonGroup, findSampleByTaxonGroup, findSampleByTaxonGroup, findSampleByTaxonGroup, findSampleByTaxonGroup, getAllClusterSampleSinceDateSynchro, getAllSample, getAllSample, getAllSample, getAllSample, getAllSample, getAllSample, getAllSample, getAllSample, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getAllSampleSinceDateSynchro, getBatchDao, getDepartmentDao, getFishingAreaDao, getFishingOperationDao, getMatrixDao, getPrincipal, getProgramDao, getQualityFlagDao, getReferenceTaxonDao, getSampleDao, getSampleMeasurementDao, getTaxonGroupDao, getUnitDao, getUserDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteSampleFullVOToEntityCollection, remoteSampleNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setBatchDao, setDepartmentDao, setFishingAreaDao, setFishingOperationDao, setMatrixDao, setProgramDao, setQualityFlagDao, setReferenceTaxonDao, setSampleDao, setSampleMeasurementDao, setTaxonGroupDao, setUnitDao, setUserDao, toClusterSample, toClusterSampleArray, toClusterSampleCollection, toEntity, toRemoteSampleFullVO, toRemoteSampleFullVOArray, toRemoteSampleFullVOCollection, toRemoteSampleNaturalId, toRemoteSampleNaturalIdArray, toRemoteSampleNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleDaoImpl

public SampleDaoImpl()
Method Detail

handleCreateFromClusterSample

protected Sample handleCreateFromClusterSample(ClusterSample clusterSample)
Description copied from class: SampleDaoBase
Performs the core logic for SampleDaoBase.createFromClusterSample(fr.ifremer.allegro.data.sample.generic.cluster.ClusterSample)

Specified by:
handleCreateFromClusterSample in class SampleDaoBase
See Also:
SampleDao.createFromClusterSample(fr.ifremer.allegro.data.sample.generic.cluster.ClusterSample)

handleGetAllClusterSampleSinceDateSynchro

protected ClusterSample[] handleGetAllClusterSampleSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                    java.lang.Integer userId,
                                                                    java.lang.Integer[] registrationLocationIds,
                                                                    java.lang.Integer pageNumber,
                                                                    java.lang.Integer pageSize)
Description copied from class: SampleDaoBase
Performs the core logic for SampleDaoBase.getAllClusterSampleSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterSampleSinceDateSynchro in class SampleDaoBase
See Also:
SampleDao.getAllClusterSampleSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteSampleFullVO

public void toRemoteSampleFullVO(Sample source,
                                 RemoteSampleFullVO target)
Description copied from interface: SampleDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSampleFullVO(), 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:
toRemoteSampleFullVO in interface SampleDao
Overrides:
toRemoteSampleFullVO in class SampleDaoBase
See Also:
SampleDao.toRemoteSampleFullVO(fr.ifremer.allegro.data.sample.Sample, fr.ifremer.allegro.data.sample.generic.vo.RemoteSampleFullVO)

toRemoteSampleFullVO

public RemoteSampleFullVO toRemoteSampleFullVO(Sample entity)
Description copied from interface: SampleDao
Converts this DAO's entity to an object of type RemoteSampleFullVO.

Specified by:
toRemoteSampleFullVO in interface SampleDao
Overrides:
toRemoteSampleFullVO in class SampleDaoBase
See Also:
SampleDao.toRemoteSampleFullVO(fr.ifremer.allegro.data.sample.Sample)

remoteSampleFullVOToEntity

public Sample remoteSampleFullVOToEntity(RemoteSampleFullVO remoteSampleFullVO)
Description copied from interface: SampleDao
Converts an instance of type RemoteSampleFullVO to this DAO's entity.

See Also:
SampleDao.remoteSampleFullVOToEntity(fr.ifremer.allegro.data.sample.generic.vo.RemoteSampleFullVO)

remoteSampleFullVOToEntity

public void remoteSampleFullVOToEntity(RemoteSampleFullVO source,
                                       Sample target,
                                       boolean copyIfNull)
Description copied from interface: SampleDao
Copies the fields of RemoteSampleFullVO to the specified entity.

Specified by:
remoteSampleFullVOToEntity in interface SampleDao
Overrides:
remoteSampleFullVOToEntity in class SampleDaoBase
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.data.sample.SampleDao#remoteSampleFullVOToEntity(fr.ifremer.allegro.data.sample.generic.vo.RemoteSampleFullVO, fr.ifremer.allegro.data.sample.Sample)

toRemoteSampleNaturalId

public void toRemoteSampleNaturalId(Sample source,
                                    RemoteSampleNaturalId target)
Description copied from interface: SampleDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSampleNaturalId(), 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:
toRemoteSampleNaturalId in interface SampleDao
Overrides:
toRemoteSampleNaturalId in class SampleDaoBase
See Also:
SampleDao.toRemoteSampleNaturalId(fr.ifremer.allegro.data.sample.Sample, fr.ifremer.allegro.data.sample.generic.vo.RemoteSampleNaturalId)

toRemoteSampleNaturalId

public RemoteSampleNaturalId toRemoteSampleNaturalId(Sample entity)
Description copied from interface: SampleDao
Converts this DAO's entity to an object of type RemoteSampleNaturalId.

Specified by:
toRemoteSampleNaturalId in interface SampleDao
Overrides:
toRemoteSampleNaturalId in class SampleDaoBase
See Also:
SampleDao.toRemoteSampleNaturalId(fr.ifremer.allegro.data.sample.Sample)

remoteSampleNaturalIdToEntity

public Sample remoteSampleNaturalIdToEntity(RemoteSampleNaturalId remoteSampleNaturalId)
Description copied from interface: SampleDao
Converts an instance of type RemoteSampleNaturalId to this DAO's entity.

See Also:
SampleDao.remoteSampleNaturalIdToEntity(fr.ifremer.allegro.data.sample.generic.vo.RemoteSampleNaturalId)

remoteSampleNaturalIdToEntity

public void remoteSampleNaturalIdToEntity(RemoteSampleNaturalId source,
                                          Sample target,
                                          boolean copyIfNull)
Description copied from interface: SampleDao
Copies the fields of RemoteSampleNaturalId to the specified entity.

Specified by:
remoteSampleNaturalIdToEntity in interface SampleDao
Overrides:
remoteSampleNaturalIdToEntity in class SampleDaoBase
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.data.sample.SampleDao#remoteSampleNaturalIdToEntity(fr.ifremer.allegro.data.sample.generic.vo.RemoteSampleNaturalId, fr.ifremer.allegro.data.sample.Sample)

toClusterSample

public void toClusterSample(Sample source,
                            ClusterSample target)
Description copied from interface: SampleDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterSample(), 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:
toClusterSample in interface SampleDao
Overrides:
toClusterSample in class SampleDaoBase
See Also:
SampleDao.toClusterSample(fr.ifremer.allegro.data.sample.Sample, fr.ifremer.allegro.data.sample.generic.cluster.ClusterSample)

toClusterSample

public ClusterSample toClusterSample(Sample entity)
Description copied from interface: SampleDao
Converts this DAO's entity to an object of type ClusterSample.

Specified by:
toClusterSample in interface SampleDao
Overrides:
toClusterSample in class SampleDaoBase
See Also:
SampleDao.toClusterSample(fr.ifremer.allegro.data.sample.Sample)

clusterSampleToEntity

public Sample clusterSampleToEntity(ClusterSample clusterSample)
Description copied from interface: SampleDao
Converts an instance of type ClusterSample to this DAO's entity.

See Also:
SampleDao.clusterSampleToEntity(fr.ifremer.allegro.data.sample.generic.cluster.ClusterSample)

clusterSampleToEntity

public void clusterSampleToEntity(ClusterSample source,
                                  Sample target,
                                  boolean copyIfNull)
Description copied from interface: SampleDao
Copies the fields of ClusterSample to the specified entity.

Specified by:
clusterSampleToEntity in interface SampleDao
Overrides:
clusterSampleToEntity in class SampleDaoBase
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.data.sample.SampleDao#clusterSampleToEntity(fr.ifremer.allegro.data.sample.generic.cluster.ClusterSample, fr.ifremer.allegro.data.sample.Sample)


Copyright © 2008-2010 IFREMER. All Rights Reserved.