fr.ifremer.allegro.referential.regulation
Class RightToProduceDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.regulation.RightToProduceDaoBase
All Implemented Interfaces:
RightToProduceDao
Direct Known Subclasses:
RightToProduceDaoImpl

public abstract class RightToProduceDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements RightToProduceDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.referential.regulation.RightToProduce.

See Also:
RightToProduce

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.regulation.RightToProduceDao
TRANSFORM_CLUSTERRIGHTTOPRODUCE, TRANSFORM_NONE, TRANSFORM_REMOTERIGHTTOPRODUCEFULLVO, TRANSFORM_REMOTERIGHTTOPRODUCENATURALID
 
Constructor Summary
RightToProduceDaoBase()
           
 
Method Summary
 void clusterRightToProduceToEntity(ClusterRightToProduce source, RightToProduce target, boolean copyIfNull)
          Copies the fields of ClusterRightToProduce to the specified entity.
 void clusterRightToProduceToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterRightToProduce to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.regulation.RightToProduce and adds from the passed in entities collection
 RightToProduce create(java.util.Date startDate)
           Creates a new fr.ifremer.allegro.referential.regulation.RightToProduce instance from only required properties (attributes and association ends) and adds it to the persistent store.
 RightToProduce create(java.util.Date startDate, java.util.Date endDate, java.lang.String reference, java.sql.Timestamp updateDate, Corpus corpus, java.util.Collection fisheries, java.util.Collection vesselOwners, java.util.Collection vessels)
           Creates a new fr.ifremer.allegro.referential.regulation.RightToProduce instance from all attributes and properties and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as RightToProduceDao.create(fr.ifremer.allegro.referential.regulation.RightToProduce) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date startDate)
           Does the same thing as RightToProduceDao.create(java.util.Date) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date startDate, java.util.Date endDate, java.lang.String reference, java.sql.Timestamp updateDate, Corpus corpus, java.util.Collection fisheries, java.util.Collection vesselOwners, java.util.Collection vessels)
           Does the same thing as RightToProduceDao.create(java.util.Date,java.util.Date,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.regulation.Corpus,java.util.Collection,java.util.Collection,java.util.Collection) with an additional flag called transform.
 java.lang.Object create(int transform, RightToProduce rightToProduce)
           Does the same thing as RightToProduceDao.create(fr.ifremer.allegro.referential.regulation.RightToProduce) with an additional flag called transform.
 RightToProduce create(RightToProduce rightToProduce)
          Creates an instance of fr.ifremer.allegro.referential.regulation.RightToProduce and adds it to the persistent store.
 RightToProduce createFromClusterRightToProduce(ClusterRightToProduce clusterRightToProduce)
           
 RightToProduce findRightToProduceByCorpus(Corpus corpus)
           
 java.lang.Object findRightToProduceByCorpus(int transform, Corpus corpus)
           Does the same thing as RightToProduceDao.findRightToProduceByCorpus(fr.ifremer.allegro.referential.regulation.Corpus) with an additional flag called transform.
 java.lang.Object findRightToProduceByCorpus(int transform, java.lang.String queryString, Corpus corpus)
           Does the same thing as RightToProduceDao.findRightToProduceByCorpus(int, fr.ifremer.allegro.referential.regulation.Corpus) with an additional argument called queryString.
 RightToProduce findRightToProduceByCorpus(java.lang.String queryString, Corpus corpus)
           Does the same thing as RightToProduceDao.findRightToProduceByCorpus(fr.ifremer.allegro.referential.regulation.Corpus) with an additional argument called queryString.
 RightToProduce findRightToProduceById(java.lang.Integer id)
           
 java.lang.Object findRightToProduceById(int transform, java.lang.Integer id)
           Does the same thing as RightToProduceDao.findRightToProduceById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findRightToProduceById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as RightToProduceDao.findRightToProduceById(int, java.lang.Integer) with an additional argument called queryString.
 RightToProduce findRightToProduceById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as RightToProduceDao.findRightToProduceById(java.lang.Integer) with an additional argument called queryString.
 RightToProduce findRightToProduceByNaturalId(java.lang.Integer id)
           
 java.lang.Object findRightToProduceByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as RightToProduceDao.findRightToProduceByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findRightToProduceByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as RightToProduceDao.findRightToProduceByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 RightToProduce findRightToProduceByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as RightToProduceDao.findRightToProduceByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterRightToProduce[] getAllClusterRightToProduceSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllRightToProduce()
           
 java.util.Collection getAllRightToProduce(int transform)
           Does the same thing as RightToProduceDao.getAllRightToProduce() with an additional flag called transform.
 java.util.Collection getAllRightToProduce(int pageNumber, int pageSize)
           Does the same thing as RightToProduceDao.getAllRightToProduce() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduce(int transform, int pageNumber, int pageSize)
           Does the same thing as RightToProduceDao.getAllRightToProduce(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduce(int transform, java.lang.String queryString)
           Does the same thing as RightToProduceDao.getAllRightToProduce(int) with an additional argument called queryString.
 java.util.Collection getAllRightToProduce(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as RightToProduceDao.getAllRightToProduce(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduce(java.lang.String queryString)
           Does the same thing as RightToProduceDao.getAllRightToProduce() with an additional argument called queryString.
 java.util.Collection getAllRightToProduce(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as RightToProduceDao.getAllRightToProduce(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduceSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduceSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduceSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduceSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllRightToProduceSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllRightToProduceSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllRightToProduceSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as RightToProduceDao.getAllRightToProduceSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllRightToProduceSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  CorpusDao getCorpusDao()
          Gets the reference to corpusDao.
protected  FisheryDao getFisheryDao()
          Gets the reference to fisheryDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  VesselDao getVesselDao()
          Gets the reference to vesselDao.
protected  VesselOwnerDao getVesselOwnerDao()
          Gets the reference to vesselOwnerDao.
protected abstract  RightToProduce handleCreateFromClusterRightToProduce(ClusterRightToProduce clusterRightToProduce)
          Performs the core logic for createFromClusterRightToProduce(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterRightToProduce)
protected abstract  ClusterRightToProduce[] handleGetAllClusterRightToProduceSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterRightToProduceSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 RightToProduce load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.regulation.RightToProduce from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as RightToProduceDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type RightToProduce.
 java.util.Collection loadAll(int transform)
           Does the same thing as RightToProduceDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as RightToProduceDao.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 RightToProduceDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteRightToProduceFullVOToEntity(RemoteRightToProduceFullVO source, RightToProduce target, boolean copyIfNull)
          Copies the fields of RemoteRightToProduceFullVO to the specified entity.
 void remoteRightToProduceFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteRightToProduceFullVO to this DAO's entity.
 void remoteRightToProduceNaturalIdToEntity(RemoteRightToProduceNaturalId source, RightToProduce target, boolean copyIfNull)
          Copies the fields of RemoteRightToProduceNaturalId to the specified entity.
 void remoteRightToProduceNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteRightToProduceNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.regulation.RightToProduce having the given identifier from the persistent store.
 void remove(RightToProduce rightToProduce)
          Removes the instance of fr.ifremer.allegro.referential.regulation.RightToProduce 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 RightToProduceDao.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 setCorpusDao(CorpusDao corpusDao)
          Sets the reference to corpusDao.
 void setFisheryDao(FisheryDao fisheryDao)
          Sets the reference to fisheryDao.
 void setVesselDao(VesselDao vesselDao)
          Sets the reference to vesselDao.
 void setVesselOwnerDao(VesselOwnerDao vesselOwnerDao)
          Sets the reference to vesselOwnerDao.
protected  ClusterRightToProduce toClusterRightToProduce(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterRightToProduce toClusterRightToProduce(RightToProduce entity)
          Converts this DAO's entity to an object of type ClusterRightToProduce.
 void toClusterRightToProduce(RightToProduce source, ClusterRightToProduce target)
          Copies the fields of the specified entity to the target value object.
 ClusterRightToProduce[] toClusterRightToProduceArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterRightToProduce.
 void toClusterRightToProduceCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterRightToProduce.
protected  RightToProduce toEntity(java.lang.Object[] row)
           
protected  RemoteRightToProduceFullVO toRemoteRightToProduceFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteRightToProduceFullVO toRemoteRightToProduceFullVO(RightToProduce entity)
          Converts this DAO's entity to an object of type RemoteRightToProduceFullVO.
 void toRemoteRightToProduceFullVO(RightToProduce source, RemoteRightToProduceFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteRightToProduceFullVO[] toRemoteRightToProduceFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteRightToProduceFullVO.
 void toRemoteRightToProduceFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteRightToProduceFullVO.
protected  RemoteRightToProduceNaturalId toRemoteRightToProduceNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteRightToProduceNaturalId toRemoteRightToProduceNaturalId(RightToProduce entity)
          Converts this DAO's entity to an object of type RemoteRightToProduceNaturalId.
 void toRemoteRightToProduceNaturalId(RightToProduce source, RemoteRightToProduceNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteRightToProduceNaturalId[] toRemoteRightToProduceNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteRightToProduceNaturalId.
 void toRemoteRightToProduceNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteRightToProduceNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.regulation.RightToProduce) method.
protected  java.lang.Object transformEntity(int transform, RightToProduce 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.referential.regulation.RightToProduceDao, please note that the RightToProduceDao.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(RightToProduce rightToProduce)
          Updates the rightToProduce 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.referential.regulation.RightToProduceDao
clusterRightToProduceToEntity, remoteRightToProduceFullVOToEntity, remoteRightToProduceNaturalIdToEntity
 

Constructor Detail

RightToProduceDaoBase

public RightToProduceDaoBase()
Method Detail

setCorpusDao

public void setCorpusDao(CorpusDao corpusDao)
Sets the reference to corpusDao.


getCorpusDao

protected CorpusDao getCorpusDao()
Gets the reference to corpusDao.


setFisheryDao

public void setFisheryDao(FisheryDao fisheryDao)
Sets the reference to fisheryDao.


getFisheryDao

protected FisheryDao getFisheryDao()
Gets the reference to fisheryDao.


setVesselDao

public void setVesselDao(VesselDao vesselDao)
Sets the reference to vesselDao.


getVesselDao

protected VesselDao getVesselDao()
Gets the reference to vesselDao.


setVesselOwnerDao

public void setVesselOwnerDao(VesselOwnerDao vesselOwnerDao)
Sets the reference to vesselOwnerDao.


getVesselOwnerDao

protected VesselOwnerDao getVesselOwnerDao()
Gets the reference to vesselOwnerDao.


load

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

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

load

public RightToProduce load(java.lang.Integer id)
Description copied from interface: RightToProduceDao
Loads an instance of fr.ifremer.allegro.referential.regulation.RightToProduce from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public RightToProduce create(RightToProduce rightToProduce)
Description copied from interface: RightToProduceDao
Creates an instance of fr.ifremer.allegro.referential.regulation.RightToProduce and adds it to the persistent store.

Specified by:
create in interface RightToProduceDao
See Also:
RightToProduceDao.create(fr.ifremer.allegro.referential.regulation.RightToProduce)

create

public java.lang.Object create(int transform,
                               RightToProduce rightToProduce)
Description copied from interface: RightToProduceDao

Does the same thing as RightToProduceDao.create(fr.ifremer.allegro.referential.regulation.RightToProduce) 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 RightToProduceDao
See Also:
RightToProduceDao.create(int transform, fr.ifremer.allegro.referential.regulation.RightToProduce)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: RightToProduceDao
Creates a new instance of fr.ifremer.allegro.referential.regulation.RightToProduce and adds from the passed in entities collection

Specified by:
create in interface RightToProduceDao
Parameters:
entities - the collection of fr.ifremer.allegro.referential.regulation.RightToProduce instances to create.
Returns:
the created instances.
See Also:
RightToProduceDao.create(java.util.Collection)

create

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

Does the same thing as RightToProduceDao.create(fr.ifremer.allegro.referential.regulation.RightToProduce) 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 RightToProduceDao
See Also:
RightToProduceDao.create(int, java.util.Collection)

create

public RightToProduce create(java.util.Date startDate,
                             java.util.Date endDate,
                             java.lang.String reference,
                             java.sql.Timestamp updateDate,
                             Corpus corpus,
                             java.util.Collection fisheries,
                             java.util.Collection vesselOwners,
                             java.util.Collection vessels)
Description copied from interface: RightToProduceDao

Creates a new fr.ifremer.allegro.referential.regulation.RightToProduce instance from all attributes and properties and adds it to the persistent store.

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

create

public java.lang.Object create(int transform,
                               java.util.Date startDate,
                               java.util.Date endDate,
                               java.lang.String reference,
                               java.sql.Timestamp updateDate,
                               Corpus corpus,
                               java.util.Collection fisheries,
                               java.util.Collection vesselOwners,
                               java.util.Collection vessels)
Description copied from interface: RightToProduceDao

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

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

create

public RightToProduce create(java.util.Date startDate)
Description copied from interface: RightToProduceDao

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

Specified by:
create in interface RightToProduceDao
See Also:
RightToProduceDao.create(java.util.Date)

create

public java.lang.Object create(int transform,
                               java.util.Date startDate)
Description copied from interface: RightToProduceDao

Does the same thing as RightToProduceDao.create(java.util.Date) 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 RightToProduceDao
See Also:
RightToProduceDao.create(int, java.util.Date)

update

public void update(RightToProduce rightToProduce)
Description copied from interface: RightToProduceDao
Updates the rightToProduce instance in the persistent store.

Specified by:
update in interface RightToProduceDao
See Also:
RightToProduceDao.update(fr.ifremer.allegro.referential.regulation.RightToProduce)

update

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

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

remove

public void remove(RightToProduce rightToProduce)
Description copied from interface: RightToProduceDao
Removes the instance of fr.ifremer.allegro.referential.regulation.RightToProduce from the persistent store.

Specified by:
remove in interface RightToProduceDao
See Also:
RightToProduceDao.remove(fr.ifremer.allegro.referential.regulation.RightToProduce)

remove

public void remove(java.lang.Integer id)
Description copied from interface: RightToProduceDao
Removes the instance of fr.ifremer.allegro.referential.regulation.RightToProduce having the given identifier from the persistent store.

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

remove

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

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

getAllRightToProduce

public java.util.Collection getAllRightToProduce()
Specified by:
getAllRightToProduce in interface RightToProduceDao
See Also:
RightToProduceDao.getAllRightToProduce()

getAllRightToProduce

public java.util.Collection getAllRightToProduce(int transform)
Description copied from interface: RightToProduceDao

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

getAllRightToProduce

public java.util.Collection getAllRightToProduce(java.lang.String queryString)
Description copied from interface: RightToProduceDao

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

Specified by:
getAllRightToProduce in interface RightToProduceDao
See Also:
RightToProduceDao.getAllRightToProduce(java.lang.String)

getAllRightToProduce

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

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

getAllRightToProduce

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

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

getAllRightToProduce

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

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

Specified by:
getAllRightToProduce in interface RightToProduceDao
See Also:
RightToProduceDao.getAllRightToProduce(int, String)

getAllRightToProduce

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

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

getAllRightToProduce

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

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

findRightToProduceById

public RightToProduce findRightToProduceById(java.lang.Integer id)
Specified by:
findRightToProduceById in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceById(java.lang.Integer)

findRightToProduceById

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

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

findRightToProduceById

public RightToProduce findRightToProduceById(java.lang.String queryString,
                                             java.lang.Integer id)
Description copied from interface: RightToProduceDao

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

Specified by:
findRightToProduceById in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceById(java.lang.String, java.lang.Integer)

findRightToProduceById

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

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

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

findRightToProduceByCorpus

public RightToProduce findRightToProduceByCorpus(Corpus corpus)
Specified by:
findRightToProduceByCorpus in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceByCorpus(fr.ifremer.allegro.referential.regulation.Corpus)

findRightToProduceByCorpus

public java.lang.Object findRightToProduceByCorpus(int transform,
                                                   Corpus corpus)
Description copied from interface: RightToProduceDao

Does the same thing as RightToProduceDao.findRightToProduceByCorpus(fr.ifremer.allegro.referential.regulation.Corpus) 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:
findRightToProduceByCorpus in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceByCorpus(int, fr.ifremer.allegro.referential.regulation.Corpus)

findRightToProduceByCorpus

public RightToProduce findRightToProduceByCorpus(java.lang.String queryString,
                                                 Corpus corpus)
Description copied from interface: RightToProduceDao

Does the same thing as RightToProduceDao.findRightToProduceByCorpus(fr.ifremer.allegro.referential.regulation.Corpus) with an additional argument called queryString. This queryString argument allows you to override the query string defined in RightToProduceDao.findRightToProduceByCorpus(fr.ifremer.allegro.referential.regulation.Corpus).

Specified by:
findRightToProduceByCorpus in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceByCorpus(java.lang.String, fr.ifremer.allegro.referential.regulation.Corpus)

findRightToProduceByCorpus

public java.lang.Object findRightToProduceByCorpus(int transform,
                                                   java.lang.String queryString,
                                                   Corpus corpus)
Description copied from interface: RightToProduceDao

Does the same thing as RightToProduceDao.findRightToProduceByCorpus(int, fr.ifremer.allegro.referential.regulation.Corpus) with an additional argument called queryString. This queryString argument allows you to override the query string defined in RightToProduceDao.findRightToProduceByCorpus(int, fr.ifremer.allegro.referential.regulation.Corpus corpus).

Specified by:
findRightToProduceByCorpus in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceByCorpus(int, java.lang.String, fr.ifremer.allegro.referential.regulation.Corpus)

findRightToProduceByNaturalId

public RightToProduce findRightToProduceByNaturalId(java.lang.Integer id)
Specified by:
findRightToProduceByNaturalId in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceByNaturalId(java.lang.Integer)

findRightToProduceByNaturalId

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

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

findRightToProduceByNaturalId

public RightToProduce findRightToProduceByNaturalId(java.lang.String queryString,
                                                    java.lang.Integer id)
Description copied from interface: RightToProduceDao

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

Specified by:
findRightToProduceByNaturalId in interface RightToProduceDao
See Also:
RightToProduceDao.findRightToProduceByNaturalId(java.lang.String, java.lang.Integer)

findRightToProduceByNaturalId

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

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

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

getAllRightToProduceSinceDateSynchro

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

getAllRightToProduceSinceDateSynchro

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

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

Specified by:
getAllRightToProduceSinceDateSynchro in interface RightToProduceDao
See Also:
RightToProduceDao.getAllRightToProduceSinceDateSynchro(int, java.sql.Timestamp)

getAllRightToProduceSinceDateSynchro

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

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

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

getAllRightToProduceSinceDateSynchro

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

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

Specified by:
getAllRightToProduceSinceDateSynchro in interface RightToProduceDao
See Also:
RightToProduceDao.getAllRightToProduceSinceDateSynchro(int, int, java.sql.Timestamp)

getAllRightToProduceSinceDateSynchro

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

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

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

getAllRightToProduceSinceDateSynchro

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

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

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

getAllRightToProduceSinceDateSynchro

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

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

Specified by:
getAllRightToProduceSinceDateSynchro in interface RightToProduceDao
See Also:
RightToProduceDao.getAllRightToProduceSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllRightToProduceSinceDateSynchro

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

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

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

createFromClusterRightToProduce

public RightToProduce createFromClusterRightToProduce(ClusterRightToProduce clusterRightToProduce)
Specified by:
createFromClusterRightToProduce in interface RightToProduceDao
See Also:
RightToProduceDao.createFromClusterRightToProduce(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterRightToProduce)

handleCreateFromClusterRightToProduce

protected abstract RightToProduce handleCreateFromClusterRightToProduce(ClusterRightToProduce clusterRightToProduce)
                                                                 throws java.lang.Exception
Performs the core logic for createFromClusterRightToProduce(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterRightToProduce)

Throws:
java.lang.Exception

getAllClusterRightToProduceSinceDateSynchro

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

handleGetAllClusterRightToProduceSinceDateSynchro

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

Throws:
java.lang.Exception

transformEntity

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

Parameters:
transform - one of the constants declared in RightToProduceDao
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.referential.regulation.RightToProduce) 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.referential.regulation.RightToProduceDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.regulation.RightToProduce)

toEntity

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

toRemoteRightToProduceFullVOCollection

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

Specified by:
toRemoteRightToProduceFullVOCollection in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceFullVOCollection(java.util.Collection)

toRemoteRightToProduceFullVOArray

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

Specified by:
toRemoteRightToProduceFullVOArray in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceFullVOArray(java.util.Collection)

toRemoteRightToProduceFullVO

protected RemoteRightToProduceFullVO toRemoteRightToProduceFullVO(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 RightToProduceDaoImpl class if you intend to use reporting queries.

See Also:
RightToProduceDao.toRemoteRightToProduceFullVO(fr.ifremer.allegro.referential.regulation.RightToProduce)

remoteRightToProduceFullVOToEntityCollection

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

Specified by:
remoteRightToProduceFullVOToEntityCollection in interface RightToProduceDao
See Also:
RightToProduceDao.remoteRightToProduceFullVOToEntityCollection(java.util.Collection)

toRemoteRightToProduceFullVO

public void toRemoteRightToProduceFullVO(RightToProduce source,
                                         RemoteRightToProduceFullVO target)
Description copied from interface: RightToProduceDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteRightToProduceFullVO(), 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:
toRemoteRightToProduceFullVO in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceFullVO(fr.ifremer.allegro.referential.regulation.RightToProduce, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteRightToProduceFullVO)

toRemoteRightToProduceFullVO

public RemoteRightToProduceFullVO toRemoteRightToProduceFullVO(RightToProduce entity)
Description copied from interface: RightToProduceDao
Converts this DAO's entity to an object of type RemoteRightToProduceFullVO.

Specified by:
toRemoteRightToProduceFullVO in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceFullVO(fr.ifremer.allegro.referential.regulation.RightToProduce)

remoteRightToProduceFullVOToEntity

public void remoteRightToProduceFullVOToEntity(RemoteRightToProduceFullVO source,
                                               RightToProduce target,
                                               boolean copyIfNull)
Description copied from interface: RightToProduceDao
Copies the fields of RemoteRightToProduceFullVO to the specified entity.

Specified by:
remoteRightToProduceFullVOToEntity in interface RightToProduceDao
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.referential.regulation.RightToProduceDao#remoteRightToProduceFullVOToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteRightToProduceFullVO, fr.ifremer.allegro.referential.regulation.RightToProduce)

toRemoteRightToProduceNaturalIdCollection

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

Specified by:
toRemoteRightToProduceNaturalIdCollection in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceNaturalIdCollection(java.util.Collection)

toRemoteRightToProduceNaturalIdArray

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

Specified by:
toRemoteRightToProduceNaturalIdArray in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceNaturalIdArray(java.util.Collection)

toRemoteRightToProduceNaturalId

protected RemoteRightToProduceNaturalId toRemoteRightToProduceNaturalId(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 RightToProduceDaoImpl class if you intend to use reporting queries.

See Also:
RightToProduceDao.toRemoteRightToProduceNaturalId(fr.ifremer.allegro.referential.regulation.RightToProduce)

remoteRightToProduceNaturalIdToEntityCollection

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

Specified by:
remoteRightToProduceNaturalIdToEntityCollection in interface RightToProduceDao
See Also:
RightToProduceDao.remoteRightToProduceNaturalIdToEntityCollection(java.util.Collection)

toRemoteRightToProduceNaturalId

public void toRemoteRightToProduceNaturalId(RightToProduce source,
                                            RemoteRightToProduceNaturalId target)
Description copied from interface: RightToProduceDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteRightToProduceNaturalId(), 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:
toRemoteRightToProduceNaturalId in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceNaturalId(fr.ifremer.allegro.referential.regulation.RightToProduce, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteRightToProduceNaturalId)

toRemoteRightToProduceNaturalId

public RemoteRightToProduceNaturalId toRemoteRightToProduceNaturalId(RightToProduce entity)
Description copied from interface: RightToProduceDao
Converts this DAO's entity to an object of type RemoteRightToProduceNaturalId.

Specified by:
toRemoteRightToProduceNaturalId in interface RightToProduceDao
See Also:
RightToProduceDao.toRemoteRightToProduceNaturalId(fr.ifremer.allegro.referential.regulation.RightToProduce)

remoteRightToProduceNaturalIdToEntity

public void remoteRightToProduceNaturalIdToEntity(RemoteRightToProduceNaturalId source,
                                                  RightToProduce target,
                                                  boolean copyIfNull)
Description copied from interface: RightToProduceDao
Copies the fields of RemoteRightToProduceNaturalId to the specified entity.

Specified by:
remoteRightToProduceNaturalIdToEntity in interface RightToProduceDao
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.referential.regulation.RightToProduceDao#remoteRightToProduceNaturalIdToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteRightToProduceNaturalId, fr.ifremer.allegro.referential.regulation.RightToProduce)

toClusterRightToProduceCollection

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

Specified by:
toClusterRightToProduceCollection in interface RightToProduceDao
See Also:
RightToProduceDao.toClusterRightToProduceCollection(java.util.Collection)

toClusterRightToProduceArray

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

Specified by:
toClusterRightToProduceArray in interface RightToProduceDao
See Also:
RightToProduceDao.toClusterRightToProduceArray(java.util.Collection)

toClusterRightToProduce

protected ClusterRightToProduce toClusterRightToProduce(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 RightToProduceDaoImpl class if you intend to use reporting queries.

See Also:
RightToProduceDao.toClusterRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)

clusterRightToProduceToEntityCollection

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

Specified by:
clusterRightToProduceToEntityCollection in interface RightToProduceDao
See Also:
RightToProduceDao.clusterRightToProduceToEntityCollection(java.util.Collection)

toClusterRightToProduce

public void toClusterRightToProduce(RightToProduce source,
                                    ClusterRightToProduce target)
Description copied from interface: RightToProduceDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterRightToProduce(), 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:
toClusterRightToProduce in interface RightToProduceDao
See Also:
RightToProduceDao.toClusterRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce, fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterRightToProduce)

toClusterRightToProduce

public ClusterRightToProduce toClusterRightToProduce(RightToProduce entity)
Description copied from interface: RightToProduceDao
Converts this DAO's entity to an object of type ClusterRightToProduce.

Specified by:
toClusterRightToProduce in interface RightToProduceDao
See Also:
RightToProduceDao.toClusterRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)

clusterRightToProduceToEntity

public void clusterRightToProduceToEntity(ClusterRightToProduce source,
                                          RightToProduce target,
                                          boolean copyIfNull)
Description copied from interface: RightToProduceDao
Copies the fields of ClusterRightToProduce to the specified entity.

Specified by:
clusterRightToProduceToEntity in interface RightToProduceDao
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.referential.regulation.RightToProduceDao#clusterRightToProduceToEntity(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterRightToProduce, fr.ifremer.allegro.referential.regulation.RightToProduce)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.