fr.ifremer.allegro.administration.programStrategy
Class StrategyDaoBase

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

public abstract class StrategyDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements StrategyDao

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

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
StrategyDaoBase()
           
 
Method Summary
 void clusterStrategyToEntity(ClusterStrategy source, Strategy target, boolean copyIfNull)
          Copies the fields of ClusterStrategy to the specified entity.
 void clusterStrategyToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterStrategy to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.programStrategy.Strategy and adds from the passed in entities collection
 Strategy create(java.util.Date creationDate, java.lang.String description, java.util.Collection managersUsers, java.lang.String name, Program program)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Strategy instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as StrategyDao.create(fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date creationDate, java.lang.String description, java.util.Collection managersUsers, java.lang.String name, Program program)
           Does the same thing as StrategyDao.create(java.util.Date,java.lang.String,java.util.Collection,java.lang.String,fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.lang.Object create(int transform, Strategy strategy)
           Does the same thing as StrategyDao.create(fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection appliedStrategies, java.util.Collection pmfmStrategies, Program program, java.util.Collection managersUsers, java.util.Collection gears, java.util.Collection referenceTaxonStrategies)
           Does the same thing as StrategyDao.create(java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.programStrategy.Program,java.util.Collection,java.util.Collection,java.util.Collection) with an additional flag called transform.
 Strategy create(Strategy strategy)
          Creates an instance of fr.ifremer.allegro.administration.programStrategy.Strategy and adds it to the persistent store.
 Strategy create(java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection appliedStrategies, java.util.Collection pmfmStrategies, Program program, java.util.Collection managersUsers, java.util.Collection gears, java.util.Collection referenceTaxonStrategies)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Strategy instance from all attributes and properties and adds it to the persistent store.
 Strategy createFromClusterStrategy(ClusterStrategy clusterStrategy)
           
 Strategy findStrategyById(java.lang.Integer id)
           
 java.lang.Object findStrategyById(int transform, java.lang.Integer id)
           Does the same thing as StrategyDao.findStrategyById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findStrategyById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as StrategyDao.findStrategyById(int, java.lang.Integer) with an additional argument called queryString.
 Strategy findStrategyById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as StrategyDao.findStrategyById(java.lang.Integer) with an additional argument called queryString.
 Strategy findStrategyByNaturalId(java.lang.Integer id)
           
 java.lang.Object findStrategyByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as StrategyDao.findStrategyByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findStrategyByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as StrategyDao.findStrategyByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Strategy findStrategyByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as StrategyDao.findStrategyByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findStrategyByProgram(int transform, int pageNumber, int pageSize, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findStrategyByProgram(int pageNumber, int pageSize, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findStrategyByProgram(int transform, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.util.Collection findStrategyByProgram(int transform, java.lang.String queryString, int pageNumber, int pageSize, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findStrategyByProgram(int transform, java.lang.String queryString, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString.
 java.util.Collection findStrategyByProgram(Program program)
           
 java.util.Collection findStrategyByProgram(java.lang.String queryString, int pageNumber, int pageSize, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(String, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findStrategyByProgram(java.lang.String queryString, Program program)
           Does the same thing as StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString.
 ClusterStrategy[] getAllClusterStrategySinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllStrategy()
           
 java.util.Collection getAllStrategy(int transform)
           Does the same thing as StrategyDao.getAllStrategy() with an additional flag called transform.
 java.util.Collection getAllStrategy(int pageNumber, int pageSize)
           Does the same thing as StrategyDao.getAllStrategy() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategy(int transform, int pageNumber, int pageSize)
           Does the same thing as StrategyDao.getAllStrategy(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategy(int transform, java.lang.String queryString)
           Does the same thing as StrategyDao.getAllStrategy(int) with an additional argument called queryString.
 java.util.Collection getAllStrategy(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as StrategyDao.getAllStrategy(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategy(java.lang.String queryString)
           Does the same thing as StrategyDao.getAllStrategy() with an additional argument called queryString.
 java.util.Collection getAllStrategy(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as StrategyDao.getAllStrategy(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategySinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategySinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategySinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategySinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllStrategySinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllStrategySinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStrategySinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllStrategySinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  AppliedStrategyDao getAppliedStrategyDao()
          Gets the reference to appliedStrategyDao.
protected  GearDao getGearDao()
          Gets the reference to gearDao.
protected  PmfmStrategyDao getPmfmStrategyDao()
          Gets the reference to pmfmStrategyDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  ProgramDao getProgramDao()
          Gets the reference to programDao.
protected  ReferenceTaxonStrategyDao getReferenceTaxonStrategyDao()
          Gets the reference to referenceTaxonStrategyDao.
protected  UserDao getUserDao()
          Gets the reference to userDao.
protected abstract  Strategy handleCreateFromClusterStrategy(ClusterStrategy clusterStrategy)
          Performs the core logic for createFromClusterStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)
protected abstract  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 getAllClusterStrategySinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Strategy load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.programStrategy.Strategy from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as StrategyDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Strategy.
 java.util.Collection loadAll(int transform)
           Does the same thing as StrategyDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as StrategyDao.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 StrategyDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteStrategyFullVOToEntity(RemoteStrategyFullVO source, Strategy target, boolean copyIfNull)
          Copies the fields of RemoteStrategyFullVO to the specified entity.
 void remoteStrategyFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteStrategyFullVO to this DAO's entity.
 void remoteStrategyNaturalIdToEntity(RemoteStrategyNaturalId source, Strategy target, boolean copyIfNull)
          Copies the fields of RemoteStrategyNaturalId to the specified entity.
 void remoteStrategyNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteStrategyNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Strategy having the given identifier from the persistent store.
 void remove(Strategy strategy)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Strategy 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 StrategyDao.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 setAppliedStrategyDao(AppliedStrategyDao appliedStrategyDao)
          Sets the reference to appliedStrategyDao.
 void setGearDao(GearDao gearDao)
          Sets the reference to gearDao.
 void setPmfmStrategyDao(PmfmStrategyDao pmfmStrategyDao)
          Sets the reference to pmfmStrategyDao.
 void setProgramDao(ProgramDao programDao)
          Sets the reference to programDao.
 void setReferenceTaxonStrategyDao(ReferenceTaxonStrategyDao referenceTaxonStrategyDao)
          Sets the reference to referenceTaxonStrategyDao.
 void setUserDao(UserDao userDao)
          Sets the reference to userDao.
protected  ClusterStrategy toClusterStrategy(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 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.
 ClusterStrategy[] toClusterStrategyArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterStrategy.
 void toClusterStrategyCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterStrategy.
protected  Strategy toEntity(java.lang.Object[] row)
           
protected  RemoteStrategyFullVO toRemoteStrategyFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a 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.
 RemoteStrategyFullVO[] toRemoteStrategyFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteStrategyFullVO.
 void toRemoteStrategyFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteStrategyFullVO.
protected  RemoteStrategyNaturalId toRemoteStrategyNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a 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.
 RemoteStrategyNaturalId[] toRemoteStrategyNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteStrategyNaturalId.
 void toRemoteStrategyNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteStrategyNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Strategy) method.
protected  java.lang.Object transformEntity(int transform, Strategy 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.StrategyDao, please note that the StrategyDao.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(Strategy strategy)
          Updates the strategy 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.StrategyDao
clusterStrategyToEntity, remoteStrategyFullVOToEntity, remoteStrategyNaturalIdToEntity
 

Constructor Detail

StrategyDaoBase

public StrategyDaoBase()
Method Detail

setUserDao

public void setUserDao(UserDao userDao)
Sets the reference to userDao.


getUserDao

protected UserDao getUserDao()
Gets the reference to userDao.


setProgramDao

public void setProgramDao(ProgramDao programDao)
Sets the reference to programDao.


getProgramDao

protected ProgramDao getProgramDao()
Gets the reference to programDao.


setGearDao

public void setGearDao(GearDao gearDao)
Sets the reference to gearDao.


getGearDao

protected GearDao getGearDao()
Gets the reference to gearDao.


setAppliedStrategyDao

public void setAppliedStrategyDao(AppliedStrategyDao appliedStrategyDao)
Sets the reference to appliedStrategyDao.


getAppliedStrategyDao

protected AppliedStrategyDao getAppliedStrategyDao()
Gets the reference to appliedStrategyDao.


setPmfmStrategyDao

public void setPmfmStrategyDao(PmfmStrategyDao pmfmStrategyDao)
Sets the reference to pmfmStrategyDao.


getPmfmStrategyDao

protected PmfmStrategyDao getPmfmStrategyDao()
Gets the reference to pmfmStrategyDao.


setReferenceTaxonStrategyDao

public void setReferenceTaxonStrategyDao(ReferenceTaxonStrategyDao referenceTaxonStrategyDao)
Sets the reference to referenceTaxonStrategyDao.


getReferenceTaxonStrategyDao

protected ReferenceTaxonStrategyDao getReferenceTaxonStrategyDao()
Gets the reference to referenceTaxonStrategyDao.


load

public java.lang.Object load(int transform,
                             java.lang.Integer id)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.load(java.lang.Integer) 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 StrategyDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
StrategyDao.load(int, java.lang.Integer)

load

public Strategy load(java.lang.Integer id)
Description copied from interface: StrategyDao
Loads an instance of fr.ifremer.allegro.administration.programStrategy.Strategy from the persistent store.

Specified by:
load in interface StrategyDao
See Also:
StrategyDao.load(java.lang.Integer)

loadAll

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

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

loadAll

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

Does the same thing as StrategyDao.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 StrategyDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
StrategyDao.loadAll(int)

loadAll

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

Does the same thing as StrategyDao.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 StrategyDao
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:
StrategyDao.loadAll(int, int)

loadAll

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

Does the same thing as StrategyDao.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 StrategyDao
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:
StrategyDao.loadAll(int, int, int)

create

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

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

create

public java.lang.Object create(int transform,
                               Strategy strategy)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.create(fr.ifremer.allegro.administration.programStrategy.Strategy) 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 StrategyDao
See Also:
StrategyDao.create(int transform, fr.ifremer.allegro.administration.programStrategy.Strategy)

create

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

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

create

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

Does the same thing as StrategyDao.create(fr.ifremer.allegro.administration.programStrategy.Strategy) 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 StrategyDao
See Also:
StrategyDao.create(int, java.util.Collection)

create

public Strategy create(java.lang.String name,
                       java.lang.String description,
                       java.util.Date creationDate,
                       java.sql.Timestamp updateDate,
                       java.util.Collection appliedStrategies,
                       java.util.Collection pmfmStrategies,
                       Program program,
                       java.util.Collection managersUsers,
                       java.util.Collection gears,
                       java.util.Collection referenceTaxonStrategies)
Description copied from interface: StrategyDao

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

Specified by:
create in interface StrategyDao
See Also:
StrategyDao.create(java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.programStrategy.Program,java.util.Collection,java.util.Collection,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String description,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection appliedStrategies,
                               java.util.Collection pmfmStrategies,
                               Program program,
                               java.util.Collection managersUsers,
                               java.util.Collection gears,
                               java.util.Collection referenceTaxonStrategies)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.create(java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.programStrategy.Program,java.util.Collection,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 StrategyDao
See Also:
StrategyDao.create(int, java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.programStrategy.Program,java.util.Collection,java.util.Collection,java.util.Collection)

create

public Strategy create(java.util.Date creationDate,
                       java.lang.String description,
                       java.util.Collection managersUsers,
                       java.lang.String name,
                       Program program)
Description copied from interface: StrategyDao

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

Specified by:
create in interface StrategyDao
See Also:
StrategyDao.create(java.util.Date,java.lang.String,java.util.Collection,java.lang.String,fr.ifremer.allegro.administration.programStrategy.Program)

create

public java.lang.Object create(int transform,
                               java.util.Date creationDate,
                               java.lang.String description,
                               java.util.Collection managersUsers,
                               java.lang.String name,
                               Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.create(java.util.Date,java.lang.String,java.util.Collection,java.lang.String,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 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 StrategyDao
See Also:
StrategyDao.create(int, java.util.Date,java.lang.String,java.util.Collection,java.lang.String,fr.ifremer.allegro.administration.programStrategy.Program)

update

public void update(Strategy strategy)
Description copied from interface: StrategyDao
Updates the strategy instance in the persistent store.

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

update

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

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

remove

public void remove(Strategy strategy)
Description copied from interface: StrategyDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Strategy from the persistent store.

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

remove

public void remove(java.lang.Integer id)
Description copied from interface: StrategyDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Strategy having the given identifier from the persistent store.

Specified by:
remove in interface StrategyDao
See Also:
StrategyDao.remove(java.lang.Integer)

remove

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

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

getAllStrategy

public java.util.Collection getAllStrategy()
Specified by:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy()

getAllStrategy

public java.util.Collection getAllStrategy(int transform)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.getAllStrategy() 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:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(int)

getAllStrategy

public java.util.Collection getAllStrategy(java.lang.String queryString)
Description copied from interface: StrategyDao

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

Specified by:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(java.lang.String)

getAllStrategy

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

Does the same thing as StrategyDao.getAllStrategy() 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:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(int, int)

getAllStrategy

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

Does the same thing as StrategyDao.getAllStrategy(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:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(String, int, int)

getAllStrategy

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

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

Specified by:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(int, String)

getAllStrategy

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

Does the same thing as StrategyDao.getAllStrategy(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:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(int, int, int)

getAllStrategy

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

Does the same thing as StrategyDao.getAllStrategy(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:
getAllStrategy in interface StrategyDao
See Also:
StrategyDao.getAllStrategy(int, java.lang.String, int, int)

findStrategyById

public Strategy findStrategyById(java.lang.Integer id)
Specified by:
findStrategyById in interface StrategyDao
See Also:
StrategyDao.findStrategyById(java.lang.Integer)

findStrategyById

public java.lang.Object findStrategyById(int transform,
                                         java.lang.Integer id)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyById(java.lang.Integer) 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:
findStrategyById in interface StrategyDao
See Also:
StrategyDao.findStrategyById(int, java.lang.Integer)

findStrategyById

public Strategy findStrategyById(java.lang.String queryString,
                                 java.lang.Integer id)
Description copied from interface: StrategyDao

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

Specified by:
findStrategyById in interface StrategyDao
See Also:
StrategyDao.findStrategyById(java.lang.String, java.lang.Integer)

findStrategyById

public java.lang.Object findStrategyById(int transform,
                                         java.lang.String queryString,
                                         java.lang.Integer id)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyById(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in StrategyDao.findStrategyById(int, java.lang.Integer id).

Specified by:
findStrategyById in interface StrategyDao
See Also:
StrategyDao.findStrategyById(int, java.lang.String, java.lang.Integer)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(Program program)
Specified by:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(int transform,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program) 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:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(java.lang.String queryString,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString. This queryString argument allows you to override the query string defined in StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program).

Specified by:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(java.lang.String, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(int pageNumber,
                                                  int pageSize,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(fr.ifremer.allegro.administration.programStrategy.Program) 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:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(String, fr.ifremer.allegro.administration.programStrategy.Program) 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:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(String, int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(int transform,
                                                  java.lang.String queryString,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString. This queryString argument allows you to override the query string defined in StrategyDao.findStrategyByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program program).

Specified by:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(int transform,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) 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:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(int, int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByProgram

public java.util.Collection findStrategyByProgram(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Program program)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program) 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:
findStrategyByProgram in interface StrategyDao
See Also:
StrategyDao.findStrategyByProgram(int, java.lang.String, int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findStrategyByNaturalId

public Strategy findStrategyByNaturalId(java.lang.Integer id)
Specified by:
findStrategyByNaturalId in interface StrategyDao
See Also:
StrategyDao.findStrategyByNaturalId(java.lang.Integer)

findStrategyByNaturalId

public java.lang.Object findStrategyByNaturalId(int transform,
                                                java.lang.Integer id)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByNaturalId(java.lang.Integer) 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:
findStrategyByNaturalId in interface StrategyDao
See Also:
StrategyDao.findStrategyByNaturalId(int, java.lang.Integer)

findStrategyByNaturalId

public Strategy findStrategyByNaturalId(java.lang.String queryString,
                                        java.lang.Integer id)
Description copied from interface: StrategyDao

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

Specified by:
findStrategyByNaturalId in interface StrategyDao
See Also:
StrategyDao.findStrategyByNaturalId(java.lang.String, java.lang.Integer)

findStrategyByNaturalId

public java.lang.Object findStrategyByNaturalId(int transform,
                                                java.lang.String queryString,
                                                java.lang.Integer id)
Description copied from interface: StrategyDao

Does the same thing as StrategyDao.findStrategyByNaturalId(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in StrategyDao.findStrategyByNaturalId(int, java.lang.Integer id).

Specified by:
findStrategyByNaturalId in interface StrategyDao
See Also:
StrategyDao.findStrategyByNaturalId(int, java.lang.String, java.lang.Integer)

getAllStrategySinceDateSynchro

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

getAllStrategySinceDateSynchro

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

Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(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:
getAllStrategySinceDateSynchro in interface StrategyDao
See Also:
StrategyDao.getAllStrategySinceDateSynchro(int, java.sql.Timestamp)

getAllStrategySinceDateSynchro

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

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

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

getAllStrategySinceDateSynchro

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

Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(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:
getAllStrategySinceDateSynchro in interface StrategyDao
See Also:
StrategyDao.getAllStrategySinceDateSynchro(int, int, java.sql.Timestamp)

getAllStrategySinceDateSynchro

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

Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(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:
getAllStrategySinceDateSynchro in interface StrategyDao
See Also:
StrategyDao.getAllStrategySinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllStrategySinceDateSynchro

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

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

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

getAllStrategySinceDateSynchro

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

Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(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:
getAllStrategySinceDateSynchro in interface StrategyDao
See Also:
StrategyDao.getAllStrategySinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllStrategySinceDateSynchro

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

Does the same thing as StrategyDao.getAllStrategySinceDateSynchro(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:
getAllStrategySinceDateSynchro in interface StrategyDao
See Also:
StrategyDao.getAllStrategySinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterStrategy

public Strategy createFromClusterStrategy(ClusterStrategy clusterStrategy)
Specified by:
createFromClusterStrategy in interface StrategyDao
See Also:
StrategyDao.createFromClusterStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)

handleCreateFromClusterStrategy

protected abstract Strategy handleCreateFromClusterStrategy(ClusterStrategy clusterStrategy)
                                                     throws java.lang.Exception
Performs the core logic for createFromClusterStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterStrategy)

Throws:
java.lang.Exception

getAllClusterStrategySinceDateSynchro

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

handleGetAllClusterStrategySinceDateSynchro

protected abstract ClusterStrategy[] handleGetAllClusterStrategySinceDateSynchro(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 getAllClusterStrategySinceDateSynchro(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,
                                           Strategy 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.StrategyDao, please note that the StrategyDao.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 StrategyDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in StrategyDao
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.Strategy) 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.StrategyDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Strategy)

toEntity

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

toRemoteStrategyFullVOCollection

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

Specified by:
toRemoteStrategyFullVOCollection in interface StrategyDao
See Also:
StrategyDao.toRemoteStrategyFullVOCollection(java.util.Collection)

toRemoteStrategyFullVOArray

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

Specified by:
toRemoteStrategyFullVOArray in interface StrategyDao
See Also:
StrategyDao.toRemoteStrategyFullVOArray(java.util.Collection)

toRemoteStrategyFullVO

protected RemoteStrategyFullVO toRemoteStrategyFullVO(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 StrategyDaoImpl class if you intend to use reporting queries.

See Also:
StrategyDao.toRemoteStrategyFullVO(fr.ifremer.allegro.administration.programStrategy.Strategy)

remoteStrategyFullVOToEntityCollection

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

Specified by:
remoteStrategyFullVOToEntityCollection in interface StrategyDao
See Also:
StrategyDao.remoteStrategyFullVOToEntityCollection(java.util.Collection)

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
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
See Also:
StrategyDao.toRemoteStrategyFullVO(fr.ifremer.allegro.administration.programStrategy.Strategy)

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

toRemoteStrategyNaturalIdCollection

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

Specified by:
toRemoteStrategyNaturalIdCollection in interface StrategyDao
See Also:
StrategyDao.toRemoteStrategyNaturalIdCollection(java.util.Collection)

toRemoteStrategyNaturalIdArray

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

Specified by:
toRemoteStrategyNaturalIdArray in interface StrategyDao
See Also:
StrategyDao.toRemoteStrategyNaturalIdArray(java.util.Collection)

toRemoteStrategyNaturalId

protected RemoteStrategyNaturalId toRemoteStrategyNaturalId(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 StrategyDaoImpl class if you intend to use reporting queries.

See Also:
StrategyDao.toRemoteStrategyNaturalId(fr.ifremer.allegro.administration.programStrategy.Strategy)

remoteStrategyNaturalIdToEntityCollection

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

Specified by:
remoteStrategyNaturalIdToEntityCollection in interface StrategyDao
See Also:
StrategyDao.remoteStrategyNaturalIdToEntityCollection(java.util.Collection)

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
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
See Also:
StrategyDao.toRemoteStrategyNaturalId(fr.ifremer.allegro.administration.programStrategy.Strategy)

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

toClusterStrategyCollection

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

Specified by:
toClusterStrategyCollection in interface StrategyDao
See Also:
StrategyDao.toClusterStrategyCollection(java.util.Collection)

toClusterStrategyArray

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

Specified by:
toClusterStrategyArray in interface StrategyDao
See Also:
StrategyDao.toClusterStrategyArray(java.util.Collection)

toClusterStrategy

protected ClusterStrategy toClusterStrategy(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 StrategyDaoImpl class if you intend to use reporting queries.

See Also:
StrategyDao.toClusterStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy)

clusterStrategyToEntityCollection

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

Specified by:
clusterStrategyToEntityCollection in interface StrategyDao
See Also:
StrategyDao.clusterStrategyToEntityCollection(java.util.Collection)

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
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
See Also:
StrategyDao.toClusterStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy)

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

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: StrategyDao
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 StrategyDao
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:
StrategyDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: StrategyDao
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 StrategyDao
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:
StrategyDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: StrategyDao
Does the same thing as StrategyDao.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 StrategyDao
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:
StrategyDao.search(int, fr.ifremer.allegro.Search)

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.