fr.ifremer.allegro.administration.programStrategy
Class StrategyDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.administration.programStrategy.StrategyDaoBase
          extended by fr.ifremer.allegro.administration.programStrategy.StrategyDaoImpl
All Implemented Interfaces:
StrategyDao

public class StrategyDaoImpl
extends StrategyDaoBase

See Also:
Strategy

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.StrategyDao
TRANSFORM_CLUSTERSTRATEGY, TRANSFORM_NONE, TRANSFORM_REMOTESTRATEGYFULLVO, TRANSFORM_REMOTESTRATEGYNATURALID
 
Constructor Summary
StrategyDaoImpl()
           
 
Method Summary
 Strategy clusterStrategyToEntity(ClusterStrategy clusterStrategy)
          Converts an instance of type ClusterStrategy to this DAO's entity.
 void clusterStrategyToEntity(ClusterStrategy source, Strategy target, boolean copyIfNull)
          Copies the fields of ClusterStrategy to the specified entity.
protected  Strategy handleCreateFromClusterStrategy(ClusterStrategy clusterStrategy)
          Performs the core logic for StrategyDaoBase.createFromClusterStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)
protected  ClusterStrategy[] handleGetAllClusterStrategySinceDateSynchro(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 StrategyDaoBase.getAllClusterStrategySinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Strategy remoteStrategyFullVOToEntity(RemoteStrategyFullVO remoteStrategyFullVO)
          Converts an instance of type RemoteStrategyFullVO to this DAO's entity.
 void remoteStrategyFullVOToEntity(RemoteStrategyFullVO source, Strategy target, boolean copyIfNull)
          Copies the fields of RemoteStrategyFullVO to the specified entity.
 Strategy remoteStrategyNaturalIdToEntity(RemoteStrategyNaturalId remoteStrategyNaturalId)
          Converts an instance of type RemoteStrategyNaturalId to this DAO's entity.
 void remoteStrategyNaturalIdToEntity(RemoteStrategyNaturalId source, Strategy target, boolean copyIfNull)
          Copies the fields of RemoteStrategyNaturalId to the specified entity.
 ClusterStrategy toClusterStrategy(Strategy entity)
          Converts this DAO's entity to an object of type ClusterStrategy.
 void toClusterStrategy(Strategy source, ClusterStrategy target)
          Copies the fields of the specified entity to the target value object.
 RemoteStrategyFullVO toRemoteStrategyFullVO(Strategy entity)
          Converts this DAO's entity to an object of type RemoteStrategyFullVO.
 void toRemoteStrategyFullVO(Strategy source, RemoteStrategyFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteStrategyNaturalId toRemoteStrategyNaturalId(Strategy entity)
          Converts this DAO's entity to an object of type RemoteStrategyNaturalId.
 void toRemoteStrategyNaturalId(Strategy source, RemoteStrategyNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.administration.programStrategy.StrategyDaoBase
clusterStrategyToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterStrategy, findStrategyById, findStrategyById, findStrategyById, findStrategyById, findStrategyByNaturalId, findStrategyByNaturalId, findStrategyByNaturalId, findStrategyByNaturalId, findStrategyByProgram, findStrategyByProgram, findStrategyByProgram, findStrategyByProgram, findStrategyByProgram, findStrategyByProgram, findStrategyByProgram, findStrategyByProgram, getAllClusterStrategySinceDateSynchro, getAllStrategy, getAllStrategy, getAllStrategy, getAllStrategy, getAllStrategy, getAllStrategy, getAllStrategy, getAllStrategy, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAllStrategySinceDateSynchro, getAppliedStrategyDao, getGearDao, getPmfmStrategyDao, getPrincipal, getProgramDao, getReferenceTaxonStrategyDao, getUserDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteStrategyFullVOToEntityCollection, remoteStrategyNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setAppliedStrategyDao, setGearDao, setPmfmStrategyDao, setProgramDao, setReferenceTaxonStrategyDao, setUserDao, toClusterStrategy, toClusterStrategyArray, toClusterStrategyCollection, toEntity, toRemoteStrategyFullVO, toRemoteStrategyFullVOArray, toRemoteStrategyFullVOCollection, toRemoteStrategyNaturalId, toRemoteStrategyNaturalIdArray, toRemoteStrategyNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrategyDaoImpl

public StrategyDaoImpl()
Method Detail

handleCreateFromClusterStrategy

protected Strategy handleCreateFromClusterStrategy(ClusterStrategy clusterStrategy)
Description copied from class: StrategyDaoBase
Performs the core logic for StrategyDaoBase.createFromClusterStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)

Specified by:
handleCreateFromClusterStrategy in class StrategyDaoBase
See Also:
StrategyDao.createFromClusterStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)

handleGetAllClusterStrategySinceDateSynchro

protected ClusterStrategy[] handleGetAllClusterStrategySinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                        java.lang.Integer userId,
                                                                        java.lang.Integer[] registrationLocationIds,
                                                                        java.lang.Integer pageNumber,
                                                                        java.lang.Integer pageSize)
Description copied from class: StrategyDaoBase
Performs the core logic for StrategyDaoBase.getAllClusterStrategySinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterStrategySinceDateSynchro in class StrategyDaoBase
See Also:
StrategyDao.getAllClusterStrategySinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteStrategyFullVO

public void toRemoteStrategyFullVO(Strategy source,
                                   RemoteStrategyFullVO target)
Description copied from interface: StrategyDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteStrategyFullVO(), 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:
toRemoteStrategyFullVO in interface StrategyDao
Overrides:
toRemoteStrategyFullVO in class StrategyDaoBase
See Also:
StrategyDao.toRemoteStrategyFullVO(fr.ifremer.allegro.administration.programStrategy.Strategy, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteStrategyFullVO)

toRemoteStrategyFullVO

public RemoteStrategyFullVO toRemoteStrategyFullVO(Strategy entity)
Description copied from interface: StrategyDao
Converts this DAO's entity to an object of type RemoteStrategyFullVO.

Specified by:
toRemoteStrategyFullVO in interface StrategyDao
Overrides:
toRemoteStrategyFullVO in class StrategyDaoBase
See Also:
StrategyDao.toRemoteStrategyFullVO(fr.ifremer.allegro.administration.programStrategy.Strategy)

remoteStrategyFullVOToEntity

public Strategy remoteStrategyFullVOToEntity(RemoteStrategyFullVO remoteStrategyFullVO)
Description copied from interface: StrategyDao
Converts an instance of type RemoteStrategyFullVO to this DAO's entity.

See Also:
StrategyDao.remoteStrategyFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteStrategyFullVO)

remoteStrategyFullVOToEntity

public void remoteStrategyFullVOToEntity(RemoteStrategyFullVO source,
                                         Strategy target,
                                         boolean copyIfNull)
Description copied from interface: StrategyDao
Copies the fields of RemoteStrategyFullVO to the specified entity.

Specified by:
remoteStrategyFullVOToEntity in interface StrategyDao
Overrides:
remoteStrategyFullVOToEntity in class StrategyDaoBase
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.administration.programStrategy.StrategyDao#remoteStrategyFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteStrategyFullVO, fr.ifremer.allegro.administration.programStrategy.Strategy)

toRemoteStrategyNaturalId

public void toRemoteStrategyNaturalId(Strategy source,
                                      RemoteStrategyNaturalId target)
Description copied from interface: StrategyDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteStrategyNaturalId(), 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:
toRemoteStrategyNaturalId in interface StrategyDao
Overrides:
toRemoteStrategyNaturalId in class StrategyDaoBase
See Also:
StrategyDao.toRemoteStrategyNaturalId(fr.ifremer.allegro.administration.programStrategy.Strategy, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteStrategyNaturalId)

toRemoteStrategyNaturalId

public RemoteStrategyNaturalId toRemoteStrategyNaturalId(Strategy entity)
Description copied from interface: StrategyDao
Converts this DAO's entity to an object of type RemoteStrategyNaturalId.

Specified by:
toRemoteStrategyNaturalId in interface StrategyDao
Overrides:
toRemoteStrategyNaturalId in class StrategyDaoBase
See Also:
StrategyDao.toRemoteStrategyNaturalId(fr.ifremer.allegro.administration.programStrategy.Strategy)

remoteStrategyNaturalIdToEntity

public Strategy remoteStrategyNaturalIdToEntity(RemoteStrategyNaturalId remoteStrategyNaturalId)
Description copied from interface: StrategyDao
Converts an instance of type RemoteStrategyNaturalId to this DAO's entity.

See Also:
StrategyDao.remoteStrategyNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteStrategyNaturalId)

remoteStrategyNaturalIdToEntity

public void remoteStrategyNaturalIdToEntity(RemoteStrategyNaturalId source,
                                            Strategy target,
                                            boolean copyIfNull)
Description copied from interface: StrategyDao
Copies the fields of RemoteStrategyNaturalId to the specified entity.

Specified by:
remoteStrategyNaturalIdToEntity in interface StrategyDao
Overrides:
remoteStrategyNaturalIdToEntity in class StrategyDaoBase
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.administration.programStrategy.StrategyDao#remoteStrategyNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteStrategyNaturalId, fr.ifremer.allegro.administration.programStrategy.Strategy)

toClusterStrategy

public void toClusterStrategy(Strategy source,
                              ClusterStrategy target)
Description copied from interface: StrategyDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterStrategy(), 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:
toClusterStrategy in interface StrategyDao
Overrides:
toClusterStrategy in class StrategyDaoBase
See Also:
StrategyDao.toClusterStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy, fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)

toClusterStrategy

public ClusterStrategy toClusterStrategy(Strategy entity)
Description copied from interface: StrategyDao
Converts this DAO's entity to an object of type ClusterStrategy.

Specified by:
toClusterStrategy in interface StrategyDao
Overrides:
toClusterStrategy in class StrategyDaoBase
See Also:
StrategyDao.toClusterStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy)

clusterStrategyToEntity

public Strategy clusterStrategyToEntity(ClusterStrategy clusterStrategy)
Description copied from interface: StrategyDao
Converts an instance of type ClusterStrategy to this DAO's entity.

See Also:
StrategyDao.clusterStrategyToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)

clusterStrategyToEntity

public void clusterStrategyToEntity(ClusterStrategy source,
                                    Strategy target,
                                    boolean copyIfNull)
Description copied from interface: StrategyDao
Copies the fields of ClusterStrategy to the specified entity.

Specified by:
clusterStrategyToEntity in interface StrategyDao
Overrides:
clusterStrategyToEntity in class StrategyDaoBase
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.administration.programStrategy.StrategyDao#clusterStrategyToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy, fr.ifremer.allegro.administration.programStrategy.Strategy)


Copyright © 2008-2010 IFREMER. All Rights Reserved.