fr.ifremer.allegro.data.survey.sale
Class SaleOriginDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.survey.sale.SaleOriginDaoBase
All Implemented Interfaces:
SaleOriginDao
Direct Known Subclasses:
SaleOriginDaoImpl

public abstract class SaleOriginDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements SaleOriginDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.data.survey.sale.SaleOrigin.

See Also:
SaleOrigin

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.survey.sale.SaleOriginDao
TRANSFORM_CLUSTERSALEORIGIN, TRANSFORM_NONE, TRANSFORM_REMOTESALEORIGINFULLVO, TRANSFORM_REMOTESALEORIGINNATURALID
 
Constructor Summary
SaleOriginDaoBase()
           
 
Method Summary
 void clusterSaleOriginToEntity(ClusterSaleOrigin source, SaleOrigin target, boolean copyIfNull)
          Copies the fields of ClusterSaleOrigin to the specified entity.
 void clusterSaleOriginToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterSaleOrigin to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.SaleOrigin) with an additional flag called transform.
 java.lang.Object create(int transform, SaleOrigin saleOrigin)
           Does the same thing as SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.SaleOrigin) with an additional flag called transform.
 java.lang.Object create(int transform, Sale sale, Program program)
           Does the same thing as SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 SaleOrigin create(SaleOrigin saleOrigin)
          Creates an instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin and adds it to the persistent store.
 SaleOrigin create(Sale sale, Program program)
           Creates a new fr.ifremer.allegro.data.survey.sale.SaleOrigin instance from all attributes and properties and adds it to the persistent store.
 SaleOrigin createFromClusterSaleOrigin(ClusterSaleOrigin clusterSaleOrigin)
           
 java.lang.Object findSaleOriginByIdentifiers(int transform, Program program, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginByIdentifiers(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional flag called transform.
 java.lang.Object findSaleOriginByIdentifiers(int transform, java.lang.String queryString, Program program, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginByIdentifiers(int, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString.
 SaleOrigin findSaleOriginByIdentifiers(Program program, Sale sale)
           
 SaleOrigin findSaleOriginByIdentifiers(java.lang.String queryString, Program program, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginByIdentifiers(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString.
 java.lang.Object findSaleOriginByNaturalId(int transform, Program program, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginByNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional flag called transform.
 java.lang.Object findSaleOriginByNaturalId(int transform, java.lang.String queryString, Program program, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginByNaturalId(int, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString.
 SaleOrigin findSaleOriginByNaturalId(Program program, Sale sale)
           
 SaleOrigin findSaleOriginByNaturalId(java.lang.String queryString, Program program, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginByNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString.
 java.util.Collection findSaleOriginByProgram(int transform, int pageNumber, int pageSize, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginByProgram(int pageNumber, int pageSize, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginByProgram(int transform, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.util.Collection findSaleOriginByProgram(int transform, java.lang.String queryString, int pageNumber, int pageSize, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginByProgram(int transform, java.lang.String queryString, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString.
 java.util.Collection findSaleOriginByProgram(Program program)
           
 java.util.Collection findSaleOriginByProgram(java.lang.String queryString, int pageNumber, int pageSize, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(String, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginByProgram(java.lang.String queryString, Program program)
           Does the same thing as SaleOriginDao.findSaleOriginByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString.
 java.util.Collection findSaleOriginBySale(int transform, int pageNumber, int pageSize, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(int, fr.ifremer.allegro.data.survey.sale.Sale) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginBySale(int pageNumber, int pageSize, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginBySale(int transform, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale) with an additional flag called transform.
 java.util.Collection findSaleOriginBySale(int transform, java.lang.String queryString, int pageNumber, int pageSize, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(int, String, fr.ifremer.allegro.data.survey.sale.Sale) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginBySale(int transform, java.lang.String queryString, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(int, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString.
 java.util.Collection findSaleOriginBySale(Sale sale)
           
 java.util.Collection findSaleOriginBySale(java.lang.String queryString, int pageNumber, int pageSize, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(String, fr.ifremer.allegro.data.survey.sale.Sale) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSaleOriginBySale(java.lang.String queryString, Sale sale)
           Does the same thing as SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString.
 java.util.Collection getAllSaleOrigin()
           
 java.util.Collection getAllSaleOrigin(int transform)
           Does the same thing as SaleOriginDao.getAllSaleOrigin() with an additional flag called transform.
 java.util.Collection getAllSaleOrigin(int pageNumber, int pageSize)
           Does the same thing as SaleOriginDao.getAllSaleOrigin() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSaleOrigin(int transform, int pageNumber, int pageSize)
           Does the same thing as SaleOriginDao.getAllSaleOrigin(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSaleOrigin(int transform, java.lang.String queryString)
           Does the same thing as SaleOriginDao.getAllSaleOrigin(int) with an additional argument called queryString.
 java.util.Collection getAllSaleOrigin(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as SaleOriginDao.getAllSaleOrigin(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSaleOrigin(java.lang.String queryString)
           Does the same thing as SaleOriginDao.getAllSaleOrigin() with an additional argument called queryString.
 java.util.Collection getAllSaleOrigin(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as SaleOriginDao.getAllSaleOrigin(String) with an additional two arguments called pageNumber and pageSize.
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  SaleDao getSaleDao()
          Gets the reference to saleDao.
protected abstract  SaleOrigin handleCreateFromClusterSaleOrigin(ClusterSaleOrigin clusterSaleOrigin)
          Performs the core logic for createFromClusterSaleOrigin(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSaleOrigin)
 java.lang.Object load(int transform, Sale sale, Program program)
           Does the same thing as SaleOriginDao.load(fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 SaleOrigin load(Sale sale, Program program)
          Loads an instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type SaleOrigin.
 java.util.Collection loadAll(int transform)
           Does the same thing as SaleOriginDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as SaleOriginDao.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 SaleOriginDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteSaleOriginFullVOToEntity(RemoteSaleOriginFullVO source, SaleOrigin target, boolean copyIfNull)
          Copies the fields of RemoteSaleOriginFullVO to the specified entity.
 void remoteSaleOriginFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteSaleOriginFullVO to this DAO's entity.
 void remoteSaleOriginNaturalIdToEntity(RemoteSaleOriginNaturalId source, SaleOrigin target, boolean copyIfNull)
          Copies the fields of RemoteSaleOriginNaturalId to the specified entity.
 void remoteSaleOriginNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteSaleOriginNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(SaleOrigin saleOrigin)
          Removes the instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin from the persistent store.
 void remove(Sale sale, Program program)
          Removes the instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin having the given identifiers 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 SaleOriginDao.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 setProgramDao(ProgramDao programDao)
          Sets the reference to programDao.
 void setSaleDao(SaleDao saleDao)
          Sets the reference to saleDao.
protected  ClusterSaleOrigin toClusterSaleOrigin(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterSaleOrigin toClusterSaleOrigin(SaleOrigin entity)
          Converts this DAO's entity to an object of type ClusterSaleOrigin.
 void toClusterSaleOrigin(SaleOrigin source, ClusterSaleOrigin target)
          Copies the fields of the specified entity to the target value object.
 ClusterSaleOrigin[] toClusterSaleOriginArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterSaleOrigin.
 void toClusterSaleOriginCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterSaleOrigin.
protected  SaleOrigin toEntity(java.lang.Object[] row)
           
protected  RemoteSaleOriginFullVO toRemoteSaleOriginFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteSaleOriginFullVO toRemoteSaleOriginFullVO(SaleOrigin entity)
          Converts this DAO's entity to an object of type RemoteSaleOriginFullVO.
 void toRemoteSaleOriginFullVO(SaleOrigin source, RemoteSaleOriginFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteSaleOriginFullVO[] toRemoteSaleOriginFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteSaleOriginFullVO.
 void toRemoteSaleOriginFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteSaleOriginFullVO.
protected  RemoteSaleOriginNaturalId toRemoteSaleOriginNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteSaleOriginNaturalId toRemoteSaleOriginNaturalId(SaleOrigin entity)
          Converts this DAO's entity to an object of type RemoteSaleOriginNaturalId.
 void toRemoteSaleOriginNaturalId(SaleOrigin source, RemoteSaleOriginNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteSaleOriginNaturalId[] toRemoteSaleOriginNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteSaleOriginNaturalId.
 void toRemoteSaleOriginNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteSaleOriginNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.data.survey.sale.SaleOrigin) method.
protected  java.lang.Object transformEntity(int transform, SaleOrigin 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.data.survey.sale.SaleOriginDao, please note that the SaleOriginDao.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(SaleOrigin saleOrigin)
          Updates the saleOrigin 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.data.survey.sale.SaleOriginDao
clusterSaleOriginToEntity, remoteSaleOriginFullVOToEntity, remoteSaleOriginNaturalIdToEntity
 

Constructor Detail

SaleOriginDaoBase

public SaleOriginDaoBase()
Method Detail

setProgramDao

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


getProgramDao

protected ProgramDao getProgramDao()
Gets the reference to programDao.


setSaleDao

public void setSaleDao(SaleDao saleDao)
Sets the reference to saleDao.


getSaleDao

protected SaleDao getSaleDao()
Gets the reference to saleDao.


load

public java.lang.Object load(int transform,
                             Sale sale,
                             Program program)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.load(fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined 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 SaleOriginDao
sale - identifier of the entity to load
program - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
SaleOriginDao.load(int, fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program)

load

public SaleOrigin load(Sale sale,
                       Program program)
Description copied from interface: SaleOriginDao
Loads an instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin from the persistent store.

Specified by:
load in interface SaleOriginDao
See Also:
SaleOriginDao.load(fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program)

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public SaleOrigin create(SaleOrigin saleOrigin)
Description copied from interface: SaleOriginDao
Creates an instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin and adds it to the persistent store.

Specified by:
create in interface SaleOriginDao
See Also:
SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

create

public java.lang.Object create(int transform,
                               SaleOrigin saleOrigin)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.SaleOrigin) 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 SaleOriginDao
See Also:
SaleOriginDao.create(int transform, fr.ifremer.allegro.data.survey.sale.SaleOrigin)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: SaleOriginDao
Creates a new instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin and adds from the passed in entities collection

Specified by:
create in interface SaleOriginDao
Parameters:
entities - the collection of fr.ifremer.allegro.data.survey.sale.SaleOrigin instances to create.
Returns:
the created instances.
See Also:
SaleOriginDao.create(java.util.Collection)

create

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

Does the same thing as SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.SaleOrigin) 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 SaleOriginDao
See Also:
SaleOriginDao.create(int, java.util.Collection)

create

public SaleOrigin create(Sale sale,
                         Program program)
Description copied from interface: SaleOriginDao

Creates a new fr.ifremer.allegro.data.survey.sale.SaleOrigin instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface SaleOriginDao
See Also:
SaleOriginDao.create(fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program)

create

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

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

Specified by:
create in interface SaleOriginDao
See Also:
SaleOriginDao.create(int, fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program)

update

public void update(SaleOrigin saleOrigin)
Description copied from interface: SaleOriginDao
Updates the saleOrigin instance in the persistent store.

Specified by:
update in interface SaleOriginDao
See Also:
SaleOriginDao.update(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

update

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

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

remove

public void remove(SaleOrigin saleOrigin)
Description copied from interface: SaleOriginDao
Removes the instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin from the persistent store.

Specified by:
remove in interface SaleOriginDao
See Also:
SaleOriginDao.remove(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

remove

public void remove(Sale sale,
                   Program program)
Description copied from interface: SaleOriginDao
Removes the instance of fr.ifremer.allegro.data.survey.sale.SaleOrigin having the given identifiers from the persistent store.

Specified by:
remove in interface SaleOriginDao
See Also:
SaleOriginDao.remove(fr.ifremer.allegro.data.survey.sale.Sale,fr.ifremer.allegro.administration.programStrategy.Program)

remove

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

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

getAllSaleOrigin

public java.util.Collection getAllSaleOrigin()
Specified by:
getAllSaleOrigin in interface SaleOriginDao
See Also:
SaleOriginDao.getAllSaleOrigin()

getAllSaleOrigin

public java.util.Collection getAllSaleOrigin(int transform)
Description copied from interface: SaleOriginDao

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

getAllSaleOrigin

public java.util.Collection getAllSaleOrigin(java.lang.String queryString)
Description copied from interface: SaleOriginDao

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

Specified by:
getAllSaleOrigin in interface SaleOriginDao
See Also:
SaleOriginDao.getAllSaleOrigin(java.lang.String)

getAllSaleOrigin

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

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

getAllSaleOrigin

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

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

getAllSaleOrigin

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

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

Specified by:
getAllSaleOrigin in interface SaleOriginDao
See Also:
SaleOriginDao.getAllSaleOrigin(int, String)

getAllSaleOrigin

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

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

getAllSaleOrigin

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

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

findSaleOriginByProgram

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

findSaleOriginByProgram

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

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

findSaleOriginByProgram

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

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

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

findSaleOriginByProgram

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

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

findSaleOriginByProgram

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

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

findSaleOriginByProgram

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

Does the same thing as SaleOriginDao.findSaleOriginByProgram(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 SaleOriginDao.findSaleOriginByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program program).

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

findSaleOriginByProgram

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

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

findSaleOriginByProgram

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

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

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(Sale sale)
Specified by:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(int transform,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(int, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(java.lang.String queryString,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale).

Specified by:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(java.lang.String, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(int pageNumber,
                                                 int pageSize,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(int, int, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(java.lang.String queryString,
                                                 int pageNumber,
                                                 int pageSize,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(String, fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(String, int, int, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(int transform,
                                                 java.lang.String queryString,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(int, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SaleOriginDao.findSaleOriginBySale(int, fr.ifremer.allegro.data.survey.sale.Sale sale).

Specified by:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(int, String, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(int transform,
                                                 int pageNumber,
                                                 int pageSize,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(int, fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(int, int, int, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginBySale

public java.util.Collection findSaleOriginBySale(int transform,
                                                 java.lang.String queryString,
                                                 int pageNumber,
                                                 int pageSize,
                                                 Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginBySale(int, String, fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginBySale in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginBySale(int, java.lang.String, int, int, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByIdentifiers

public SaleOrigin findSaleOriginByIdentifiers(Program program,
                                              Sale sale)
Specified by:
findSaleOriginByIdentifiers in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByIdentifiers(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByIdentifiers

public java.lang.Object findSaleOriginByIdentifiers(int transform,
                                                    Program program,
                                                    Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginByIdentifiers(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginByIdentifiers in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByIdentifiers(int, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByIdentifiers

public SaleOrigin findSaleOriginByIdentifiers(java.lang.String queryString,
                                              Program program,
                                              Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginByIdentifiers(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SaleOriginDao.findSaleOriginByIdentifiers(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale).

Specified by:
findSaleOriginByIdentifiers in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByIdentifiers(java.lang.String, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByIdentifiers

public java.lang.Object findSaleOriginByIdentifiers(int transform,
                                                    java.lang.String queryString,
                                                    Program program,
                                                    Sale sale)
Description copied from interface: SaleOriginDao

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

Specified by:
findSaleOriginByIdentifiers in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByIdentifiers(int, java.lang.String, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByNaturalId

public SaleOrigin findSaleOriginByNaturalId(Program program,
                                            Sale sale)
Specified by:
findSaleOriginByNaturalId in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByNaturalId

public java.lang.Object findSaleOriginByNaturalId(int transform,
                                                  Program program,
                                                  Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginByNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) 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:
findSaleOriginByNaturalId in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByNaturalId(int, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByNaturalId

public SaleOrigin findSaleOriginByNaturalId(java.lang.String queryString,
                                            Program program,
                                            Sale sale)
Description copied from interface: SaleOriginDao

Does the same thing as SaleOriginDao.findSaleOriginByNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SaleOriginDao.findSaleOriginByNaturalId(fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale).

Specified by:
findSaleOriginByNaturalId in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByNaturalId(java.lang.String, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

findSaleOriginByNaturalId

public java.lang.Object findSaleOriginByNaturalId(int transform,
                                                  java.lang.String queryString,
                                                  Program program,
                                                  Sale sale)
Description copied from interface: SaleOriginDao

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

Specified by:
findSaleOriginByNaturalId in interface SaleOriginDao
See Also:
SaleOriginDao.findSaleOriginByNaturalId(int, java.lang.String, fr.ifremer.allegro.administration.programStrategy.Program, fr.ifremer.allegro.data.survey.sale.Sale)

createFromClusterSaleOrigin

public SaleOrigin createFromClusterSaleOrigin(ClusterSaleOrigin clusterSaleOrigin)
Specified by:
createFromClusterSaleOrigin in interface SaleOriginDao
See Also:
SaleOriginDao.createFromClusterSaleOrigin(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSaleOrigin)

handleCreateFromClusterSaleOrigin

protected abstract SaleOrigin handleCreateFromClusterSaleOrigin(ClusterSaleOrigin clusterSaleOrigin)
                                                         throws java.lang.Exception
Performs the core logic for createFromClusterSaleOrigin(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSaleOrigin)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           SaleOrigin 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.data.survey.sale.SaleOriginDao, please note that the SaleOriginDao.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 SaleOriginDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in SaleOriginDao
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.data.survey.sale.SaleOrigin) 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.data.survey.sale.SaleOriginDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.data.survey.sale.SaleOrigin)

toEntity

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

toRemoteSaleOriginFullVOCollection

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

Specified by:
toRemoteSaleOriginFullVOCollection in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginFullVOCollection(java.util.Collection)

toRemoteSaleOriginFullVOArray

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

Specified by:
toRemoteSaleOriginFullVOArray in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginFullVOArray(java.util.Collection)

toRemoteSaleOriginFullVO

protected RemoteSaleOriginFullVO toRemoteSaleOriginFullVO(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 SaleOriginDaoImpl class if you intend to use reporting queries.

See Also:
SaleOriginDao.toRemoteSaleOriginFullVO(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

remoteSaleOriginFullVOToEntityCollection

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

Specified by:
remoteSaleOriginFullVOToEntityCollection in interface SaleOriginDao
See Also:
SaleOriginDao.remoteSaleOriginFullVOToEntityCollection(java.util.Collection)

toRemoteSaleOriginFullVO

public void toRemoteSaleOriginFullVO(SaleOrigin source,
                                     RemoteSaleOriginFullVO target)
Description copied from interface: SaleOriginDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSaleOriginFullVO(), 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:
toRemoteSaleOriginFullVO in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginFullVO(fr.ifremer.allegro.data.survey.sale.SaleOrigin, fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleOriginFullVO)

toRemoteSaleOriginFullVO

public RemoteSaleOriginFullVO toRemoteSaleOriginFullVO(SaleOrigin entity)
Description copied from interface: SaleOriginDao
Converts this DAO's entity to an object of type RemoteSaleOriginFullVO.

Specified by:
toRemoteSaleOriginFullVO in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginFullVO(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

remoteSaleOriginFullVOToEntity

public void remoteSaleOriginFullVOToEntity(RemoteSaleOriginFullVO source,
                                           SaleOrigin target,
                                           boolean copyIfNull)
Description copied from interface: SaleOriginDao
Copies the fields of RemoteSaleOriginFullVO to the specified entity.

Specified by:
remoteSaleOriginFullVOToEntity in interface SaleOriginDao
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.data.survey.sale.SaleOriginDao#remoteSaleOriginFullVOToEntity(fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleOriginFullVO, fr.ifremer.allegro.data.survey.sale.SaleOrigin)

toRemoteSaleOriginNaturalIdCollection

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

Specified by:
toRemoteSaleOriginNaturalIdCollection in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginNaturalIdCollection(java.util.Collection)

toRemoteSaleOriginNaturalIdArray

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

Specified by:
toRemoteSaleOriginNaturalIdArray in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginNaturalIdArray(java.util.Collection)

toRemoteSaleOriginNaturalId

protected RemoteSaleOriginNaturalId toRemoteSaleOriginNaturalId(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 SaleOriginDaoImpl class if you intend to use reporting queries.

See Also:
SaleOriginDao.toRemoteSaleOriginNaturalId(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

remoteSaleOriginNaturalIdToEntityCollection

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

Specified by:
remoteSaleOriginNaturalIdToEntityCollection in interface SaleOriginDao
See Also:
SaleOriginDao.remoteSaleOriginNaturalIdToEntityCollection(java.util.Collection)

toRemoteSaleOriginNaturalId

public void toRemoteSaleOriginNaturalId(SaleOrigin source,
                                        RemoteSaleOriginNaturalId target)
Description copied from interface: SaleOriginDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSaleOriginNaturalId(), 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:
toRemoteSaleOriginNaturalId in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginNaturalId(fr.ifremer.allegro.data.survey.sale.SaleOrigin, fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleOriginNaturalId)

toRemoteSaleOriginNaturalId

public RemoteSaleOriginNaturalId toRemoteSaleOriginNaturalId(SaleOrigin entity)
Description copied from interface: SaleOriginDao
Converts this DAO's entity to an object of type RemoteSaleOriginNaturalId.

Specified by:
toRemoteSaleOriginNaturalId in interface SaleOriginDao
See Also:
SaleOriginDao.toRemoteSaleOriginNaturalId(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

remoteSaleOriginNaturalIdToEntity

public void remoteSaleOriginNaturalIdToEntity(RemoteSaleOriginNaturalId source,
                                              SaleOrigin target,
                                              boolean copyIfNull)
Description copied from interface: SaleOriginDao
Copies the fields of RemoteSaleOriginNaturalId to the specified entity.

Specified by:
remoteSaleOriginNaturalIdToEntity in interface SaleOriginDao
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.data.survey.sale.SaleOriginDao#remoteSaleOriginNaturalIdToEntity(fr.ifremer.allegro.data.survey.sale.generic.vo.RemoteSaleOriginNaturalId, fr.ifremer.allegro.data.survey.sale.SaleOrigin)

toClusterSaleOriginCollection

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

Specified by:
toClusterSaleOriginCollection in interface SaleOriginDao
See Also:
SaleOriginDao.toClusterSaleOriginCollection(java.util.Collection)

toClusterSaleOriginArray

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

Specified by:
toClusterSaleOriginArray in interface SaleOriginDao
See Also:
SaleOriginDao.toClusterSaleOriginArray(java.util.Collection)

toClusterSaleOrigin

protected ClusterSaleOrigin toClusterSaleOrigin(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 SaleOriginDaoImpl class if you intend to use reporting queries.

See Also:
SaleOriginDao.toClusterSaleOrigin(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

clusterSaleOriginToEntityCollection

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

Specified by:
clusterSaleOriginToEntityCollection in interface SaleOriginDao
See Also:
SaleOriginDao.clusterSaleOriginToEntityCollection(java.util.Collection)

toClusterSaleOrigin

public void toClusterSaleOrigin(SaleOrigin source,
                                ClusterSaleOrigin target)
Description copied from interface: SaleOriginDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterSaleOrigin(), 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:
toClusterSaleOrigin in interface SaleOriginDao
See Also:
SaleOriginDao.toClusterSaleOrigin(fr.ifremer.allegro.data.survey.sale.SaleOrigin, fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSaleOrigin)

toClusterSaleOrigin

public ClusterSaleOrigin toClusterSaleOrigin(SaleOrigin entity)
Description copied from interface: SaleOriginDao
Converts this DAO's entity to an object of type ClusterSaleOrigin.

Specified by:
toClusterSaleOrigin in interface SaleOriginDao
See Also:
SaleOriginDao.toClusterSaleOrigin(fr.ifremer.allegro.data.survey.sale.SaleOrigin)

clusterSaleOriginToEntity

public void clusterSaleOriginToEntity(ClusterSaleOrigin source,
                                      SaleOrigin target,
                                      boolean copyIfNull)
Description copied from interface: SaleOriginDao
Copies the fields of ClusterSaleOrigin to the specified entity.

Specified by:
clusterSaleOriginToEntity in interface SaleOriginDao
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.data.survey.sale.SaleOriginDao#clusterSaleOriginToEntity(fr.ifremer.allegro.data.survey.sale.generic.cluster.ClusterSaleOrigin, fr.ifremer.allegro.data.survey.sale.SaleOrigin)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.