fr.ifremer.allegro.referential.regulation
Class CorpusDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.regulation.CorpusDaoBase
          extended by fr.ifremer.allegro.referential.regulation.CorpusDaoImpl
All Implemented Interfaces:
CorpusDao

public class CorpusDaoImpl
extends CorpusDaoBase

See Also:
Corpus

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.regulation.CorpusDao
TRANSFORM_CLUSTERCORPUS, TRANSFORM_NONE, TRANSFORM_REMOTECORPUSFULLVO, TRANSFORM_REMOTECORPUSNATURALID
 
Constructor Summary
CorpusDaoImpl()
           
 
Method Summary
 Corpus clusterCorpusToEntity(ClusterCorpus clusterCorpus)
          Converts an instance of type ClusterCorpus to this DAO's entity.
 void clusterCorpusToEntity(ClusterCorpus source, Corpus target, boolean copyIfNull)
          Copies the fields of ClusterCorpus to the specified entity.
protected  Corpus handleCreateFromClusterCorpus(ClusterCorpus clusterCorpus)
          Performs the core logic for CorpusDaoBase.createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)
protected  ClusterCorpus[] handleGetAllClusterCorpusSinceDateSynchro(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 CorpusDaoBase.getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Corpus remoteCorpusFullVOToEntity(RemoteCorpusFullVO remoteCorpusFullVO)
          Converts an instance of type RemoteCorpusFullVO to this DAO's entity.
 void remoteCorpusFullVOToEntity(RemoteCorpusFullVO source, Corpus target, boolean copyIfNull)
          Copies the fields of RemoteCorpusFullVO to the specified entity.
 Corpus remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId remoteCorpusNaturalId)
          Converts an instance of type RemoteCorpusNaturalId to this DAO's entity.
 void remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId source, Corpus target, boolean copyIfNull)
          Copies the fields of RemoteCorpusNaturalId to the specified entity.
 ClusterCorpus toClusterCorpus(Corpus entity)
          Converts this DAO's entity to an object of type ClusterCorpus.
 void toClusterCorpus(Corpus source, ClusterCorpus target)
          Copies the fields of the specified entity to the target value object.
 RemoteCorpusFullVO toRemoteCorpusFullVO(Corpus entity)
          Converts this DAO's entity to an object of type RemoteCorpusFullVO.
 void toRemoteCorpusFullVO(Corpus source, RemoteCorpusFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteCorpusNaturalId toRemoteCorpusNaturalId(Corpus entity)
          Converts this DAO's entity to an object of type RemoteCorpusNaturalId.
 void toRemoteCorpusNaturalId(Corpus source, RemoteCorpusNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.referential.regulation.CorpusDaoBase
clusterCorpusToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterCorpus, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusByCorpusType, findCorpusById, findCorpusById, findCorpusById, findCorpusById, findCorpusByNaturalId, findCorpusByNaturalId, findCorpusByNaturalId, findCorpusByNaturalId, findCorpusByRightToProduce, findCorpusByRightToProduce, findCorpusByRightToProduce, findCorpusByRightToProduce, getAllClusterCorpusSinceDateSynchro, getAllCorpus, getAllCorpus, getAllCorpus, getAllCorpus, getAllCorpus, getAllCorpus, getAllCorpus, getAllCorpus, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getAllCorpusSinceDateSynchro, getCorpusTypeDao, getFisheryDao, getMinimumSizeAllowedDao, getPrincipal, getRightToProduceDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteCorpusFullVOToEntityCollection, remoteCorpusNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setCorpusTypeDao, setFisheryDao, setMinimumSizeAllowedDao, setRightToProduceDao, toClusterCorpus, toClusterCorpusArray, toClusterCorpusCollection, toEntity, toRemoteCorpusFullVO, toRemoteCorpusFullVOArray, toRemoteCorpusFullVOCollection, toRemoteCorpusNaturalId, toRemoteCorpusNaturalIdArray, toRemoteCorpusNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorpusDaoImpl

public CorpusDaoImpl()
Method Detail

handleCreateFromClusterCorpus

protected Corpus handleCreateFromClusterCorpus(ClusterCorpus clusterCorpus)
Description copied from class: CorpusDaoBase
Performs the core logic for CorpusDaoBase.createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)

Specified by:
handleCreateFromClusterCorpus in class CorpusDaoBase
See Also:
CorpusDao.createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)

handleGetAllClusterCorpusSinceDateSynchro

protected ClusterCorpus[] handleGetAllClusterCorpusSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                    java.lang.Integer userId,
                                                                    java.lang.Integer[] registrationLocationIds,
                                                                    java.lang.Integer pageNumber,
                                                                    java.lang.Integer pageSize)
Description copied from class: CorpusDaoBase
Performs the core logic for CorpusDaoBase.getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterCorpusSinceDateSynchro in class CorpusDaoBase
See Also:
CorpusDao.getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteCorpusFullVO

public void toRemoteCorpusFullVO(Corpus source,
                                 RemoteCorpusFullVO target)
Description copied from interface: CorpusDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteCorpusFullVO(), 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:
toRemoteCorpusFullVO in interface CorpusDao
Overrides:
toRemoteCorpusFullVO in class CorpusDaoBase
See Also:
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusFullVO)

toRemoteCorpusFullVO

public RemoteCorpusFullVO toRemoteCorpusFullVO(Corpus entity)
Description copied from interface: CorpusDao
Converts this DAO's entity to an object of type RemoteCorpusFullVO.

Specified by:
toRemoteCorpusFullVO in interface CorpusDao
Overrides:
toRemoteCorpusFullVO in class CorpusDaoBase
See Also:
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus)

remoteCorpusFullVOToEntity

public Corpus remoteCorpusFullVOToEntity(RemoteCorpusFullVO remoteCorpusFullVO)
Description copied from interface: CorpusDao
Converts an instance of type RemoteCorpusFullVO to this DAO's entity.

See Also:
CorpusDao.remoteCorpusFullVOToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusFullVO)

remoteCorpusFullVOToEntity

public void remoteCorpusFullVOToEntity(RemoteCorpusFullVO source,
                                       Corpus target,
                                       boolean copyIfNull)
Description copied from interface: CorpusDao
Copies the fields of RemoteCorpusFullVO to the specified entity.

Specified by:
remoteCorpusFullVOToEntity in interface CorpusDao
Overrides:
remoteCorpusFullVOToEntity in class CorpusDaoBase
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.regulation.CorpusDao#remoteCorpusFullVOToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusFullVO, fr.ifremer.allegro.referential.regulation.Corpus)

toRemoteCorpusNaturalId

public void toRemoteCorpusNaturalId(Corpus source,
                                    RemoteCorpusNaturalId target)
Description copied from interface: CorpusDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteCorpusNaturalId(), 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:
toRemoteCorpusNaturalId in interface CorpusDao
Overrides:
toRemoteCorpusNaturalId in class CorpusDaoBase
See Also:
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusNaturalId)

toRemoteCorpusNaturalId

public RemoteCorpusNaturalId toRemoteCorpusNaturalId(Corpus entity)
Description copied from interface: CorpusDao
Converts this DAO's entity to an object of type RemoteCorpusNaturalId.

Specified by:
toRemoteCorpusNaturalId in interface CorpusDao
Overrides:
toRemoteCorpusNaturalId in class CorpusDaoBase
See Also:
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus)

remoteCorpusNaturalIdToEntity

public Corpus remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId remoteCorpusNaturalId)
Description copied from interface: CorpusDao
Converts an instance of type RemoteCorpusNaturalId to this DAO's entity.

See Also:
CorpusDao.remoteCorpusNaturalIdToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusNaturalId)

remoteCorpusNaturalIdToEntity

public void remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId source,
                                          Corpus target,
                                          boolean copyIfNull)
Description copied from interface: CorpusDao
Copies the fields of RemoteCorpusNaturalId to the specified entity.

Specified by:
remoteCorpusNaturalIdToEntity in interface CorpusDao
Overrides:
remoteCorpusNaturalIdToEntity in class CorpusDaoBase
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.regulation.CorpusDao#remoteCorpusNaturalIdToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusNaturalId, fr.ifremer.allegro.referential.regulation.Corpus)

toClusterCorpus

public void toClusterCorpus(Corpus source,
                            ClusterCorpus target)
Description copied from interface: CorpusDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterCorpus(), 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:
toClusterCorpus in interface CorpusDao
Overrides:
toClusterCorpus in class CorpusDaoBase
See Also:
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus, fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)

toClusterCorpus

public ClusterCorpus toClusterCorpus(Corpus entity)
Description copied from interface: CorpusDao
Converts this DAO's entity to an object of type ClusterCorpus.

Specified by:
toClusterCorpus in interface CorpusDao
Overrides:
toClusterCorpus in class CorpusDaoBase
See Also:
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus)

clusterCorpusToEntity

public Corpus clusterCorpusToEntity(ClusterCorpus clusterCorpus)
Description copied from interface: CorpusDao
Converts an instance of type ClusterCorpus to this DAO's entity.

See Also:
CorpusDao.clusterCorpusToEntity(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)

clusterCorpusToEntity

public void clusterCorpusToEntity(ClusterCorpus source,
                                  Corpus target,
                                  boolean copyIfNull)
Description copied from interface: CorpusDao
Copies the fields of ClusterCorpus to the specified entity.

Specified by:
clusterCorpusToEntity in interface CorpusDao
Overrides:
clusterCorpusToEntity in class CorpusDaoBase
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.regulation.CorpusDao#clusterCorpusToEntity(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus, fr.ifremer.allegro.referential.regulation.Corpus)


Copyright © 2008-2010 IFREMER. All Rights Reserved.