fr.ifremer.allegro.administration.programStrategy
Class ProgramDaoImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.administration.programStrategy.ProgramDaoBase
          extended by fr.ifremer.allegro.administration.programStrategy.ProgramDaoImpl
All Implemented Interfaces:
ProgramDao

public class ProgramDaoImpl
extends ProgramDaoBase

See Also:
Program

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.ProgramDao
TRANSFORM_CLUSTERPROGRAM, TRANSFORM_NONE, TRANSFORM_REMOTEPROGRAMFULLVO, TRANSFORM_REMOTEPROGRAMNATURALID
 
Constructor Summary
ProgramDaoImpl()
           
 
Method Summary
 Program clusterProgramToEntity(ClusterProgram clusterProgram)
          Converts an instance of type ClusterProgram to this DAO's entity.
 void clusterProgramToEntity(ClusterProgram source, Program target, boolean copyIfNull)
          Copies the fields of ClusterProgram to the specified entity.
protected  Program handleCreateFromClusterProgram(ClusterProgram clusterProgram)
          Performs the core logic for ProgramDaoBase.createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)
protected  ClusterProgram[] handleGetAllClusterProgramSinceDateSynchro(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 ProgramDaoBase.getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Program remoteProgramFullVOToEntity(RemoteProgramFullVO remoteProgramFullVO)
          Converts an instance of type RemoteProgramFullVO to this DAO's entity.
 void remoteProgramFullVOToEntity(RemoteProgramFullVO source, Program target, boolean copyIfNull)
          Copies the fields of RemoteProgramFullVO to the specified entity.
 Program remoteProgramNaturalIdToEntity(RemoteProgramNaturalId remoteProgramNaturalId)
          Converts an instance of type RemoteProgramNaturalId to this DAO's entity.
 void remoteProgramNaturalIdToEntity(RemoteProgramNaturalId source, Program target, boolean copyIfNull)
          Copies the fields of RemoteProgramNaturalId to the specified entity.
 ClusterProgram toClusterProgram(Program entity)
          Converts this DAO's entity to an object of type ClusterProgram.
 void toClusterProgram(Program source, ClusterProgram target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgramFullVO toRemoteProgramFullVO(Program entity)
          Converts this DAO's entity to an object of type RemoteProgramFullVO.
 void toRemoteProgramFullVO(Program source, RemoteProgramFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgramNaturalId toRemoteProgramNaturalId(Program entity)
          Converts this DAO's entity to an object of type RemoteProgramNaturalId.
 void toRemoteProgramNaturalId(Program source, RemoteProgramNaturalId target)
          Copies the fields of the specified entity to the target value object.
 
Methods inherited from class fr.ifremer.allegro.administration.programStrategy.ProgramDaoBase
clusterProgramToEntityCollection, create, create, create, create, create, create, create, create, createFromClusterProgram, findProgramByCode, findProgramByCode, findProgramByCode, findProgramByCode, findProgramByGearClassification, findProgramByGearClassification, findProgramByGearClassification, findProgramByGearClassification, findProgramByGearClassification, findProgramByGearClassification, findProgramByGearClassification, findProgramByGearClassification, findProgramByNaturalId, findProgramByNaturalId, findProgramByNaturalId, findProgramByNaturalId, getAllClusterProgramSinceDateSynchro, getAllProgram, getAllProgram, getAllProgram, getAllProgram, getAllProgram, getAllProgram, getAllProgram, getAllProgram, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getAllProgramSinceDateSynchro, getGearClassificationDao, getLocationClassificationDao, getLocationDao, getPrincipal, getProgram2DepartmentDao, getProgram2PersonDao, getStrategyDao, load, load, loadAll, loadAll, loadAll, loadAll, remoteProgramFullVOToEntityCollection, remoteProgramNaturalIdToEntityCollection, remove, remove, remove, search, search, search, search, setGearClassificationDao, setLocationClassificationDao, setLocationDao, setProgram2DepartmentDao, setProgram2PersonDao, setStrategyDao, toClusterProgram, toClusterProgramArray, toClusterProgramCollection, toEntity, toRemoteProgramFullVO, toRemoteProgramFullVOArray, toRemoteProgramFullVOCollection, toRemoteProgramNaturalId, toRemoteProgramNaturalIdArray, toRemoteProgramNaturalIdCollection, transformEntities, transformEntity, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramDaoImpl

public ProgramDaoImpl()
Method Detail

handleCreateFromClusterProgram

protected Program handleCreateFromClusterProgram(ClusterProgram clusterProgram)
Description copied from class: ProgramDaoBase
Performs the core logic for ProgramDaoBase.createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

Specified by:
handleCreateFromClusterProgram in class ProgramDaoBase
See Also:
ProgramDao.createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

handleGetAllClusterProgramSinceDateSynchro

protected ClusterProgram[] handleGetAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                      java.lang.Integer userId,
                                                                      java.lang.Integer[] registrationLocationIds,
                                                                      java.lang.Integer pageNumber,
                                                                      java.lang.Integer pageSize)
Description copied from class: ProgramDaoBase
Performs the core logic for ProgramDaoBase.getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Specified by:
handleGetAllClusterProgramSinceDateSynchro in class ProgramDaoBase
See Also:
ProgramDao.getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

toRemoteProgramFullVO

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

toRemoteProgramFullVO

public RemoteProgramFullVO toRemoteProgramFullVO(Program entity)
Description copied from interface: ProgramDao
Converts this DAO's entity to an object of type RemoteProgramFullVO.

Specified by:
toRemoteProgramFullVO in interface ProgramDao
Overrides:
toRemoteProgramFullVO in class ProgramDaoBase
See Also:
ProgramDao.toRemoteProgramFullVO(fr.ifremer.allegro.administration.programStrategy.Program)

remoteProgramFullVOToEntity

public Program remoteProgramFullVOToEntity(RemoteProgramFullVO remoteProgramFullVO)
Description copied from interface: ProgramDao
Converts an instance of type RemoteProgramFullVO to this DAO's entity.

See Also:
ProgramDao.remoteProgramFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

remoteProgramFullVOToEntity

public void remoteProgramFullVOToEntity(RemoteProgramFullVO source,
                                        Program target,
                                        boolean copyIfNull)
Description copied from interface: ProgramDao
Copies the fields of RemoteProgramFullVO to the specified entity.

Specified by:
remoteProgramFullVOToEntity in interface ProgramDao
Overrides:
remoteProgramFullVOToEntity in class ProgramDaoBase
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.ProgramDao#remoteProgramFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.Program)

toRemoteProgramNaturalId

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

toRemoteProgramNaturalId

public RemoteProgramNaturalId toRemoteProgramNaturalId(Program entity)
Description copied from interface: ProgramDao
Converts this DAO's entity to an object of type RemoteProgramNaturalId.

Specified by:
toRemoteProgramNaturalId in interface ProgramDao
Overrides:
toRemoteProgramNaturalId in class ProgramDaoBase
See Also:
ProgramDao.toRemoteProgramNaturalId(fr.ifremer.allegro.administration.programStrategy.Program)

remoteProgramNaturalIdToEntity

public Program remoteProgramNaturalIdToEntity(RemoteProgramNaturalId remoteProgramNaturalId)
Description copied from interface: ProgramDao
Converts an instance of type RemoteProgramNaturalId to this DAO's entity.

See Also:
ProgramDao.remoteProgramNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId)

remoteProgramNaturalIdToEntity

public void remoteProgramNaturalIdToEntity(RemoteProgramNaturalId source,
                                           Program target,
                                           boolean copyIfNull)
Description copied from interface: ProgramDao
Copies the fields of RemoteProgramNaturalId to the specified entity.

Specified by:
remoteProgramNaturalIdToEntity in interface ProgramDao
Overrides:
remoteProgramNaturalIdToEntity in class ProgramDaoBase
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.ProgramDao#remoteProgramNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId, fr.ifremer.allegro.administration.programStrategy.Program)

toClusterProgram

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

toClusterProgram

public ClusterProgram toClusterProgram(Program entity)
Description copied from interface: ProgramDao
Converts this DAO's entity to an object of type ClusterProgram.

Specified by:
toClusterProgram in interface ProgramDao
Overrides:
toClusterProgram in class ProgramDaoBase
See Also:
ProgramDao.toClusterProgram(fr.ifremer.allegro.administration.programStrategy.Program)

clusterProgramToEntity

public Program clusterProgramToEntity(ClusterProgram clusterProgram)
Description copied from interface: ProgramDao
Converts an instance of type ClusterProgram to this DAO's entity.

See Also:
ProgramDao.clusterProgramToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

clusterProgramToEntity

public void clusterProgramToEntity(ClusterProgram source,
                                   Program target,
                                   boolean copyIfNull)
Description copied from interface: ProgramDao
Copies the fields of ClusterProgram to the specified entity.

Specified by:
clusterProgramToEntity in interface ProgramDao
Overrides:
clusterProgramToEntity in class ProgramDaoBase
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.ProgramDao#clusterProgramToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram, fr.ifremer.allegro.administration.programStrategy.Program)


Copyright © 2008-2010 IFREMER. All Rights Reserved.