fr.ifremer.allegro.referential.buyer
Class BuyerDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.buyer.BuyerDaoBase
          extended by fr.ifremer.allegro.referential.buyer.BuyerDaoImpl
All Implemented Interfaces:
BuyerDao

public class BuyerDaoImpl
extends BuyerDaoBase

See Also:
Buyer

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.buyer.BuyerDao
TRANSFORM_CLUSTERBUYER, TRANSFORM_NONE, TRANSFORM_REMOTEBUYERFULLVO, TRANSFORM_REMOTEBUYERNATURALID
 
Constructor Summary
BuyerDaoImpl()
           
 
Method Summary
 Buyer clusterBuyerToEntity(ClusterBuyer clusterBuyer)
          Converts an instance of type ClusterBuyer to this DAO's entity.
 void clusterBuyerToEntity(ClusterBuyer source, Buyer target, boolean copyIfNull)
          Copies the fields of ClusterBuyer to the specified entity.
protected  Buyer handleCreateFromClusterBuyer(ClusterBuyer clusterBuyer)
          Performs the core logic for BuyerDaoBase.createFromClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)
protected  ClusterBuyer[] handleGetAllClusterBuyerSinceDateSynchro(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 BuyerDaoBase.getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Buyer remoteBuyerFullVOToEntity(RemoteBuyerFullVO remoteBuyerFullVO)
          Converts an instance of type RemoteBuyerFullVO to this DAO's entity.
 void remoteBuyerFullVOToEntity(RemoteBuyerFullVO source, Buyer target, boolean copyIfNull)
          Copies the fields of RemoteBuyerFullVO to the specified entity.
 Buyer remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId remoteBuyerNaturalId)
          Converts an instance of type RemoteBuyerNaturalId to this DAO's entity.
 void remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId source, Buyer target, boolean copyIfNull)
          Copies the fields of RemoteBuyerNaturalId to the specified entity.
 ClusterBuyer toClusterBuyer(Buyer entity)
          Converts this DAO's entity to an object of type ClusterBuyer.
 void toClusterBuyer(Buyer source, ClusterBuyer target)
          Copies the fields of the specified entity to the target value object.
 RemoteBuyerFullVO toRemoteBuyerFullVO(Buyer entity)
          Converts this DAO's entity to an object of type RemoteBuyerFullVO.
 void toRemoteBuyerFullVO(Buyer source, RemoteBuyerFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteBuyerNaturalId toRemoteBuyerNaturalId(Buyer entity)
          Converts this DAO's entity to an object of type RemoteBuyerNaturalId.
 void toRemoteBuyerNaturalId(Buyer source, RemoteBuyerNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.referential.buyer.BuyerDaoBase
clusterBuyerToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterBuyer, findBuyerById, findBuyerById, findBuyerById, findBuyerById, findBuyerByNaturalId, findBuyerByNaturalId, findBuyerByNaturalId, findBuyerByNaturalId, findBuyerByStatus, findBuyerByStatus, findBuyerByStatus, findBuyerByStatus, findBuyerByStatus, findBuyerByStatus, findBuyerByStatus, findBuyerByStatus, getAllBuyer, getAllBuyer, getAllBuyer, getAllBuyer, getAllBuyer, getAllBuyer, getAllBuyer, getAllBuyer, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllBuyerSinceDateSynchro, getAllClusterBuyerSinceDateSynchro, getPrincipal, getStatusDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteBuyerFullVOToEntityCollection, remoteBuyerNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setStatusDao, toClusterBuyer, toClusterBuyerArray, toClusterBuyerCollection, toEntity, toRemoteBuyerFullVO, toRemoteBuyerFullVOArray, toRemoteBuyerFullVOCollection, toRemoteBuyerNaturalId, toRemoteBuyerNaturalIdArray, toRemoteBuyerNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuyerDaoImpl

public BuyerDaoImpl()
Method Detail

handleCreateFromClusterBuyer

protected Buyer handleCreateFromClusterBuyer(ClusterBuyer clusterBuyer)
Description copied from class: BuyerDaoBase
Performs the core logic for BuyerDaoBase.createFromClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

Specified by:
handleCreateFromClusterBuyer in class BuyerDaoBase
See Also:
BuyerDao.createFromClusterBuyer(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

handleGetAllClusterBuyerSinceDateSynchro

protected ClusterBuyer[] handleGetAllClusterBuyerSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                  java.lang.Integer userId,
                                                                  java.lang.Integer[] registrationLocationIds,
                                                                  java.lang.Integer pageNumber,
                                                                  java.lang.Integer pageSize)
Description copied from class: BuyerDaoBase
Performs the core logic for BuyerDaoBase.getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterBuyerSinceDateSynchro in class BuyerDaoBase
See Also:
BuyerDao.getAllClusterBuyerSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteBuyerFullVO

public void toRemoteBuyerFullVO(Buyer source,
                                RemoteBuyerFullVO target)
Description copied from interface: BuyerDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteBuyerFullVO(), 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:
toRemoteBuyerFullVO in interface BuyerDao
Overrides:
toRemoteBuyerFullVO in class BuyerDaoBase
See Also:
BuyerDao.toRemoteBuyerFullVO(fr.ifremer.allegro.referential.buyer.Buyer, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

toRemoteBuyerFullVO

public RemoteBuyerFullVO toRemoteBuyerFullVO(Buyer entity)
Description copied from interface: BuyerDao
Converts this DAO's entity to an object of type RemoteBuyerFullVO.

Specified by:
toRemoteBuyerFullVO in interface BuyerDao
Overrides:
toRemoteBuyerFullVO in class BuyerDaoBase
See Also:
BuyerDao.toRemoteBuyerFullVO(fr.ifremer.allegro.referential.buyer.Buyer)

remoteBuyerFullVOToEntity

public Buyer remoteBuyerFullVOToEntity(RemoteBuyerFullVO remoteBuyerFullVO)
Description copied from interface: BuyerDao
Converts an instance of type RemoteBuyerFullVO to this DAO's entity.

See Also:
BuyerDao.remoteBuyerFullVOToEntity(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO)

remoteBuyerFullVOToEntity

public void remoteBuyerFullVOToEntity(RemoteBuyerFullVO source,
                                      Buyer target,
                                      boolean copyIfNull)
Description copied from interface: BuyerDao
Copies the fields of RemoteBuyerFullVO to the specified entity.

Specified by:
remoteBuyerFullVOToEntity in interface BuyerDao
Overrides:
remoteBuyerFullVOToEntity in class BuyerDaoBase
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.buyer.BuyerDao#remoteBuyerFullVOToEntity(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerFullVO, fr.ifremer.allegro.referential.buyer.Buyer)

toRemoteBuyerNaturalId

public void toRemoteBuyerNaturalId(Buyer source,
                                   RemoteBuyerNaturalId target)
Description copied from interface: BuyerDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteBuyerNaturalId(), 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:
toRemoteBuyerNaturalId in interface BuyerDao
Overrides:
toRemoteBuyerNaturalId in class BuyerDaoBase
See Also:
BuyerDao.toRemoteBuyerNaturalId(fr.ifremer.allegro.referential.buyer.Buyer, fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId)

toRemoteBuyerNaturalId

public RemoteBuyerNaturalId toRemoteBuyerNaturalId(Buyer entity)
Description copied from interface: BuyerDao
Converts this DAO's entity to an object of type RemoteBuyerNaturalId.

Specified by:
toRemoteBuyerNaturalId in interface BuyerDao
Overrides:
toRemoteBuyerNaturalId in class BuyerDaoBase
See Also:
BuyerDao.toRemoteBuyerNaturalId(fr.ifremer.allegro.referential.buyer.Buyer)

remoteBuyerNaturalIdToEntity

public Buyer remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId remoteBuyerNaturalId)
Description copied from interface: BuyerDao
Converts an instance of type RemoteBuyerNaturalId to this DAO's entity.

See Also:
BuyerDao.remoteBuyerNaturalIdToEntity(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId)

remoteBuyerNaturalIdToEntity

public void remoteBuyerNaturalIdToEntity(RemoteBuyerNaturalId source,
                                         Buyer target,
                                         boolean copyIfNull)
Description copied from interface: BuyerDao
Copies the fields of RemoteBuyerNaturalId to the specified entity.

Specified by:
remoteBuyerNaturalIdToEntity in interface BuyerDao
Overrides:
remoteBuyerNaturalIdToEntity in class BuyerDaoBase
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.buyer.BuyerDao#remoteBuyerNaturalIdToEntity(fr.ifremer.allegro.referential.buyer.generic.vo.RemoteBuyerNaturalId, fr.ifremer.allegro.referential.buyer.Buyer)

toClusterBuyer

public void toClusterBuyer(Buyer source,
                           ClusterBuyer target)
Description copied from interface: BuyerDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterBuyer(), 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:
toClusterBuyer in interface BuyerDao
Overrides:
toClusterBuyer in class BuyerDaoBase
See Also:
BuyerDao.toClusterBuyer(fr.ifremer.allegro.referential.buyer.Buyer, fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

toClusterBuyer

public ClusterBuyer toClusterBuyer(Buyer entity)
Description copied from interface: BuyerDao
Converts this DAO's entity to an object of type ClusterBuyer.

Specified by:
toClusterBuyer in interface BuyerDao
Overrides:
toClusterBuyer in class BuyerDaoBase
See Also:
BuyerDao.toClusterBuyer(fr.ifremer.allegro.referential.buyer.Buyer)

clusterBuyerToEntity

public Buyer clusterBuyerToEntity(ClusterBuyer clusterBuyer)
Description copied from interface: BuyerDao
Converts an instance of type ClusterBuyer to this DAO's entity.

See Also:
BuyerDao.clusterBuyerToEntity(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer)

clusterBuyerToEntity

public void clusterBuyerToEntity(ClusterBuyer source,
                                 Buyer target,
                                 boolean copyIfNull)
Description copied from interface: BuyerDao
Copies the fields of ClusterBuyer to the specified entity.

Specified by:
clusterBuyerToEntity in interface BuyerDao
Overrides:
clusterBuyerToEntity in class BuyerDaoBase
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.buyer.BuyerDao#clusterBuyerToEntity(fr.ifremer.allegro.referential.buyer.generic.cluster.ClusterBuyer, fr.ifremer.allegro.referential.buyer.Buyer)


Copyright © 2008-2010 IFREMER. All Rights Reserved.