fr.ifremer.allegro.data.sale
Class ExpectedSaleDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.sale.ExpectedSaleDaoBase
All Implemented Interfaces:
ExpectedSaleDao
Direct Known Subclasses:
ExpectedSaleDaoImpl

public abstract class ExpectedSaleDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ExpectedSaleDao

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

See Also:
ExpectedSale

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.sale.ExpectedSaleDao
TRANSFORM_CLUSTEREXPECTEDSALE, TRANSFORM_NONE, TRANSFORM_REMOTEEXPECTEDSALEFULLVO, TRANSFORM_REMOTEEXPECTEDSALENATURALID
 
Constructor Summary
ExpectedSaleDaoBase()
           
 
Method Summary
 void clusterExpectedSaleToEntity(ClusterExpectedSale source, ExpectedSale target, boolean copyIfNull)
          Copies the fields of ClusterExpectedSale to the specified entity.
 void clusterExpectedSaleToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterExpectedSale to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.data.sale.ExpectedSale and adds from the passed in entities collection
 ExpectedSale create(java.util.Collection saleMeasurements, ObservedLanding observedLanding, ObservedFishingTrip observedFishingTrip, Location saleLocation, SaleType saleType, java.util.Collection saleProduces)
           Creates a new fr.ifremer.allegro.data.sale.ExpectedSale instance from all attributes and properties and adds it to the persistent store.
 ExpectedSale create(ExpectedSale expectedSale)
          Creates an instance of fr.ifremer.allegro.data.sale.ExpectedSale and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ExpectedSaleDao.create(fr.ifremer.allegro.data.sale.ExpectedSale) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Collection saleMeasurements, ObservedLanding observedLanding, ObservedFishingTrip observedFishingTrip, Location saleLocation, SaleType saleType, java.util.Collection saleProduces)
           Does the same thing as ExpectedSaleDao.create(java.util.Collection,fr.ifremer.allegro.data.survey.landing.ObservedLanding,fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType,java.util.Collection) with an additional flag called transform.
 java.lang.Object create(int transform, ExpectedSale expectedSale)
           Does the same thing as ExpectedSaleDao.create(fr.ifremer.allegro.data.sale.ExpectedSale) with an additional flag called transform.
 java.lang.Object create(int transform, Location saleLocation, SaleType saleType)
           Does the same thing as ExpectedSaleDao.create(fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType) with an additional flag called transform.
 ExpectedSale create(Location saleLocation, SaleType saleType)
           Creates a new fr.ifremer.allegro.data.sale.ExpectedSale instance from only required properties (attributes and association ends) and adds it to the persistent store.
 ExpectedSale createFromClusterExpectedSale(ClusterExpectedSale clusterExpectedSale)
           
 ExpectedSale findExpectedSaleById(java.lang.Integer id)
           
 java.lang.Object findExpectedSaleById(int transform, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.findExpectedSaleById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findExpectedSaleById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.findExpectedSaleById(int, java.lang.Integer) with an additional argument called queryString.
 ExpectedSale findExpectedSaleById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.findExpectedSaleById(java.lang.Integer) with an additional argument called queryString.
 ExpectedSale findExpectedSaleByNaturalId(java.lang.Integer id)
           
 java.lang.Object findExpectedSaleByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findExpectedSaleByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 ExpectedSale findExpectedSaleByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findExpectedSaleByObservedFishingTrip(int transform, int pageNumber, int pageSize, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedFishingTrip(int pageNumber, int pageSize, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedFishingTrip(int transform, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional flag called transform.
 java.util.Collection findExpectedSaleByObservedFishingTrip(int transform, java.lang.String queryString, int pageNumber, int pageSize, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, String, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedFishingTrip(int transform, java.lang.String queryString, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional argument called queryString.
 java.util.Collection findExpectedSaleByObservedFishingTrip(ObservedFishingTrip observedFishingTrip)
           
 java.util.Collection findExpectedSaleByObservedFishingTrip(java.lang.String queryString, int pageNumber, int pageSize, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(String, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedFishingTrip(java.lang.String queryString, ObservedFishingTrip observedFishingTrip)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional argument called queryString.
 java.util.Collection findExpectedSaleByObservedLanding(int transform, int pageNumber, int pageSize, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(int, fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedLanding(int pageNumber, int pageSize, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedLanding(int transform, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional flag called transform.
 java.util.Collection findExpectedSaleByObservedLanding(int transform, java.lang.String queryString, int pageNumber, int pageSize, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(int, String, fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedLanding(int transform, java.lang.String queryString, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(int, fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional argument called queryString.
 java.util.Collection findExpectedSaleByObservedLanding(ObservedLanding observedLanding)
           
 java.util.Collection findExpectedSaleByObservedLanding(java.lang.String queryString, int pageNumber, int pageSize, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(String, fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleByObservedLanding(java.lang.String queryString, ObservedLanding observedLanding)
           Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional argument called queryString.
 java.util.Collection findExpectedSaleBySaleLocation(int transform, int pageNumber, int pageSize, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleLocation(int pageNumber, int pageSize, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleLocation(int transform, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findExpectedSaleBySaleLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleLocation(int transform, java.lang.String queryString, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findExpectedSaleBySaleLocation(Location saleLocation)
           
 java.util.Collection findExpectedSaleBySaleLocation(java.lang.String queryString, int pageNumber, int pageSize, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleLocation(java.lang.String queryString, Location saleLocation)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findExpectedSaleBySaleType(int transform, int pageNumber, int pageSize, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(int, fr.ifremer.allegro.referential.SaleType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleType(int pageNumber, int pageSize, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleType(int transform, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType) with an additional flag called transform.
 java.util.Collection findExpectedSaleBySaleType(int transform, java.lang.String queryString, int pageNumber, int pageSize, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(int, String, fr.ifremer.allegro.referential.SaleType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleType(int transform, java.lang.String queryString, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(int, fr.ifremer.allegro.referential.SaleType) with an additional argument called queryString.
 java.util.Collection findExpectedSaleBySaleType(SaleType saleType)
           
 java.util.Collection findExpectedSaleBySaleType(java.lang.String queryString, int pageNumber, int pageSize, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(String, fr.ifremer.allegro.referential.SaleType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findExpectedSaleBySaleType(java.lang.String queryString, SaleType saleType)
           Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType) with an additional argument called queryString.
 ClusterExpectedSale[] getAllClusterExpectedSale(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllExpectedSale()
           
 java.util.Collection getAllExpectedSale(int transform)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale() with an additional flag called transform.
 java.util.Collection getAllExpectedSale(int pageNumber, int pageSize)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllExpectedSale(int transform, int pageNumber, int pageSize)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllExpectedSale(int transform, java.lang.String queryString)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale(int) with an additional argument called queryString.
 java.util.Collection getAllExpectedSale(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllExpectedSale(java.lang.String queryString)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale() with an additional argument called queryString.
 java.util.Collection getAllExpectedSale(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ExpectedSaleDao.getAllExpectedSale(String) with an additional two arguments called pageNumber and pageSize.
protected  LocationDao getLocationDao()
          Gets the reference to locationDao.
protected  ObservedFishingTripDao getObservedFishingTripDao()
          Gets the reference to observedFishingTripDao.
protected  ObservedLandingDao getObservedLandingDao()
          Gets the reference to observedLandingDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  SaleMeasurementDao getSaleMeasurementDao()
          Gets the reference to saleMeasurementDao.
protected  SaleProduceDao getSaleProduceDao()
          Gets the reference to saleProduceDao.
protected  SaleTypeDao getSaleTypeDao()
          Gets the reference to saleTypeDao.
protected abstract  ExpectedSale handleCreateFromClusterExpectedSale(ClusterExpectedSale clusterExpectedSale)
          Performs the core logic for createFromClusterExpectedSale(fr.ifremer.allegro.data.sale.generic.cluster.ClusterExpectedSale)
protected abstract  ClusterExpectedSale[] handleGetAllClusterExpectedSale(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterExpectedSale(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 ExpectedSale load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.data.sale.ExpectedSale from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as ExpectedSaleDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type ExpectedSale.
 java.util.Collection loadAll(int transform)
           Does the same thing as ExpectedSaleDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ExpectedSaleDao.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 ExpectedSaleDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteExpectedSaleFullVOToEntity(RemoteExpectedSaleFullVO source, ExpectedSale target, boolean copyIfNull)
          Copies the fields of RemoteExpectedSaleFullVO to the specified entity.
 void remoteExpectedSaleFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteExpectedSaleFullVO to this DAO's entity.
 void remoteExpectedSaleNaturalIdToEntity(RemoteExpectedSaleNaturalId source, ExpectedSale target, boolean copyIfNull)
          Copies the fields of RemoteExpectedSaleNaturalId to the specified entity.
 void remoteExpectedSaleNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteExpectedSaleNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(ExpectedSale expectedSale)
          Removes the instance of fr.ifremer.allegro.data.sale.ExpectedSale from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.data.sale.ExpectedSale 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 ExpectedSaleDao.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 setLocationDao(LocationDao locationDao)
          Sets the reference to locationDao.
 void setObservedFishingTripDao(ObservedFishingTripDao observedFishingTripDao)
          Sets the reference to observedFishingTripDao.
 void setObservedLandingDao(ObservedLandingDao observedLandingDao)
          Sets the reference to observedLandingDao.
 void setSaleMeasurementDao(SaleMeasurementDao saleMeasurementDao)
          Sets the reference to saleMeasurementDao.
 void setSaleProduceDao(SaleProduceDao saleProduceDao)
          Sets the reference to saleProduceDao.
 void setSaleTypeDao(SaleTypeDao saleTypeDao)
          Sets the reference to saleTypeDao.
 ClusterExpectedSale toClusterExpectedSale(ExpectedSale entity)
          Converts this DAO's entity to an object of type ClusterExpectedSale.
 void toClusterExpectedSale(ExpectedSale source, ClusterExpectedSale target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterExpectedSale toClusterExpectedSale(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterExpectedSale[] toClusterExpectedSaleArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterExpectedSale.
 void toClusterExpectedSaleCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterExpectedSale.
protected  ExpectedSale toEntity(java.lang.Object[] row)
           
 RemoteExpectedSaleFullVO toRemoteExpectedSaleFullVO(ExpectedSale entity)
          Converts this DAO's entity to an object of type RemoteExpectedSaleFullVO.
 void toRemoteExpectedSaleFullVO(ExpectedSale source, RemoteExpectedSaleFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteExpectedSaleFullVO toRemoteExpectedSaleFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteExpectedSaleFullVO[] toRemoteExpectedSaleFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteExpectedSaleFullVO.
 void toRemoteExpectedSaleFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteExpectedSaleFullVO.
 RemoteExpectedSaleNaturalId toRemoteExpectedSaleNaturalId(ExpectedSale entity)
          Converts this DAO's entity to an object of type RemoteExpectedSaleNaturalId.
 void toRemoteExpectedSaleNaturalId(ExpectedSale source, RemoteExpectedSaleNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteExpectedSaleNaturalId toRemoteExpectedSaleNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteExpectedSaleNaturalId[] toRemoteExpectedSaleNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteExpectedSaleNaturalId.
 void toRemoteExpectedSaleNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteExpectedSaleNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.data.sale.ExpectedSale) method.
protected  java.lang.Object transformEntity(int transform, ExpectedSale 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.sale.ExpectedSaleDao, please note that the ExpectedSaleDao.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(ExpectedSale expectedSale)
          Updates the expectedSale 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.sale.ExpectedSaleDao
clusterExpectedSaleToEntity, remoteExpectedSaleFullVOToEntity, remoteExpectedSaleNaturalIdToEntity
 

Constructor Detail

ExpectedSaleDaoBase

public ExpectedSaleDaoBase()
Method Detail

setSaleTypeDao

public void setSaleTypeDao(SaleTypeDao saleTypeDao)
Sets the reference to saleTypeDao.


getSaleTypeDao

protected SaleTypeDao getSaleTypeDao()
Gets the reference to saleTypeDao.


setLocationDao

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


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to locationDao.


setObservedFishingTripDao

public void setObservedFishingTripDao(ObservedFishingTripDao observedFishingTripDao)
Sets the reference to observedFishingTripDao.


getObservedFishingTripDao

protected ObservedFishingTripDao getObservedFishingTripDao()
Gets the reference to observedFishingTripDao.


setObservedLandingDao

public void setObservedLandingDao(ObservedLandingDao observedLandingDao)
Sets the reference to observedLandingDao.


getObservedLandingDao

protected ObservedLandingDao getObservedLandingDao()
Gets the reference to observedLandingDao.


setSaleProduceDao

public void setSaleProduceDao(SaleProduceDao saleProduceDao)
Sets the reference to saleProduceDao.


getSaleProduceDao

protected SaleProduceDao getSaleProduceDao()
Gets the reference to saleProduceDao.


setSaleMeasurementDao

public void setSaleMeasurementDao(SaleMeasurementDao saleMeasurementDao)
Sets the reference to saleMeasurementDao.


getSaleMeasurementDao

protected SaleMeasurementDao getSaleMeasurementDao()
Gets the reference to saleMeasurementDao.


load

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

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

load

public ExpectedSale load(java.lang.Integer id)
Description copied from interface: ExpectedSaleDao
Loads an instance of fr.ifremer.allegro.data.sale.ExpectedSale from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public ExpectedSale create(ExpectedSale expectedSale)
Description copied from interface: ExpectedSaleDao
Creates an instance of fr.ifremer.allegro.data.sale.ExpectedSale and adds it to the persistent store.

Specified by:
create in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.create(fr.ifremer.allegro.data.sale.ExpectedSale)

create

public java.lang.Object create(int transform,
                               ExpectedSale expectedSale)
Description copied from interface: ExpectedSaleDao

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

create

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

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

create

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

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

create

public ExpectedSale create(java.util.Collection saleMeasurements,
                           ObservedLanding observedLanding,
                           ObservedFishingTrip observedFishingTrip,
                           Location saleLocation,
                           SaleType saleType,
                           java.util.Collection saleProduces)
Description copied from interface: ExpectedSaleDao

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

Specified by:
create in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.create(java.util.Collection,fr.ifremer.allegro.data.survey.landing.ObservedLanding,fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.util.Collection saleMeasurements,
                               ObservedLanding observedLanding,
                               ObservedFishingTrip observedFishingTrip,
                               Location saleLocation,
                               SaleType saleType,
                               java.util.Collection saleProduces)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.create(java.util.Collection,fr.ifremer.allegro.data.survey.landing.ObservedLanding,fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType,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 ExpectedSaleDao
See Also:
ExpectedSaleDao.create(int, java.util.Collection,fr.ifremer.allegro.data.survey.landing.ObservedLanding,fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType,java.util.Collection)

create

public ExpectedSale create(Location saleLocation,
                           SaleType saleType)
Description copied from interface: ExpectedSaleDao

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

Specified by:
create in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.create(fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType)

create

public java.lang.Object create(int transform,
                               Location saleLocation,
                               SaleType saleType)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.create(fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType) 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 ExpectedSaleDao
See Also:
ExpectedSaleDao.create(int, fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.SaleType)

update

public void update(ExpectedSale expectedSale)
Description copied from interface: ExpectedSaleDao
Updates the expectedSale instance in the persistent store.

Specified by:
update in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.update(fr.ifremer.allegro.data.sale.ExpectedSale)

update

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

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

remove

public void remove(ExpectedSale expectedSale)
Description copied from interface: ExpectedSaleDao
Removes the instance of fr.ifremer.allegro.data.sale.ExpectedSale from the persistent store.

Specified by:
remove in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.remove(fr.ifremer.allegro.data.sale.ExpectedSale)

remove

public void remove(java.lang.Integer id)
Description copied from interface: ExpectedSaleDao
Removes the instance of fr.ifremer.allegro.data.sale.ExpectedSale having the given identifier from the persistent store.

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

remove

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

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

getAllExpectedSale

public java.util.Collection getAllExpectedSale()
Specified by:
getAllExpectedSale in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.getAllExpectedSale()

getAllExpectedSale

public java.util.Collection getAllExpectedSale(int transform)
Description copied from interface: ExpectedSaleDao

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

getAllExpectedSale

public java.util.Collection getAllExpectedSale(java.lang.String queryString)
Description copied from interface: ExpectedSaleDao

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

Specified by:
getAllExpectedSale in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.getAllExpectedSale(java.lang.String)

getAllExpectedSale

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

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

getAllExpectedSale

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

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

getAllExpectedSale

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

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

Specified by:
getAllExpectedSale in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.getAllExpectedSale(int, String)

getAllExpectedSale

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

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

getAllExpectedSale

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

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

findExpectedSaleById

public ExpectedSale findExpectedSaleById(java.lang.Integer id)
Specified by:
findExpectedSaleById in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleById(java.lang.Integer)

findExpectedSaleById

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

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

findExpectedSaleById

public ExpectedSale findExpectedSaleById(java.lang.String queryString,
                                         java.lang.Integer id)
Description copied from interface: ExpectedSaleDao

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

Specified by:
findExpectedSaleById in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleById(java.lang.String, java.lang.Integer)

findExpectedSaleById

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

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

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

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(SaleType saleType)
Specified by:
findExpectedSaleBySaleType in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType)

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(int transform,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType) 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:
findExpectedSaleBySaleType in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleBySaleType(int, fr.ifremer.allegro.referential.SaleType)

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(java.lang.String queryString,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType).

Specified by:
findExpectedSaleBySaleType in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleBySaleType(java.lang.String, fr.ifremer.allegro.referential.SaleType)

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(int pageNumber,
                                                       int pageSize,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(fr.ifremer.allegro.referential.SaleType) 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:
findExpectedSaleBySaleType in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleBySaleType(int, int, fr.ifremer.allegro.referential.SaleType)

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(java.lang.String queryString,
                                                       int pageNumber,
                                                       int pageSize,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(int transform,
                                                       java.lang.String queryString,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(int, fr.ifremer.allegro.referential.SaleType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ExpectedSaleDao.findExpectedSaleBySaleType(int, fr.ifremer.allegro.referential.SaleType saleType).

Specified by:
findExpectedSaleBySaleType in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleBySaleType(int, String, fr.ifremer.allegro.referential.SaleType)

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(int transform,
                                                       int pageNumber,
                                                       int pageSize,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleType(int, fr.ifremer.allegro.referential.SaleType) 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:
findExpectedSaleBySaleType in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleBySaleType(int, int, int, fr.ifremer.allegro.referential.SaleType)

findExpectedSaleBySaleType

public java.util.Collection findExpectedSaleBySaleType(int transform,
                                                       java.lang.String queryString,
                                                       int pageNumber,
                                                       int pageSize,
                                                       SaleType saleType)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleBySaleLocation

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(int transform,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(java.lang.String queryString,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

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

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(int pageNumber,
                                                           int pageSize,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(java.lang.String queryString,
                                                           int pageNumber,
                                                           int pageSize,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(int transform,
                                                           java.lang.String queryString,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleBySaleLocation(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 ExpectedSaleDao.findExpectedSaleBySaleLocation(int, fr.ifremer.allegro.referential.location.Location saleLocation).

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(int transform,
                                                           int pageNumber,
                                                           int pageSize,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleBySaleLocation

public java.util.Collection findExpectedSaleBySaleLocation(int transform,
                                                           java.lang.String queryString,
                                                           int pageNumber,
                                                           int pageSize,
                                                           Location saleLocation)
Description copied from interface: ExpectedSaleDao

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

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(ObservedFishingTrip observedFishingTrip)
Specified by:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(int transform,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) 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:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(java.lang.String queryString,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip).

Specified by:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(java.lang.String, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(int pageNumber,
                                                                  int pageSize,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) 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:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(java.lang.String queryString,
                                                                  int pageNumber,
                                                                  int pageSize,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(String, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) 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:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(String, int, int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(int transform,
                                                                  java.lang.String queryString,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip observedFishingTrip).

Specified by:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, String, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(int transform,
                                                                  int pageNumber,
                                                                  int pageSize,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) 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:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, int, int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedFishingTrip

public java.util.Collection findExpectedSaleByObservedFishingTrip(int transform,
                                                                  java.lang.String queryString,
                                                                  int pageNumber,
                                                                  int pageSize,
                                                                  ObservedFishingTrip observedFishingTrip)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, String, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip) 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:
findExpectedSaleByObservedFishingTrip in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedFishingTrip(int, java.lang.String, int, int, fr.ifremer.allegro.data.survey.fishingTrip.ObservedFishingTrip)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(ObservedLanding observedLanding)
Specified by:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(int transform,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding) 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:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(int, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(java.lang.String queryString,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding).

Specified by:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(java.lang.String, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(int pageNumber,
                                                              int pageSize,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(fr.ifremer.allegro.data.survey.landing.ObservedLanding) 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:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(int, int, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(String, fr.ifremer.allegro.data.survey.landing.ObservedLanding) 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:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(String, int, int, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(int transform,
                                                              java.lang.String queryString,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(int, fr.ifremer.allegro.data.survey.landing.ObservedLanding) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ExpectedSaleDao.findExpectedSaleByObservedLanding(int, fr.ifremer.allegro.data.survey.landing.ObservedLanding observedLanding).

Specified by:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(int, String, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(int transform,
                                                              int pageNumber,
                                                              int pageSize,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(int, fr.ifremer.allegro.data.survey.landing.ObservedLanding) 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:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(int, int, int, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByObservedLanding

public java.util.Collection findExpectedSaleByObservedLanding(int transform,
                                                              java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              ObservedLanding observedLanding)
Description copied from interface: ExpectedSaleDao

Does the same thing as ExpectedSaleDao.findExpectedSaleByObservedLanding(int, String, fr.ifremer.allegro.data.survey.landing.ObservedLanding) 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:
findExpectedSaleByObservedLanding in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByObservedLanding(int, java.lang.String, int, int, fr.ifremer.allegro.data.survey.landing.ObservedLanding)

findExpectedSaleByNaturalId

public ExpectedSale findExpectedSaleByNaturalId(java.lang.Integer id)
Specified by:
findExpectedSaleByNaturalId in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByNaturalId(java.lang.Integer)

findExpectedSaleByNaturalId

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

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

findExpectedSaleByNaturalId

public ExpectedSale findExpectedSaleByNaturalId(java.lang.String queryString,
                                                java.lang.Integer id)
Description copied from interface: ExpectedSaleDao

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

Specified by:
findExpectedSaleByNaturalId in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.findExpectedSaleByNaturalId(java.lang.String, java.lang.Integer)

findExpectedSaleByNaturalId

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

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

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

createFromClusterExpectedSale

public ExpectedSale createFromClusterExpectedSale(ClusterExpectedSale clusterExpectedSale)
Specified by:
createFromClusterExpectedSale in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.createFromClusterExpectedSale(fr.ifremer.allegro.data.sale.generic.cluster.ClusterExpectedSale)

handleCreateFromClusterExpectedSale

protected abstract ExpectedSale handleCreateFromClusterExpectedSale(ClusterExpectedSale clusterExpectedSale)
                                                             throws java.lang.Exception
Performs the core logic for createFromClusterExpectedSale(fr.ifremer.allegro.data.sale.generic.cluster.ClusterExpectedSale)

Throws:
java.lang.Exception

getAllClusterExpectedSale

public ClusterExpectedSale[] getAllClusterExpectedSale(java.lang.Integer userId,
                                                       java.lang.Integer[] registrationLocationIds,
                                                       java.lang.Integer pageNumber,
                                                       java.lang.Integer pageSize)
Specified by:
getAllClusterExpectedSale in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.getAllClusterExpectedSale(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterExpectedSale

protected abstract ClusterExpectedSale[] handleGetAllClusterExpectedSale(java.lang.Integer userId,
                                                                         java.lang.Integer[] registrationLocationIds,
                                                                         java.lang.Integer pageNumber,
                                                                         java.lang.Integer pageSize)
                                                                  throws java.lang.Exception
Performs the core logic for getAllClusterExpectedSale(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteExpectedSaleFullVOCollection

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

Specified by:
toRemoteExpectedSaleFullVOCollection in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toRemoteExpectedSaleFullVOCollection(java.util.Collection)

toRemoteExpectedSaleFullVOArray

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

Specified by:
toRemoteExpectedSaleFullVOArray in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toRemoteExpectedSaleFullVOArray(java.util.Collection)

toRemoteExpectedSaleFullVO

protected RemoteExpectedSaleFullVO toRemoteExpectedSaleFullVO(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 ExpectedSaleDaoImpl class if you intend to use reporting queries.

See Also:
ExpectedSaleDao.toRemoteExpectedSaleFullVO(fr.ifremer.allegro.data.sale.ExpectedSale)

remoteExpectedSaleFullVOToEntityCollection

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

Specified by:
remoteExpectedSaleFullVOToEntityCollection in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.remoteExpectedSaleFullVOToEntityCollection(java.util.Collection)

toRemoteExpectedSaleFullVO

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

toRemoteExpectedSaleFullVO

public RemoteExpectedSaleFullVO toRemoteExpectedSaleFullVO(ExpectedSale entity)
Description copied from interface: ExpectedSaleDao
Converts this DAO's entity to an object of type RemoteExpectedSaleFullVO.

Specified by:
toRemoteExpectedSaleFullVO in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toRemoteExpectedSaleFullVO(fr.ifremer.allegro.data.sale.ExpectedSale)

remoteExpectedSaleFullVOToEntity

public void remoteExpectedSaleFullVOToEntity(RemoteExpectedSaleFullVO source,
                                             ExpectedSale target,
                                             boolean copyIfNull)
Description copied from interface: ExpectedSaleDao
Copies the fields of RemoteExpectedSaleFullVO to the specified entity.

Specified by:
remoteExpectedSaleFullVOToEntity in interface ExpectedSaleDao
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.sale.ExpectedSaleDao#remoteExpectedSaleFullVOToEntity(fr.ifremer.allegro.data.sale.generic.vo.RemoteExpectedSaleFullVO, fr.ifremer.allegro.data.sale.ExpectedSale)

toRemoteExpectedSaleNaturalIdCollection

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

Specified by:
toRemoteExpectedSaleNaturalIdCollection in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toRemoteExpectedSaleNaturalIdCollection(java.util.Collection)

toRemoteExpectedSaleNaturalIdArray

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

Specified by:
toRemoteExpectedSaleNaturalIdArray in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toRemoteExpectedSaleNaturalIdArray(java.util.Collection)

toRemoteExpectedSaleNaturalId

protected RemoteExpectedSaleNaturalId toRemoteExpectedSaleNaturalId(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 ExpectedSaleDaoImpl class if you intend to use reporting queries.

See Also:
ExpectedSaleDao.toRemoteExpectedSaleNaturalId(fr.ifremer.allegro.data.sale.ExpectedSale)

remoteExpectedSaleNaturalIdToEntityCollection

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

Specified by:
remoteExpectedSaleNaturalIdToEntityCollection in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.remoteExpectedSaleNaturalIdToEntityCollection(java.util.Collection)

toRemoteExpectedSaleNaturalId

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

toRemoteExpectedSaleNaturalId

public RemoteExpectedSaleNaturalId toRemoteExpectedSaleNaturalId(ExpectedSale entity)
Description copied from interface: ExpectedSaleDao
Converts this DAO's entity to an object of type RemoteExpectedSaleNaturalId.

Specified by:
toRemoteExpectedSaleNaturalId in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toRemoteExpectedSaleNaturalId(fr.ifremer.allegro.data.sale.ExpectedSale)

remoteExpectedSaleNaturalIdToEntity

public void remoteExpectedSaleNaturalIdToEntity(RemoteExpectedSaleNaturalId source,
                                                ExpectedSale target,
                                                boolean copyIfNull)
Description copied from interface: ExpectedSaleDao
Copies the fields of RemoteExpectedSaleNaturalId to the specified entity.

Specified by:
remoteExpectedSaleNaturalIdToEntity in interface ExpectedSaleDao
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.sale.ExpectedSaleDao#remoteExpectedSaleNaturalIdToEntity(fr.ifremer.allegro.data.sale.generic.vo.RemoteExpectedSaleNaturalId, fr.ifremer.allegro.data.sale.ExpectedSale)

toClusterExpectedSaleCollection

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

Specified by:
toClusterExpectedSaleCollection in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toClusterExpectedSaleCollection(java.util.Collection)

toClusterExpectedSaleArray

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

Specified by:
toClusterExpectedSaleArray in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toClusterExpectedSaleArray(java.util.Collection)

toClusterExpectedSale

protected ClusterExpectedSale toClusterExpectedSale(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 ExpectedSaleDaoImpl class if you intend to use reporting queries.

See Also:
ExpectedSaleDao.toClusterExpectedSale(fr.ifremer.allegro.data.sale.ExpectedSale)

clusterExpectedSaleToEntityCollection

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

Specified by:
clusterExpectedSaleToEntityCollection in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.clusterExpectedSaleToEntityCollection(java.util.Collection)

toClusterExpectedSale

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

toClusterExpectedSale

public ClusterExpectedSale toClusterExpectedSale(ExpectedSale entity)
Description copied from interface: ExpectedSaleDao
Converts this DAO's entity to an object of type ClusterExpectedSale.

Specified by:
toClusterExpectedSale in interface ExpectedSaleDao
See Also:
ExpectedSaleDao.toClusterExpectedSale(fr.ifremer.allegro.data.sale.ExpectedSale)

clusterExpectedSaleToEntity

public void clusterExpectedSaleToEntity(ClusterExpectedSale source,
                                        ExpectedSale target,
                                        boolean copyIfNull)
Description copied from interface: ExpectedSaleDao
Copies the fields of ClusterExpectedSale to the specified entity.

Specified by:
clusterExpectedSaleToEntity in interface ExpectedSaleDao
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.sale.ExpectedSaleDao#clusterExpectedSaleToEntity(fr.ifremer.allegro.data.sale.generic.cluster.ClusterExpectedSale, fr.ifremer.allegro.data.sale.ExpectedSale)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.