fr.ifremer.allegro.data.survey.sale
Class SaleDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.survey.sale.SaleDaoBase
          extended by fr.ifremer.allegro.data.survey.sale.SaleDaoImpl
All Implemented Interfaces:
SaleDao
Direct Known Subclasses:
ObservedSaleDaoBase

public class SaleDaoImpl
extends SaleDaoBase

See Also:
Sale

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.survey.sale.SaleDao
TRANSFORM_CLUSTERSALE, TRANSFORM_NONE, TRANSFORM_REMOTESALEFULLVO, TRANSFORM_REMOTESALENATURALID
 
Constructor Summary
SaleDaoImpl()
           
 
Method Summary
 Sale clusterSaleToEntity(ClusterSale clusterSale)
          Converts an instance of type ClusterSale to this DAO's entity.
 void clusterSaleToEntity(ClusterSale source, Sale target, boolean copyIfNull)
          Copies the fields of ClusterSale to the specified entity.
protected  Sale handleCreateFromClusterSale(ClusterSale clusterSale)
          Performs the core logic for SaleDaoBase.createFromClusterSale(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSale)
protected  ClusterSale[] handleGetAllClusterSaleSinceDateSynchro(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 SaleDaoBase.getAllClusterSaleSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Sale remoteSaleFullVOToEntity(RemoteSaleFullVO remoteSaleFullVO)
          Converts an instance of type RemoteSaleFullVO to this DAO's entity.
 void remoteSaleFullVOToEntity(RemoteSaleFullVO source, Sale target, boolean copyIfNull)
          Copies the fields of RemoteSaleFullVO to the specified entity.
 Sale remoteSaleNaturalIdToEntity(RemoteSaleNaturalId remoteSaleNaturalId)
          Converts an instance of type RemoteSaleNaturalId to this DAO's entity.
 void remoteSaleNaturalIdToEntity(RemoteSaleNaturalId source, Sale target, boolean copyIfNull)
          Copies the fields of RemoteSaleNaturalId to the specified entity.
 ClusterSale toClusterSale(Sale entity)
          Converts this DAO's entity to an object of type ClusterSale.
 void toClusterSale(Sale source, ClusterSale target)
          Copies the fields of the specified entity to the target value object.
 RemoteSaleFullVO toRemoteSaleFullVO(Sale entity)
          Converts this DAO's entity to an object of type RemoteSaleFullVO.
 void toRemoteSaleFullVO(Sale source, RemoteSaleFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteSaleNaturalId toRemoteSaleNaturalId(Sale entity)
          Converts this DAO's entity to an object of type RemoteSaleNaturalId.
 void toRemoteSaleNaturalId(Sale source, RemoteSaleNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.data.survey.sale.SaleDaoBase
clusterSaleToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterSale, findSaleByCatchBatch, findSaleByCatchBatch, findSaleByCatchBatch, findSaleByCatchBatch, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByDeclaredDocumentReference, findSaleByFishingTrip, findSaleByFishingTrip, findSaleByFishingTrip, findSaleByFishingTrip, findSaleByFishingTrip, findSaleByFishingTrip, findSaleByFishingTrip, findSaleByFishingTrip, findSaleById, findSaleById, findSaleById, findSaleById, findSaleByLanding, findSaleByLanding, findSaleByLanding, findSaleByLanding, findSaleByLanding, findSaleByLanding, findSaleByLanding, findSaleByLanding, findSaleByNaturalId, findSaleByNaturalId, findSaleByNaturalId, findSaleByNaturalId, findSaleByProgram, findSaleByProgram, findSaleByProgram, findSaleByProgram, findSaleByProgram, findSaleByProgram, findSaleByProgram, findSaleByProgram, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByQualityFlag, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderDepartment, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleByRecorderPerson, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleLocation, findSaleBySaleType, findSaleBySaleType, findSaleBySaleType, findSaleBySaleType, findSaleBySaleType, findSaleBySaleType, findSaleBySaleType, findSaleBySaleType, findSaleByVessel, findSaleByVessel, findSaleByVessel, findSaleByVessel, findSaleByVessel, findSaleByVessel, findSaleByVessel, findSaleByVessel, getAllClusterSaleSinceDateSynchro, getAllSale, getAllSale, getAllSale, getAllSale, getAllSale, getAllSale, getAllSale, getAllSale, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getAllSaleSinceDateSynchro, getCatchBatchDao, getDeclaredDocumentReferenceDao, getDepartmentDao, getFishingTripDao, getLandingDao, getLocationDao, getPersonDao, getPrincipal, getProgramDao, getQualityFlagDao, getSaleMeasurementDao, getSaleOriginDao, getSaleProduceDao, getSaleTypeDao, getSurveyMeasurementDao, getVesselDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteSaleFullVOToEntityCollection, remoteSaleNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setCatchBatchDao, setDeclaredDocumentReferenceDao, setDepartmentDao, setFishingTripDao, setLandingDao, setLocationDao, setPersonDao, setProgramDao, setQualityFlagDao, setSaleMeasurementDao, setSaleOriginDao, setSaleProduceDao, setSaleTypeDao, setSurveyMeasurementDao, setVesselDao, toClusterSale, toClusterSaleArray, toClusterSaleCollection, toEntity, toRemoteSaleFullVO, toRemoteSaleFullVOArray, toRemoteSaleFullVOCollection, toRemoteSaleNaturalId, toRemoteSaleNaturalIdArray, toRemoteSaleNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaleDaoImpl

public SaleDaoImpl()
Method Detail

handleCreateFromClusterSale

protected Sale handleCreateFromClusterSale(ClusterSale clusterSale)
Description copied from class: SaleDaoBase
Performs the core logic for SaleDaoBase.createFromClusterSale(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSale)

Specified by:
handleCreateFromClusterSale in class SaleDaoBase
See Also:
SaleDao.createFromClusterSale(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSale)

handleGetAllClusterSaleSinceDateSynchro

protected ClusterSale[] handleGetAllClusterSaleSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                java.lang.Integer userId,
                                                                java.lang.Integer[] registrationLocationIds,
                                                                java.lang.Integer pageNumber,
                                                                java.lang.Integer pageSize)
Description copied from class: SaleDaoBase
Performs the core logic for SaleDaoBase.getAllClusterSaleSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterSaleSinceDateSynchro in class SaleDaoBase
See Also:
SaleDao.getAllClusterSaleSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteSaleFullVO

public void toRemoteSaleFullVO(Sale source,
                               RemoteSaleFullVO target)
Description copied from interface: SaleDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSaleFullVO(), 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:
toRemoteSaleFullVO in interface SaleDao
Overrides:
toRemoteSaleFullVO in class SaleDaoBase
See Also:
SaleDao.toRemoteSaleFullVO(fr.ifremer.allegro.data.survey.sale.Sale, fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleFullVO)

toRemoteSaleFullVO

public RemoteSaleFullVO toRemoteSaleFullVO(Sale entity)
Description copied from interface: SaleDao
Converts this DAO's entity to an object of type RemoteSaleFullVO.

Specified by:
toRemoteSaleFullVO in interface SaleDao
Overrides:
toRemoteSaleFullVO in class SaleDaoBase
See Also:
SaleDao.toRemoteSaleFullVO(fr.ifremer.allegro.data.survey.sale.Sale)

remoteSaleFullVOToEntity

public Sale remoteSaleFullVOToEntity(RemoteSaleFullVO remoteSaleFullVO)
Description copied from interface: SaleDao
Converts an instance of type RemoteSaleFullVO to this DAO's entity.

See Also:
SaleDao.remoteSaleFullVOToEntity(fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleFullVO)

remoteSaleFullVOToEntity

public void remoteSaleFullVOToEntity(RemoteSaleFullVO source,
                                     Sale target,
                                     boolean copyIfNull)
Description copied from interface: SaleDao
Copies the fields of RemoteSaleFullVO to the specified entity.

Specified by:
remoteSaleFullVOToEntity in interface SaleDao
Overrides:
remoteSaleFullVOToEntity in class SaleDaoBase
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.survey.sale.SaleDao#remoteSaleFullVOToEntity(fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleFullVO, fr.ifremer.allegro.data.survey.sale.Sale)

toRemoteSaleNaturalId

public void toRemoteSaleNaturalId(Sale source,
                                  RemoteSaleNaturalId target)
Description copied from interface: SaleDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSaleNaturalId(), 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:
toRemoteSaleNaturalId in interface SaleDao
Overrides:
toRemoteSaleNaturalId in class SaleDaoBase
See Also:
SaleDao.toRemoteSaleNaturalId(fr.ifremer.allegro.data.survey.sale.Sale, fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleNaturalId)

toRemoteSaleNaturalId

public RemoteSaleNaturalId toRemoteSaleNaturalId(Sale entity)
Description copied from interface: SaleDao
Converts this DAO's entity to an object of type RemoteSaleNaturalId.

Specified by:
toRemoteSaleNaturalId in interface SaleDao
Overrides:
toRemoteSaleNaturalId in class SaleDaoBase
See Also:
SaleDao.toRemoteSaleNaturalId(fr.ifremer.allegro.data.survey.sale.Sale)

remoteSaleNaturalIdToEntity

public Sale remoteSaleNaturalIdToEntity(RemoteSaleNaturalId remoteSaleNaturalId)
Description copied from interface: SaleDao
Converts an instance of type RemoteSaleNaturalId to this DAO's entity.

See Also:
SaleDao.remoteSaleNaturalIdToEntity(fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleNaturalId)

remoteSaleNaturalIdToEntity

public void remoteSaleNaturalIdToEntity(RemoteSaleNaturalId source,
                                        Sale target,
                                        boolean copyIfNull)
Description copied from interface: SaleDao
Copies the fields of RemoteSaleNaturalId to the specified entity.

Specified by:
remoteSaleNaturalIdToEntity in interface SaleDao
Overrides:
remoteSaleNaturalIdToEntity in class SaleDaoBase
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.survey.sale.SaleDao#remoteSaleNaturalIdToEntity(fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleNaturalId, fr.ifremer.allegro.data.survey.sale.Sale)

toClusterSale

public void toClusterSale(Sale source,
                          ClusterSale target)
Description copied from interface: SaleDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterSale(), 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:
toClusterSale in interface SaleDao
Overrides:
toClusterSale in class SaleDaoBase
See Also:
SaleDao.toClusterSale(fr.ifremer.allegro.data.survey.sale.Sale, fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSale)

toClusterSale

public ClusterSale toClusterSale(Sale entity)
Description copied from interface: SaleDao
Converts this DAO's entity to an object of type ClusterSale.

Specified by:
toClusterSale in interface SaleDao
Overrides:
toClusterSale in class SaleDaoBase
See Also:
SaleDao.toClusterSale(fr.ifremer.allegro.data.survey.sale.Sale)

clusterSaleToEntity

public Sale clusterSaleToEntity(ClusterSale clusterSale)
Description copied from interface: SaleDao
Converts an instance of type ClusterSale to this DAO's entity.

See Also:
SaleDao.clusterSaleToEntity(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSale)

clusterSaleToEntity

public void clusterSaleToEntity(ClusterSale source,
                                Sale target,
                                boolean copyIfNull)
Description copied from interface: SaleDao
Copies the fields of ClusterSale to the specified entity.

Specified by:
clusterSaleToEntity in interface SaleDao
Overrides:
clusterSaleToEntity in class SaleDaoBase
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.survey.sale.SaleDao#clusterSaleToEntity(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSale, fr.ifremer.allegro.data.survey.sale.Sale)


Copyright © 2008-2010 IFREMER. All Rights Reserved.