fr.ifremer.allegro.data.batch
Class BatchDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.batch.BatchDaoBase
          extended by fr.ifremer.allegro.data.batch.BatchDaoImpl
All Implemented Interfaces:
BatchDao
Direct Known Subclasses:
CatchBatchDaoBase, SortingBatchDaoBase

public class BatchDaoImpl
extends BatchDaoBase

See Also:
Batch

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.batch.BatchDao
TRANSFORM_CLUSTERBATCH, TRANSFORM_NONE, TRANSFORM_REMOTEBATCHFULLVO, TRANSFORM_REMOTEBATCHNATURALID
 
Constructor Summary
BatchDaoImpl()
           
 
Method Summary
 Batch clusterBatchToEntity(ClusterBatch clusterBatch)
          Converts an instance of type ClusterBatch to this DAO's entity.
 void clusterBatchToEntity(ClusterBatch source, Batch target, boolean copyIfNull)
          Copies the fields of ClusterBatch to the specified entity.
 Batch remoteBatchFullVOToEntity(RemoteBatchFullVO remoteBatchFullVO)
          Converts an instance of type RemoteBatchFullVO to this DAO's entity.
 void remoteBatchFullVOToEntity(RemoteBatchFullVO source, Batch target, boolean copyIfNull)
          Copies the fields of RemoteBatchFullVO to the specified entity.
 Batch remoteBatchNaturalIdToEntity(RemoteBatchNaturalId remoteBatchNaturalId)
          Converts an instance of type RemoteBatchNaturalId to this DAO's entity.
 void remoteBatchNaturalIdToEntity(RemoteBatchNaturalId source, Batch target, boolean copyIfNull)
          Copies the fields of RemoteBatchNaturalId to the specified entity.
 ClusterBatch toClusterBatch(Batch entity)
          Converts this DAO's entity to an object of type ClusterBatch.
 void toClusterBatch(Batch source, ClusterBatch target)
          Copies the fields of the specified entity to the target value object.
 RemoteBatchFullVO toRemoteBatchFullVO(Batch entity)
          Converts this DAO's entity to an object of type RemoteBatchFullVO.
 void toRemoteBatchFullVO(Batch source, RemoteBatchFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteBatchNaturalId toRemoteBatchNaturalId(Batch entity)
          Converts this DAO's entity to an object of type RemoteBatchNaturalId.
 void toRemoteBatchNaturalId(Batch source, RemoteBatchNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.data.batch.BatchDaoBase
clusterBatchToEntityCollection, findBatchById, findBatchById, findBatchById, findBatchById, findBatchByNaturalId, findBatchByNaturalId, findBatchByNaturalId, findBatchByNaturalId, findBatchByParentBatch, findBatchByParentBatch, findBatchByParentBatch, findBatchByParentBatch, findBatchByParentBatch, findBatchByParentBatch, findBatchByParentBatch, findBatchByParentBatch, getAllBatch, getAllBatch, getAllBatch, getAllBatch, getAllBatch, getAllBatch, getAllBatch, getAllBatch, getBatchDao, getPrincipal, getProduceDao, getQuantificationMeasurementDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteBatchFullVOToEntityCollection, remoteBatchNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setBatchDao, setProduceDao, setQuantificationMeasurementDao, toClusterBatch, toClusterBatchArray, toClusterBatchCollection, toEntity, toRemoteBatchFullVO, toRemoteBatchFullVOArray, toRemoteBatchFullVOCollection, toRemoteBatchNaturalId, toRemoteBatchNaturalIdArray, toRemoteBatchNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchDaoImpl

public BatchDaoImpl()
Method Detail

toRemoteBatchFullVO

public void toRemoteBatchFullVO(Batch source,
                                RemoteBatchFullVO target)
Description copied from interface: BatchDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteBatchFullVO(), 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:
toRemoteBatchFullVO in interface BatchDao
Overrides:
toRemoteBatchFullVO in class BatchDaoBase
See Also:
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

toRemoteBatchFullVO

public RemoteBatchFullVO toRemoteBatchFullVO(Batch entity)
Description copied from interface: BatchDao
Converts this DAO's entity to an object of type RemoteBatchFullVO.

Specified by:
toRemoteBatchFullVO in interface BatchDao
Overrides:
toRemoteBatchFullVO in class BatchDaoBase
See Also:
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch)

remoteBatchFullVOToEntity

public Batch remoteBatchFullVOToEntity(RemoteBatchFullVO remoteBatchFullVO)
Description copied from interface: BatchDao
Converts an instance of type RemoteBatchFullVO to this DAO's entity.

See Also:
BatchDao.remoteBatchFullVOToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

remoteBatchFullVOToEntity

public void remoteBatchFullVOToEntity(RemoteBatchFullVO source,
                                      Batch target,
                                      boolean copyIfNull)
Description copied from interface: BatchDao
Copies the fields of RemoteBatchFullVO to the specified entity.

Specified by:
remoteBatchFullVOToEntity in interface BatchDao
Overrides:
remoteBatchFullVOToEntity in class BatchDaoBase
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.batch.BatchDao#remoteBatchFullVOToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.Batch)

toRemoteBatchNaturalId

public void toRemoteBatchNaturalId(Batch source,
                                   RemoteBatchNaturalId target)
Description copied from interface: BatchDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteBatchNaturalId(), 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:
toRemoteBatchNaturalId in interface BatchDao
Overrides:
toRemoteBatchNaturalId in class BatchDaoBase
See Also:
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)

toRemoteBatchNaturalId

public RemoteBatchNaturalId toRemoteBatchNaturalId(Batch entity)
Description copied from interface: BatchDao
Converts this DAO's entity to an object of type RemoteBatchNaturalId.

Specified by:
toRemoteBatchNaturalId in interface BatchDao
Overrides:
toRemoteBatchNaturalId in class BatchDaoBase
See Also:
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch)

remoteBatchNaturalIdToEntity

public Batch remoteBatchNaturalIdToEntity(RemoteBatchNaturalId remoteBatchNaturalId)
Description copied from interface: BatchDao
Converts an instance of type RemoteBatchNaturalId to this DAO's entity.

See Also:
BatchDao.remoteBatchNaturalIdToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)

remoteBatchNaturalIdToEntity

public void remoteBatchNaturalIdToEntity(RemoteBatchNaturalId source,
                                         Batch target,
                                         boolean copyIfNull)
Description copied from interface: BatchDao
Copies the fields of RemoteBatchNaturalId to the specified entity.

Specified by:
remoteBatchNaturalIdToEntity in interface BatchDao
Overrides:
remoteBatchNaturalIdToEntity in class BatchDaoBase
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.batch.BatchDao#remoteBatchNaturalIdToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId, fr.ifremer.allegro.data.batch.Batch)

toClusterBatch

public void toClusterBatch(Batch source,
                           ClusterBatch target)
Description copied from interface: BatchDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterBatch(), 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:
toClusterBatch in interface BatchDao
Overrides:
toClusterBatch in class BatchDaoBase
See Also:
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch)

toClusterBatch

public ClusterBatch toClusterBatch(Batch entity)
Description copied from interface: BatchDao
Converts this DAO's entity to an object of type ClusterBatch.

Specified by:
toClusterBatch in interface BatchDao
Overrides:
toClusterBatch in class BatchDaoBase
See Also:
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch)

clusterBatchToEntity

public Batch clusterBatchToEntity(ClusterBatch clusterBatch)
Description copied from interface: BatchDao
Converts an instance of type ClusterBatch to this DAO's entity.

See Also:
BatchDao.clusterBatchToEntity(fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch)

clusterBatchToEntity

public void clusterBatchToEntity(ClusterBatch source,
                                 Batch target,
                                 boolean copyIfNull)
Description copied from interface: BatchDao
Copies the fields of ClusterBatch to the specified entity.

Specified by:
clusterBatchToEntity in interface BatchDao
Overrides:
clusterBatchToEntity in class BatchDaoBase
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.batch.BatchDao#clusterBatchToEntity(fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch, fr.ifremer.allegro.data.batch.Batch)


Copyright © 2008-2010 IFREMER. All Rights Reserved.