fr.ifremer.allegro.administration.programStrategy
Class AppliedStrategyDaoBase

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

public abstract class AppliedStrategyDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements AppliedStrategyDao

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

See Also:
AppliedStrategy

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.AppliedStrategyDao
TRANSFORM_CLUSTERAPPLIEDSTRATEGY, TRANSFORM_NONE, TRANSFORM_REMOTEAPPLIEDSTRATEGYFULLVO, TRANSFORM_REMOTEAPPLIEDSTRATEGYNATURALID
 
Constructor Summary
AppliedStrategyDaoBase()
           
 
Method Summary
 void clusterAppliedStrategyToEntity(ClusterAppliedStrategy source, AppliedStrategy target, boolean copyIfNull)
          Copies the fields of ClusterAppliedStrategy to the specified entity.
 void clusterAppliedStrategyToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterAppliedStrategy to this DAO's entity.
 AppliedStrategy create(AppliedStrategy appliedStrategy)
          Creates an instance of fr.ifremer.allegro.administration.programStrategy.AppliedStrategy and adds it to the persistent store.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.programStrategy.AppliedStrategy and adds from the passed in entities collection
 AppliedStrategy create(java.util.Collection appliedPeriods, java.util.Collection pmfmAppliedStrategies, Strategy strategy, Location location, java.util.Collection batchModelAppliedStrategies)
           Creates a new fr.ifremer.allegro.administration.programStrategy.AppliedStrategy instance from all attributes and properties and adds it to the persistent store.
 AppliedStrategy create(java.util.Collection appliedPeriods, Location location, Strategy strategy)
           Creates a new fr.ifremer.allegro.administration.programStrategy.AppliedStrategy instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.lang.Object create(int transform, AppliedStrategy appliedStrategy)
           Does the same thing as AppliedStrategyDao.create(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy) with an additional flag called transform.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as AppliedStrategyDao.create(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Collection appliedPeriods, java.util.Collection pmfmAppliedStrategies, Strategy strategy, Location location, java.util.Collection batchModelAppliedStrategies)
           Does the same thing as AppliedStrategyDao.create(java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.programStrategy.Strategy,fr.ifremer.allegro.referential.location.Location,java.util.Collection) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Collection appliedPeriods, Location location, Strategy strategy)
           Does the same thing as AppliedStrategyDao.create(java.util.Collection,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional flag called transform.
 AppliedStrategy createFromClusterAppliedStrategy(ClusterAppliedStrategy clusterAppliedStrategy)
           
 AppliedStrategy findAppliedStrategyById(java.lang.Integer id)
           
 java.lang.Object findAppliedStrategyById(int transform, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findAppliedStrategyById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyById(int, java.lang.Integer) with an additional argument called queryString.
 AppliedStrategy findAppliedStrategyById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyById(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findAppliedStrategyByLocation(int transform, int pageNumber, int pageSize, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByLocation(int pageNumber, int pageSize, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByLocation(int transform, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findAppliedStrategyByLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByLocation(int transform, java.lang.String queryString, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findAppliedStrategyByLocation(Location location)
           
 java.util.Collection findAppliedStrategyByLocation(java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByLocation(java.lang.String queryString, Location location)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 AppliedStrategy findAppliedStrategyByNaturalId(java.lang.Integer id)
           
 java.lang.Object findAppliedStrategyByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findAppliedStrategyByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 AppliedStrategy findAppliedStrategyByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findAppliedStrategyByStrategy(int transform, int pageNumber, int pageSize, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(int, fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByStrategy(int pageNumber, int pageSize, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByStrategy(int transform, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional flag called transform.
 java.util.Collection findAppliedStrategyByStrategy(int transform, java.lang.String queryString, int pageNumber, int pageSize, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(int, String, fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByStrategy(int transform, java.lang.String queryString, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(int, fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional argument called queryString.
 java.util.Collection findAppliedStrategyByStrategy(Strategy strategy)
           
 java.util.Collection findAppliedStrategyByStrategy(java.lang.String queryString, int pageNumber, int pageSize, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(String, fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAppliedStrategyByStrategy(java.lang.String queryString, Strategy strategy)
           Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional argument called queryString.
 java.util.Collection getAllAppliedStrategy()
           
 java.util.Collection getAllAppliedStrategy(int transform)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy() with an additional flag called transform.
 java.util.Collection getAllAppliedStrategy(int pageNumber, int pageSize)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAppliedStrategy(int transform, int pageNumber, int pageSize)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAppliedStrategy(int transform, java.lang.String queryString)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy(int) with an additional argument called queryString.
 java.util.Collection getAllAppliedStrategy(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAppliedStrategy(java.lang.String queryString)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy() with an additional argument called queryString.
 java.util.Collection getAllAppliedStrategy(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as AppliedStrategyDao.getAllAppliedStrategy(String) with an additional two arguments called pageNumber and pageSize.
protected  AppliedPeriodDao getAppliedPeriodDao()
          Gets the reference to appliedPeriodDao.
protected  BatchModelAppliedStrategyDao getBatchModelAppliedStrategyDao()
          Gets the reference to batchModelAppliedStrategyDao.
protected  LocationDao getLocationDao()
          Gets the reference to locationDao.
protected  PmfmAppliedStrategyDao getPmfmAppliedStrategyDao()
          Gets the reference to pmfmAppliedStrategyDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StrategyDao getStrategyDao()
          Gets the reference to strategyDao.
protected abstract  AppliedStrategy handleCreateFromClusterAppliedStrategy(ClusterAppliedStrategy clusterAppliedStrategy)
          Performs the core logic for createFromClusterAppliedStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterAppliedStrategy)
 AppliedStrategy load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.programStrategy.AppliedStrategy from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as AppliedStrategyDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type AppliedStrategy.
 java.util.Collection loadAll(int transform)
           Does the same thing as AppliedStrategyDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as AppliedStrategyDao.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 AppliedStrategyDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteAppliedStrategyFullVOToEntity(RemoteAppliedStrategyFullVO source, AppliedStrategy target, boolean copyIfNull)
          Copies the fields of RemoteAppliedStrategyFullVO to the specified entity.
 void remoteAppliedStrategyFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteAppliedStrategyFullVO to this DAO's entity.
 void remoteAppliedStrategyNaturalIdToEntity(RemoteAppliedStrategyNaturalId source, AppliedStrategy target, boolean copyIfNull)
          Copies the fields of RemoteAppliedStrategyNaturalId to the specified entity.
 void remoteAppliedStrategyNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteAppliedStrategyNaturalId to this DAO's entity.
 void remove(AppliedStrategy appliedStrategy)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.AppliedStrategy from the persistent store.
 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.AppliedStrategy 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 AppliedStrategyDao.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 setAppliedPeriodDao(AppliedPeriodDao appliedPeriodDao)
          Sets the reference to appliedPeriodDao.
 void setBatchModelAppliedStrategyDao(BatchModelAppliedStrategyDao batchModelAppliedStrategyDao)
          Sets the reference to batchModelAppliedStrategyDao.
 void setLocationDao(LocationDao locationDao)
          Sets the reference to locationDao.
 void setPmfmAppliedStrategyDao(PmfmAppliedStrategyDao pmfmAppliedStrategyDao)
          Sets the reference to pmfmAppliedStrategyDao.
 void setStrategyDao(StrategyDao strategyDao)
          Sets the reference to strategyDao.
 ClusterAppliedStrategy toClusterAppliedStrategy(AppliedStrategy entity)
          Converts this DAO's entity to an object of type ClusterAppliedStrategy.
 void toClusterAppliedStrategy(AppliedStrategy source, ClusterAppliedStrategy target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterAppliedStrategy toClusterAppliedStrategy(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterAppliedStrategy[] toClusterAppliedStrategyArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterAppliedStrategy.
 void toClusterAppliedStrategyCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterAppliedStrategy.
protected  AppliedStrategy toEntity(java.lang.Object[] row)
           
 RemoteAppliedStrategyFullVO toRemoteAppliedStrategyFullVO(AppliedStrategy entity)
          Converts this DAO's entity to an object of type RemoteAppliedStrategyFullVO.
 void toRemoteAppliedStrategyFullVO(AppliedStrategy source, RemoteAppliedStrategyFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteAppliedStrategyFullVO toRemoteAppliedStrategyFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteAppliedStrategyFullVO[] toRemoteAppliedStrategyFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteAppliedStrategyFullVO.
 void toRemoteAppliedStrategyFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteAppliedStrategyFullVO.
 RemoteAppliedStrategyNaturalId toRemoteAppliedStrategyNaturalId(AppliedStrategy entity)
          Converts this DAO's entity to an object of type RemoteAppliedStrategyNaturalId.
 void toRemoteAppliedStrategyNaturalId(AppliedStrategy source, RemoteAppliedStrategyNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteAppliedStrategyNaturalId toRemoteAppliedStrategyNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteAppliedStrategyNaturalId[] toRemoteAppliedStrategyNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteAppliedStrategyNaturalId.
 void toRemoteAppliedStrategyNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteAppliedStrategyNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.AppliedStrategy) method.
protected  java.lang.Object transformEntity(int transform, AppliedStrategy 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.AppliedStrategyDao, please note that the AppliedStrategyDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(AppliedStrategy appliedStrategy)
          Updates the appliedStrategy instance in the persistent store.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection 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.AppliedStrategyDao
clusterAppliedStrategyToEntity, remoteAppliedStrategyFullVOToEntity, remoteAppliedStrategyNaturalIdToEntity
 

Constructor Detail

AppliedStrategyDaoBase

public AppliedStrategyDaoBase()
Method Detail

setLocationDao

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


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to locationDao.


setStrategyDao

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


getStrategyDao

protected StrategyDao getStrategyDao()
Gets the reference to strategyDao.


setAppliedPeriodDao

public void setAppliedPeriodDao(AppliedPeriodDao appliedPeriodDao)
Sets the reference to appliedPeriodDao.


getAppliedPeriodDao

protected AppliedPeriodDao getAppliedPeriodDao()
Gets the reference to appliedPeriodDao.


setPmfmAppliedStrategyDao

public void setPmfmAppliedStrategyDao(PmfmAppliedStrategyDao pmfmAppliedStrategyDao)
Sets the reference to pmfmAppliedStrategyDao.


getPmfmAppliedStrategyDao

protected PmfmAppliedStrategyDao getPmfmAppliedStrategyDao()
Gets the reference to pmfmAppliedStrategyDao.


setBatchModelAppliedStrategyDao

public void setBatchModelAppliedStrategyDao(BatchModelAppliedStrategyDao batchModelAppliedStrategyDao)
Sets the reference to batchModelAppliedStrategyDao.


getBatchModelAppliedStrategyDao

protected BatchModelAppliedStrategyDao getBatchModelAppliedStrategyDao()
Gets the reference to batchModelAppliedStrategyDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               AppliedStrategy appliedStrategy)
Description copied from interface: AppliedStrategyDao

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

create

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

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

create

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

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

create

public AppliedStrategy create(java.util.Collection appliedPeriods,
                              java.util.Collection pmfmAppliedStrategies,
                              Strategy strategy,
                              Location location,
                              java.util.Collection batchModelAppliedStrategies)
Description copied from interface: AppliedStrategyDao

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

Specified by:
create in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.create(java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.programStrategy.Strategy,fr.ifremer.allegro.referential.location.Location,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.util.Collection appliedPeriods,
                               java.util.Collection pmfmAppliedStrategies,
                               Strategy strategy,
                               Location location,
                               java.util.Collection batchModelAppliedStrategies)
Description copied from interface: AppliedStrategyDao

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

create

public AppliedStrategy create(java.util.Collection appliedPeriods,
                              Location location,
                              Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

Specified by:
create in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.create(java.util.Collection,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.administration.programStrategy.Strategy)

create

public java.lang.Object create(int transform,
                               java.util.Collection appliedPeriods,
                               Location location,
                               Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

update

public void update(AppliedStrategy appliedStrategy)
Description copied from interface: AppliedStrategyDao
Updates the appliedStrategy instance in the persistent store.

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

update

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

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

remove

public void remove(AppliedStrategy appliedStrategy)
Description copied from interface: AppliedStrategyDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.AppliedStrategy from the persistent store.

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

remove

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

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

remove

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

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

getAllAppliedStrategy

public java.util.Collection getAllAppliedStrategy()
Specified by:
getAllAppliedStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.getAllAppliedStrategy()

getAllAppliedStrategy

public java.util.Collection getAllAppliedStrategy(int transform)
Description copied from interface: AppliedStrategyDao

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

getAllAppliedStrategy

public java.util.Collection getAllAppliedStrategy(java.lang.String queryString)
Description copied from interface: AppliedStrategyDao

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

Specified by:
getAllAppliedStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.getAllAppliedStrategy(java.lang.String)

getAllAppliedStrategy

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

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

getAllAppliedStrategy

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

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

getAllAppliedStrategy

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

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

Specified by:
getAllAppliedStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.getAllAppliedStrategy(int, String)

getAllAppliedStrategy

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

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

getAllAppliedStrategy

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

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

findAppliedStrategyById

public AppliedStrategy findAppliedStrategyById(java.lang.Integer id)
Specified by:
findAppliedStrategyById in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyById(java.lang.Integer)

findAppliedStrategyById

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

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

findAppliedStrategyById

public AppliedStrategy findAppliedStrategyById(java.lang.String queryString,
                                               java.lang.Integer id)
Description copied from interface: AppliedStrategyDao

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

Specified by:
findAppliedStrategyById in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyById(java.lang.String, java.lang.Integer)

findAppliedStrategyById

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

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

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

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(Location location)
Specified by:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(int transform,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location) 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:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(int, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(java.lang.String queryString,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString. This queryString argument allows you to override the query string defined in AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location).

Specified by:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(java.lang.String, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(int pageNumber,
                                                          int pageSize,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(fr.ifremer.allegro.referential.location.Location) 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:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(int, int, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(String, fr.ifremer.allegro.referential.location.Location) 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:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(String, int, int, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(int transform,
                                                          java.lang.String queryString,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString. This queryString argument allows you to override the query string defined in AppliedStrategyDao.findAppliedStrategyByLocation(int, fr.ifremer.allegro.referential.location.Location location).

Specified by:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(int, String, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(int transform,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(int, fr.ifremer.allegro.referential.location.Location) 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:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(int, int, int, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByLocation

public java.util.Collection findAppliedStrategyByLocation(int transform,
                                                          java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Location location)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByLocation(int, String, fr.ifremer.allegro.referential.location.Location) 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:
findAppliedStrategyByLocation in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByLocation(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.Location)

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(Strategy strategy)
Specified by:
findAppliedStrategyByStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByStrategy(fr.ifremer.allegro.administration.programStrategy.Strategy)

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(int transform,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(java.lang.String queryString,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

Specified by:
findAppliedStrategyByStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByStrategy(java.lang.String, fr.ifremer.allegro.administration.programStrategy.Strategy)

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(int pageNumber,
                                                          int pageSize,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(int transform,
                                                          java.lang.String queryString,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

Does the same thing as AppliedStrategyDao.findAppliedStrategyByStrategy(int, fr.ifremer.allegro.administration.programStrategy.Strategy) with an additional argument called queryString. This queryString argument allows you to override the query string defined in AppliedStrategyDao.findAppliedStrategyByStrategy(int, fr.ifremer.allegro.administration.programStrategy.Strategy strategy).

Specified by:
findAppliedStrategyByStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByStrategy(int, String, fr.ifremer.allegro.administration.programStrategy.Strategy)

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(int transform,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

findAppliedStrategyByStrategy

public java.util.Collection findAppliedStrategyByStrategy(int transform,
                                                          java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Strategy strategy)
Description copied from interface: AppliedStrategyDao

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

findAppliedStrategyByNaturalId

public AppliedStrategy findAppliedStrategyByNaturalId(java.lang.Integer id)
Specified by:
findAppliedStrategyByNaturalId in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByNaturalId(java.lang.Integer)

findAppliedStrategyByNaturalId

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

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

findAppliedStrategyByNaturalId

public AppliedStrategy findAppliedStrategyByNaturalId(java.lang.String queryString,
                                                      java.lang.Integer id)
Description copied from interface: AppliedStrategyDao

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

Specified by:
findAppliedStrategyByNaturalId in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.findAppliedStrategyByNaturalId(java.lang.String, java.lang.Integer)

findAppliedStrategyByNaturalId

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

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

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

createFromClusterAppliedStrategy

public AppliedStrategy createFromClusterAppliedStrategy(ClusterAppliedStrategy clusterAppliedStrategy)
Specified by:
createFromClusterAppliedStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.createFromClusterAppliedStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterAppliedStrategy)

handleCreateFromClusterAppliedStrategy

protected abstract AppliedStrategy handleCreateFromClusterAppliedStrategy(ClusterAppliedStrategy clusterAppliedStrategy)
                                                                   throws java.lang.Exception
Performs the core logic for createFromClusterAppliedStrategy(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterAppliedStrategy)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           AppliedStrategy 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.AppliedStrategyDao, please note that the AppliedStrategyDao.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 AppliedStrategyDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteAppliedStrategyFullVOCollection

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

Specified by:
toRemoteAppliedStrategyFullVOCollection in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toRemoteAppliedStrategyFullVOCollection(java.util.Collection)

toRemoteAppliedStrategyFullVOArray

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

Specified by:
toRemoteAppliedStrategyFullVOArray in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toRemoteAppliedStrategyFullVOArray(java.util.Collection)

toRemoteAppliedStrategyFullVO

protected RemoteAppliedStrategyFullVO toRemoteAppliedStrategyFullVO(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 AppliedStrategyDaoImpl class if you intend to use reporting queries.

See Also:
AppliedStrategyDao.toRemoteAppliedStrategyFullVO(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

remoteAppliedStrategyFullVOToEntityCollection

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

Specified by:
remoteAppliedStrategyFullVOToEntityCollection in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.remoteAppliedStrategyFullVOToEntityCollection(java.util.Collection)

toRemoteAppliedStrategyFullVO

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

toRemoteAppliedStrategyFullVO

public RemoteAppliedStrategyFullVO toRemoteAppliedStrategyFullVO(AppliedStrategy entity)
Description copied from interface: AppliedStrategyDao
Converts this DAO's entity to an object of type RemoteAppliedStrategyFullVO.

Specified by:
toRemoteAppliedStrategyFullVO in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toRemoteAppliedStrategyFullVO(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

remoteAppliedStrategyFullVOToEntity

public void remoteAppliedStrategyFullVOToEntity(RemoteAppliedStrategyFullVO source,
                                                AppliedStrategy target,
                                                boolean copyIfNull)
Description copied from interface: AppliedStrategyDao
Copies the fields of RemoteAppliedStrategyFullVO to the specified entity.

Specified by:
remoteAppliedStrategyFullVOToEntity in interface AppliedStrategyDao
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.AppliedStrategyDao#remoteAppliedStrategyFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteAppliedStrategyFullVO, fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

toRemoteAppliedStrategyNaturalIdCollection

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

Specified by:
toRemoteAppliedStrategyNaturalIdCollection in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toRemoteAppliedStrategyNaturalIdCollection(java.util.Collection)

toRemoteAppliedStrategyNaturalIdArray

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

Specified by:
toRemoteAppliedStrategyNaturalIdArray in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toRemoteAppliedStrategyNaturalIdArray(java.util.Collection)

toRemoteAppliedStrategyNaturalId

protected RemoteAppliedStrategyNaturalId toRemoteAppliedStrategyNaturalId(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 AppliedStrategyDaoImpl class if you intend to use reporting queries.

See Also:
AppliedStrategyDao.toRemoteAppliedStrategyNaturalId(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

remoteAppliedStrategyNaturalIdToEntityCollection

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

Specified by:
remoteAppliedStrategyNaturalIdToEntityCollection in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.remoteAppliedStrategyNaturalIdToEntityCollection(java.util.Collection)

toRemoteAppliedStrategyNaturalId

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

toRemoteAppliedStrategyNaturalId

public RemoteAppliedStrategyNaturalId toRemoteAppliedStrategyNaturalId(AppliedStrategy entity)
Description copied from interface: AppliedStrategyDao
Converts this DAO's entity to an object of type RemoteAppliedStrategyNaturalId.

Specified by:
toRemoteAppliedStrategyNaturalId in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toRemoteAppliedStrategyNaturalId(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

remoteAppliedStrategyNaturalIdToEntity

public void remoteAppliedStrategyNaturalIdToEntity(RemoteAppliedStrategyNaturalId source,
                                                   AppliedStrategy target,
                                                   boolean copyIfNull)
Description copied from interface: AppliedStrategyDao
Copies the fields of RemoteAppliedStrategyNaturalId to the specified entity.

Specified by:
remoteAppliedStrategyNaturalIdToEntity in interface AppliedStrategyDao
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.AppliedStrategyDao#remoteAppliedStrategyNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteAppliedStrategyNaturalId, fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

toClusterAppliedStrategyCollection

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

Specified by:
toClusterAppliedStrategyCollection in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toClusterAppliedStrategyCollection(java.util.Collection)

toClusterAppliedStrategyArray

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

Specified by:
toClusterAppliedStrategyArray in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toClusterAppliedStrategyArray(java.util.Collection)

toClusterAppliedStrategy

protected ClusterAppliedStrategy toClusterAppliedStrategy(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 AppliedStrategyDaoImpl class if you intend to use reporting queries.

See Also:
AppliedStrategyDao.toClusterAppliedStrategy(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

clusterAppliedStrategyToEntityCollection

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

Specified by:
clusterAppliedStrategyToEntityCollection in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.clusterAppliedStrategyToEntityCollection(java.util.Collection)

toClusterAppliedStrategy

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

toClusterAppliedStrategy

public ClusterAppliedStrategy toClusterAppliedStrategy(AppliedStrategy entity)
Description copied from interface: AppliedStrategyDao
Converts this DAO's entity to an object of type ClusterAppliedStrategy.

Specified by:
toClusterAppliedStrategy in interface AppliedStrategyDao
See Also:
AppliedStrategyDao.toClusterAppliedStrategy(fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

clusterAppliedStrategyToEntity

public void clusterAppliedStrategyToEntity(ClusterAppliedStrategy source,
                                           AppliedStrategy target,
                                           boolean copyIfNull)
Description copied from interface: AppliedStrategyDao
Copies the fields of ClusterAppliedStrategy to the specified entity.

Specified by:
clusterAppliedStrategyToEntity in interface AppliedStrategyDao
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.AppliedStrategyDao#clusterAppliedStrategyToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterAppliedStrategy, fr.ifremer.allegro.administration.programStrategy.AppliedStrategy)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.