fr.ifremer.allegro.administration.programStrategy
Class ProgramDaoBase

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

public abstract class ProgramDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ProgramDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.administration.programStrategy.Program.

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
ProgramDaoBase()
           
 
Method Summary
 void clusterProgramToEntity(ClusterProgram source, Program target, boolean copyIfNull)
          Copies the fields of ClusterProgram to the specified entity.
 void clusterProgramToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterProgram to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.programStrategy.Program and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ProgramDao.create(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.lang.Object create(int transform, Program program)
           Does the same thing as ProgramDao.create(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.String description, GearClassification gearClassification, java.util.Collection locationClassifications, java.lang.String name)
           Does the same thing as ProgramDao.create(java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection strategies, java.util.Collection locationClassifications, java.util.Collection locations, GearClassification gearClassification, java.util.Collection program2Departments, java.util.Collection programUsers)
           Does the same thing as ProgramDao.create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.util.Collection) with an additional flag called transform.
 Program create(Program program)
          Creates an instance of fr.ifremer.allegro.administration.programStrategy.Program and adds it to the persistent store.
 Program create(java.lang.String code, java.util.Date creationDate, java.lang.String description, GearClassification gearClassification, java.util.Collection locationClassifications, java.lang.String name)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Program create(java.lang.String code, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection strategies, java.util.Collection locationClassifications, java.util.Collection locations, GearClassification gearClassification, java.util.Collection program2Departments, java.util.Collection programUsers)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from all attributes and properties and adds it to the persistent store.
 Program createFromClusterProgram(ClusterProgram clusterProgram)
           
 java.lang.Object findProgramByCode(int transform, java.lang.String code)
           Does the same thing as ProgramDao.findProgramByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findProgramByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as ProgramDao.findProgramByCode(int, java.lang.String) with an additional argument called queryString.
 Program findProgramByCode(java.lang.String code)
           
 Program findProgramByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as ProgramDao.findProgramByCode(java.lang.String) with an additional argument called queryString.
 java.util.Collection findProgramByGearClassification(GearClassification gearClassification)
           
 java.util.Collection findProgramByGearClassification(int transform, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional flag called transform.
 java.util.Collection findProgramByGearClassification(int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgramByGearClassification(int transform, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgramByGearClassification(int transform, java.lang.String queryString, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString.
 java.util.Collection findProgramByGearClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgramByGearClassification(java.lang.String queryString, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString.
 java.util.Collection findProgramByGearClassification(java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as ProgramDao.findProgramByGearClassification(String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.lang.Object findProgramByNaturalId(int transform, java.lang.String code)
           Does the same thing as ProgramDao.findProgramByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findProgramByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as ProgramDao.findProgramByNaturalId(int, java.lang.String) with an additional argument called queryString.
 Program findProgramByNaturalId(java.lang.String code)
           
 Program findProgramByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as ProgramDao.findProgramByNaturalId(java.lang.String) with an additional argument called queryString.
 ClusterProgram[] getAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllProgram()
           
 java.util.Collection getAllProgram(int transform)
           Does the same thing as ProgramDao.getAllProgram() with an additional flag called transform.
 java.util.Collection getAllProgram(int pageNumber, int pageSize)
           Does the same thing as ProgramDao.getAllProgram() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram(int transform, int pageNumber, int pageSize)
           Does the same thing as ProgramDao.getAllProgram(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram(int transform, java.lang.String queryString)
           Does the same thing as ProgramDao.getAllProgram(int) with an additional argument called queryString.
 java.util.Collection getAllProgram(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ProgramDao.getAllProgram(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram(java.lang.String queryString)
           Does the same thing as ProgramDao.getAllProgram() with an additional argument called queryString.
 java.util.Collection getAllProgram(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ProgramDao.getAllProgram(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllProgramSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllProgramSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  GearClassificationDao getGearClassificationDao()
          Gets the reference to gearClassificationDao.
protected  LocationClassificationDao getLocationClassificationDao()
          Gets the reference to locationClassificationDao.
protected  LocationDao getLocationDao()
          Gets the reference to locationDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  Program2DepartmentDao getProgram2DepartmentDao()
          Gets the reference to program2DepartmentDao.
protected  Program2PersonDao getProgram2PersonDao()
          Gets the reference to program2PersonDao.
protected  StrategyDao getStrategyDao()
          Gets the reference to strategyDao.
protected abstract  Program handleCreateFromClusterProgram(ClusterProgram clusterProgram)
          Performs the core logic for createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)
protected abstract  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 getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 java.lang.Object load(int transform, java.lang.String code)
           Does the same thing as ProgramDao.load(java.lang.String) with an additional flag called transform.
 Program load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type Program.
 java.util.Collection loadAll(int transform)
           Does the same thing as ProgramDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ProgramDao.loadAll() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
           Does the same thing as ProgramDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteProgramFullVOToEntity(RemoteProgramFullVO source, Program target, boolean copyIfNull)
          Copies the fields of RemoteProgramFullVO to the specified entity.
 void remoteProgramFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgramFullVO to this DAO's entity.
 void remoteProgramNaturalIdToEntity(RemoteProgramNaturalId source, Program target, boolean copyIfNull)
          Copies the fields of RemoteProgramNaturalId to the specified entity.
 void remoteProgramNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgramNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Program program)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as ProgramDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setGearClassificationDao(GearClassificationDao gearClassificationDao)
          Sets the reference to gearClassificationDao.
 void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
          Sets the reference to locationClassificationDao.
 void setLocationDao(LocationDao locationDao)
          Sets the reference to locationDao.
 void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
          Sets the reference to program2DepartmentDao.
 void setProgram2PersonDao(Program2PersonDao program2PersonDao)
          Sets the reference to program2PersonDao.
 void setStrategyDao(StrategyDao strategyDao)
          Sets the reference to strategyDao.
protected  ClusterProgram toClusterProgram(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 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.
 ClusterProgram[] toClusterProgramArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterProgram.
 void toClusterProgramCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterProgram.
protected  Program toEntity(java.lang.Object[] row)
           
protected  RemoteProgramFullVO toRemoteProgramFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a 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.
 RemoteProgramFullVO[] toRemoteProgramFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgramFullVO.
 void toRemoteProgramFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgramFullVO.
protected  RemoteProgramNaturalId toRemoteProgramNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a 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.
 RemoteProgramNaturalId[] toRemoteProgramNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgramNaturalId.
 void toRemoteProgramNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgramNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program) method.
protected  java.lang.Object transformEntity(int transform, Program entity)
          Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.administration.programStrategy.ProgramDao, please note that the ProgramDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(Program program)
          Updates the program instance in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.administration.programStrategy.ProgramDao
clusterProgramToEntity, remoteProgramFullVOToEntity, remoteProgramNaturalIdToEntity
 

Constructor Detail

ProgramDaoBase

public ProgramDaoBase()
Method Detail

setStrategyDao

public void setStrategyDao(StrategyDao strategyDao)
Sets the reference to strategyDao.


getStrategyDao

protected StrategyDao getStrategyDao()
Gets the reference to strategyDao.


setLocationClassificationDao

public void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
Sets the reference to locationClassificationDao.


getLocationClassificationDao

protected LocationClassificationDao getLocationClassificationDao()
Gets the reference to locationClassificationDao.


setLocationDao

public void setLocationDao(LocationDao locationDao)
Sets the reference to locationDao.


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to locationDao.


setGearClassificationDao

public void setGearClassificationDao(GearClassificationDao gearClassificationDao)
Sets the reference to gearClassificationDao.


getGearClassificationDao

protected GearClassificationDao getGearClassificationDao()
Gets the reference to gearClassificationDao.


setProgram2DepartmentDao

public void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2DepartmentDao.


getProgram2DepartmentDao

protected Program2DepartmentDao getProgram2DepartmentDao()
Gets the reference to program2DepartmentDao.


setProgram2PersonDao

public void setProgram2PersonDao(Program2PersonDao program2PersonDao)
Sets the reference to program2PersonDao.


getProgram2PersonDao

protected Program2PersonDao getProgram2PersonDao()
Gets the reference to program2PersonDao.


load

public java.lang.Object load(int transform,
                             java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.load(java.lang.String) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined in this class then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
load in interface ProgramDao
code - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
ProgramDao.load(int, java.lang.String)

load

public Program load(java.lang.String code)
Description copied from interface: ProgramDao
Loads an instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.

Specified by:
load in interface ProgramDao
See Also:
ProgramDao.load(java.lang.String)

loadAll

public java.util.Collection loadAll()
Description copied from interface: ProgramDao
Loads all entities of type Program.

Specified by:
loadAll in interface ProgramDao
Returns:
the loaded entities.
See Also:
ProgramDao.loadAll()

loadAll

public java.util.Collection loadAll(int transform)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.loadAll() with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
loadAll in interface ProgramDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
ProgramDao.loadAll(int)

loadAll

public java.util.Collection loadAll(int pageNumber,
                                    int pageSize)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.loadAll() with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
loadAll in interface ProgramDao
Parameters:
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
ProgramDao.loadAll(int, int)

loadAll

public java.util.Collection loadAll(int transform,
                                    int pageNumber,
                                    int pageSize)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.loadAll(int) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
loadAll in interface ProgramDao
Parameters:
transform - the flag indicating what transformation to use.
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
ProgramDao.loadAll(int, int, int)

create

public Program create(Program program)
Description copied from interface: ProgramDao
Creates an instance of fr.ifremer.allegro.administration.programStrategy.Program and adds it to the persistent store.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(fr.ifremer.allegro.administration.programStrategy.Program)

create

public java.lang.Object create(int transform,
                               Program program)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.create(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(int transform, fr.ifremer.allegro.administration.programStrategy.Program)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: ProgramDao
Creates a new instance of fr.ifremer.allegro.administration.programStrategy.Program and adds from the passed in entities collection

Specified by:
create in interface ProgramDao
Parameters:
entities - the collection of fr.ifremer.allegro.administration.programStrategy.Program instances to create.
Returns:
the created instances.
See Also:
ProgramDao.create(java.util.Collection)

create

public java.util.Collection create(int transform,
                                   java.util.Collection entities)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.create(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(int, java.util.Collection)

create

public Program create(java.lang.String code,
                      java.lang.String name,
                      java.lang.String description,
                      java.util.Date creationDate,
                      java.sql.Timestamp updateDate,
                      java.util.Collection strategies,
                      java.util.Collection locationClassifications,
                      java.util.Collection locations,
                      GearClassification gearClassification,
                      java.util.Collection program2Departments,
                      java.util.Collection programUsers)
Description copied from interface: ProgramDao

Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.lang.String name,
                               java.lang.String description,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection strategies,
                               java.util.Collection locationClassifications,
                               java.util.Collection locations,
                               GearClassification gearClassification,
                               java.util.Collection program2Departments,
                               java.util.Collection programUsers)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.util.Collection) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.util.Collection)

create

public Program create(java.lang.String code,
                      java.util.Date creationDate,
                      java.lang.String description,
                      GearClassification gearClassification,
                      java.util.Collection locationClassifications,
                      java.lang.String name)
Description copied from interface: ProgramDao

Creates a new fr.ifremer.allegro.administration.programStrategy.Program instance from only required properties (attributes and association ends) and adds it to the persistent store.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String)

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.util.Date creationDate,
                               java.lang.String description,
                               GearClassification gearClassification,
                               java.util.Collection locationClassifications,
                               java.lang.String name)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.create(java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOTWILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface ProgramDao
See Also:
ProgramDao.create(int, java.lang.String,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,java.lang.String)

update

public void update(Program program)
Description copied from interface: ProgramDao
Updates the program instance in the persistent store.

Specified by:
update in interface ProgramDao
See Also:
ProgramDao.update(fr.ifremer.allegro.administration.programStrategy.Program)

update

public void update(java.util.Collection entities)
Description copied from interface: ProgramDao
Updates all instances in the entities collection in the persistent store.

Specified by:
update in interface ProgramDao
See Also:
ProgramDao.update(java.util.Collection)

remove

public void remove(Program program)
Description copied from interface: ProgramDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program from the persistent store.

Specified by:
remove in interface ProgramDao
See Also:
ProgramDao.remove(fr.ifremer.allegro.administration.programStrategy.Program)

remove

public void remove(java.lang.String code)
Description copied from interface: ProgramDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program having the given identifier from the persistent store.

Specified by:
remove in interface ProgramDao
See Also:
ProgramDao.remove(java.lang.String)

remove

public void remove(java.util.Collection entities)
Description copied from interface: ProgramDao
Removes all entities in the given entities collection.

Specified by:
remove in interface ProgramDao
See Also:
ProgramDao.remove(java.util.Collection)

getAllProgram

public java.util.Collection getAllProgram()
Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram()

getAllProgram

public java.util.Collection getAllProgram(int transform)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram() with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(int)

getAllProgram

public java.util.Collection getAllProgram(java.lang.String queryString)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram() with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.getAllProgram().

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(java.lang.String)

getAllProgram

public java.util.Collection getAllProgram(int pageNumber,
                                          int pageSize)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram() with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(int, int)

getAllProgram

public java.util.Collection getAllProgram(java.lang.String queryString,
                                          int pageNumber,
                                          int pageSize)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram(String) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(String, int, int)

getAllProgram

public java.util.Collection getAllProgram(int transform,
                                          java.lang.String queryString)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram(int) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.getAllProgram(int).

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(int, String)

getAllProgram

public java.util.Collection getAllProgram(int transform,
                                          int pageNumber,
                                          int pageSize)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram(int) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(int, int, int)

getAllProgram

public java.util.Collection getAllProgram(int transform,
                                          java.lang.String queryString,
                                          int pageNumber,
                                          int pageSize)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgram(int, String) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgram in interface ProgramDao
See Also:
ProgramDao.getAllProgram(int, java.lang.String, int, int)

findProgramByCode

public Program findProgramByCode(java.lang.String code)
Specified by:
findProgramByCode in interface ProgramDao
See Also:
ProgramDao.findProgramByCode(java.lang.String)

findProgramByCode

public java.lang.Object findProgramByCode(int transform,
                                          java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByCode(java.lang.String) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findProgramByCode in interface ProgramDao
See Also:
ProgramDao.findProgramByCode(int, java.lang.String)

findProgramByCode

public Program findProgramByCode(java.lang.String queryString,
                                 java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByCode(java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.findProgramByCode(java.lang.String).

Specified by:
findProgramByCode in interface ProgramDao
See Also:
ProgramDao.findProgramByCode(java.lang.String, java.lang.String)

findProgramByCode

public java.lang.Object findProgramByCode(int transform,
                                          java.lang.String queryString,
                                          java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByCode(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.findProgramByCode(int, java.lang.String code).

Specified by:
findProgramByCode in interface ProgramDao
See Also:
ProgramDao.findProgramByCode(int, java.lang.String, java.lang.String)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(GearClassification gearClassification)
Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(int transform,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(java.lang.String queryString,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification).

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(java.lang.String, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(int pageNumber,
                                                            int pageSize,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(java.lang.String queryString,
                                                            int pageNumber,
                                                            int pageSize,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(String, int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(int transform,
                                                            java.lang.String queryString,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification gearClassification).

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(int transform,
                                                            int pageNumber,
                                                            int pageSize,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(int, int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByGearClassification

public java.util.Collection findProgramByGearClassification(int transform,
                                                            java.lang.String queryString,
                                                            int pageNumber,
                                                            int pageSize,
                                                            GearClassification gearClassification)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findProgramByGearClassification in interface ProgramDao
See Also:
ProgramDao.findProgramByGearClassification(int, java.lang.String, int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findProgramByNaturalId

public Program findProgramByNaturalId(java.lang.String code)
Specified by:
findProgramByNaturalId in interface ProgramDao
See Also:
ProgramDao.findProgramByNaturalId(java.lang.String)

findProgramByNaturalId

public java.lang.Object findProgramByNaturalId(int transform,
                                               java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByNaturalId(java.lang.String) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findProgramByNaturalId in interface ProgramDao
See Also:
ProgramDao.findProgramByNaturalId(int, java.lang.String)

findProgramByNaturalId

public Program findProgramByNaturalId(java.lang.String queryString,
                                      java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByNaturalId(java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.findProgramByNaturalId(java.lang.String).

Specified by:
findProgramByNaturalId in interface ProgramDao
See Also:
ProgramDao.findProgramByNaturalId(java.lang.String, java.lang.String)

findProgramByNaturalId

public java.lang.Object findProgramByNaturalId(int transform,
                                               java.lang.String queryString,
                                               java.lang.String code)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.findProgramByNaturalId(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.findProgramByNaturalId(int, java.lang.String code).

Specified by:
findProgramByNaturalId in interface ProgramDao
See Also:
ProgramDao.findProgramByNaturalId(int, java.lang.String, java.lang.String)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(java.sql.Timestamp updateDate)
Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(int transform,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp).

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(java.lang.String, java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(int pageNumber,
                                                          int pageSize,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(int, int, java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(int transform,
                                                          java.lang.String queryString,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp updateDate).

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(int, String, java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(int transform,
                                                          int pageNumber,
                                                          int pageSize,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllProgramSinceDateSynchro

public java.util.Collection getAllProgramSinceDateSynchro(int transform,
                                                          java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          java.sql.Timestamp updateDate)
Description copied from interface: ProgramDao

Does the same thing as ProgramDao.getAllProgramSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllProgramSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterProgram

public Program createFromClusterProgram(ClusterProgram clusterProgram)
Specified by:
createFromClusterProgram in interface ProgramDao
See Also:
ProgramDao.createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

handleCreateFromClusterProgram

protected abstract Program handleCreateFromClusterProgram(ClusterProgram clusterProgram)
                                                   throws java.lang.Exception
Performs the core logic for createFromClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

Throws:
java.lang.Exception

getAllClusterProgramSinceDateSynchro

public ClusterProgram[] getAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                             java.lang.Integer userId,
                                                             java.lang.Integer[] registrationLocationIds,
                                                             java.lang.Integer pageNumber,
                                                             java.lang.Integer pageSize)
Specified by:
getAllClusterProgramSinceDateSynchro in interface ProgramDao
See Also:
ProgramDao.getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterProgramSinceDateSynchro

protected abstract ClusterProgram[] handleGetAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                               java.lang.Integer userId,
                                                                               java.lang.Integer[] registrationLocationIds,
                                                                               java.lang.Integer pageNumber,
                                                                               java.lang.Integer pageSize)
                                                                        throws java.lang.Exception
Performs the core logic for getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           Program entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.administration.programStrategy.ProgramDao, please note that the ProgramDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.

This method will return instances of these types:

If the integer argument value is unknown ProgramDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in ProgramDao
entity - an entity that was found
Returns:
the transformed entity (i.e. new value object, etc)
See Also:
transformEntities(int,java.util.Collection)

transformEntities

protected void transformEntities(int transform,
                                 java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program) method. This method does not instantiate a new collection.

This method is to be used internally only.

Parameters:
transform - one of the constants declared in fr.ifremer.allegro.administration.programStrategy.ProgramDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program)

toEntity

protected Program toEntity(java.lang.Object[] row)

toRemoteProgramFullVOCollection

public final void toRemoteProgramFullVOCollection(java.util.Collection entities)
Description copied from interface: ProgramDao
Converts this DAO's entity to a Collection of instances of type RemoteProgramFullVO.

Specified by:
toRemoteProgramFullVOCollection in interface ProgramDao
See Also:
ProgramDao.toRemoteProgramFullVOCollection(java.util.Collection)

toRemoteProgramFullVOArray

public final RemoteProgramFullVO[] toRemoteProgramFullVOArray(java.util.Collection entities)
Description copied from interface: ProgramDao
Converts this DAO's entity to an array of instances of type RemoteProgramFullVO.

Specified by:
toRemoteProgramFullVOArray in interface ProgramDao
See Also:
ProgramDao.toRemoteProgramFullVOArray(java.util.Collection)

toRemoteProgramFullVO

protected RemoteProgramFullVO toRemoteProgramFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the ProgramDaoImpl class if you intend to use reporting queries.

See Also:
ProgramDao.toRemoteProgramFullVO(fr.ifremer.allegro.administration.programStrategy.Program)

remoteProgramFullVOToEntityCollection

public final void remoteProgramFullVOToEntityCollection(java.util.Collection instances)
Description copied from interface: ProgramDao
Converts a Collection of instances of type RemoteProgramFullVO to this DAO's entity.

Specified by:
remoteProgramFullVOToEntityCollection in interface ProgramDao
See Also:
ProgramDao.remoteProgramFullVOToEntityCollection(java.util.Collection)

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
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
See Also:
ProgramDao.toRemoteProgramFullVO(fr.ifremer.allegro.administration.programStrategy.Program)

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
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)

toRemoteProgramNaturalIdCollection

public final void toRemoteProgramNaturalIdCollection(java.util.Collection entities)
Description copied from interface: ProgramDao
Converts this DAO's entity to a Collection of instances of type RemoteProgramNaturalId.

Specified by:
toRemoteProgramNaturalIdCollection in interface ProgramDao
See Also:
ProgramDao.toRemoteProgramNaturalIdCollection(java.util.Collection)

toRemoteProgramNaturalIdArray

public final RemoteProgramNaturalId[] toRemoteProgramNaturalIdArray(java.util.Collection entities)
Description copied from interface: ProgramDao
Converts this DAO's entity to an array of instances of type RemoteProgramNaturalId.

Specified by:
toRemoteProgramNaturalIdArray in interface ProgramDao
See Also:
ProgramDao.toRemoteProgramNaturalIdArray(java.util.Collection)

toRemoteProgramNaturalId

protected RemoteProgramNaturalId toRemoteProgramNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the ProgramDaoImpl class if you intend to use reporting queries.

See Also:
ProgramDao.toRemoteProgramNaturalId(fr.ifremer.allegro.administration.programStrategy.Program)

remoteProgramNaturalIdToEntityCollection

public final void remoteProgramNaturalIdToEntityCollection(java.util.Collection instances)
Description copied from interface: ProgramDao
Converts a Collection of instances of type RemoteProgramNaturalId to this DAO's entity.

Specified by:
remoteProgramNaturalIdToEntityCollection in interface ProgramDao
See Also:
ProgramDao.remoteProgramNaturalIdToEntityCollection(java.util.Collection)

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
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
See Also:
ProgramDao.toRemoteProgramNaturalId(fr.ifremer.allegro.administration.programStrategy.Program)

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
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)

toClusterProgramCollection

public final void toClusterProgramCollection(java.util.Collection entities)
Description copied from interface: ProgramDao
Converts this DAO's entity to a Collection of instances of type ClusterProgram.

Specified by:
toClusterProgramCollection in interface ProgramDao
See Also:
ProgramDao.toClusterProgramCollection(java.util.Collection)

toClusterProgramArray

public final ClusterProgram[] toClusterProgramArray(java.util.Collection entities)
Description copied from interface: ProgramDao
Converts this DAO's entity to an array of instances of type ClusterProgram.

Specified by:
toClusterProgramArray in interface ProgramDao
See Also:
ProgramDao.toClusterProgramArray(java.util.Collection)

toClusterProgram

protected ClusterProgram toClusterProgram(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the ProgramDaoImpl class if you intend to use reporting queries.

See Also:
ProgramDao.toClusterProgram(fr.ifremer.allegro.administration.programStrategy.Program)

clusterProgramToEntityCollection

public final void clusterProgramToEntityCollection(java.util.Collection instances)
Description copied from interface: ProgramDao
Converts a Collection of instances of type ClusterProgram to this DAO's entity.

Specified by:
clusterProgramToEntityCollection in interface ProgramDao
See Also:
ProgramDao.clusterProgramToEntityCollection(java.util.Collection)

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
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
See Also:
ProgramDao.toClusterProgram(fr.ifremer.allegro.administration.programStrategy.Program)

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
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)

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

search

public PaginationResult search(int transform,
                               int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: ProgramDao
Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface ProgramDao
Parameters:
transform - the transformation flag.
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
ProgramDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: ProgramDao
Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface ProgramDao
Parameters:
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
ProgramDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: ProgramDao
Does the same thing as ProgramDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
search in interface ProgramDao
Parameters:
transform - the transformation flag.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
ProgramDao.search(int, fr.ifremer.allegro.Search)

search

public java.util.Set search(Search search)
Description copied from interface: ProgramDao
Performs a search using the parameters specified in the given search object.

Specified by:
search in interface ProgramDao
Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
ProgramDao.search(fr.ifremer.allegro.Search)


Copyright © 2008-2010 IFREMER. All Rights Reserved.