fr.ifremer.allegro.referential.regulation
Class CorpusDaoBase

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

public abstract class CorpusDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements CorpusDao

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

See Also:
Corpus

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.regulation.CorpusDao
TRANSFORM_CLUSTERCORPUS, TRANSFORM_NONE, TRANSFORM_REMOTECORPUSFULLVO, TRANSFORM_REMOTECORPUSNATURALID
 
Constructor Summary
CorpusDaoBase()
           
 
Method Summary
 void clusterCorpusToEntity(ClusterCorpus source, Corpus target, boolean copyIfNull)
          Copies the fields of ClusterCorpus to the specified entity.
 void clusterCorpusToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterCorpus to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.regulation.Corpus and adds from the passed in entities collection
 Corpus create(Corpus corpus)
          Creates an instance of fr.ifremer.allegro.referential.regulation.Corpus and adds it to the persistent store.
 Corpus create(CorpusType corpusType, java.util.Collection fisheries, java.lang.String name, java.util.Date startDate)
           Creates a new fr.ifremer.allegro.referential.regulation.Corpus instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus) with an additional flag called transform.
 java.lang.Object create(int transform, Corpus corpus)
           Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus) with an additional flag called transform.
 java.lang.Object create(int transform, CorpusType corpusType, java.util.Collection fisheries, java.lang.String name, java.util.Date startDate)
           Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.CorpusType,java.util.Collection,java.lang.String,java.util.Date) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.util.Date startDate, java.util.Date endDate, java.sql.Timestamp updateDate, java.util.Collection fisheries, RightToProduce rightToProduce, java.util.Collection minimumSizeAlloweds, CorpusType corpusType)
           Does the same thing as CorpusDao.create(java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType) with an additional flag called transform.
 Corpus create(java.lang.String name, java.lang.String description, java.util.Date startDate, java.util.Date endDate, java.sql.Timestamp updateDate, java.util.Collection fisheries, RightToProduce rightToProduce, java.util.Collection minimumSizeAlloweds, CorpusType corpusType)
           Creates a new fr.ifremer.allegro.referential.regulation.Corpus instance from all attributes and properties and adds it to the persistent store.
 Corpus createFromClusterCorpus(ClusterCorpus clusterCorpus)
           
 java.util.Collection findCorpusByCorpusType(CorpusType corpusType)
           
 java.util.Collection findCorpusByCorpusType(int transform, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType) with an additional flag called transform.
 java.util.Collection findCorpusByCorpusType(int pageNumber, int pageSize, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findCorpusByCorpusType(int transform, int pageNumber, int pageSize, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findCorpusByCorpusType(int transform, java.lang.String queryString, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType) with an additional argument called queryString.
 java.util.Collection findCorpusByCorpusType(int transform, java.lang.String queryString, int pageNumber, int pageSize, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(int, String, fr.ifremer.allegro.referential.regulation.CorpusType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findCorpusByCorpusType(java.lang.String queryString, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType) with an additional argument called queryString.
 java.util.Collection findCorpusByCorpusType(java.lang.String queryString, int pageNumber, int pageSize, CorpusType corpusType)
           Does the same thing as CorpusDao.findCorpusByCorpusType(String, fr.ifremer.allegro.referential.regulation.CorpusType) with an additional two arguments called pageNumber and pageSize.
 Corpus findCorpusById(java.lang.Integer id)
           
 java.lang.Object findCorpusById(int transform, java.lang.Integer id)
           Does the same thing as CorpusDao.findCorpusById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findCorpusById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as CorpusDao.findCorpusById(int, java.lang.Integer) with an additional argument called queryString.
 Corpus findCorpusById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as CorpusDao.findCorpusById(java.lang.Integer) with an additional argument called queryString.
 Corpus findCorpusByNaturalId(java.lang.Integer id)
           
 java.lang.Object findCorpusByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as CorpusDao.findCorpusByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findCorpusByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as CorpusDao.findCorpusByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Corpus findCorpusByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as CorpusDao.findCorpusByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.lang.Object findCorpusByRightToProduce(int transform, RightToProduce rightToProduce)
           Does the same thing as CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce) with an additional flag called transform.
 java.lang.Object findCorpusByRightToProduce(int transform, java.lang.String queryString, RightToProduce rightToProduce)
           Does the same thing as CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce) with an additional argument called queryString.
 Corpus findCorpusByRightToProduce(RightToProduce rightToProduce)
           
 Corpus findCorpusByRightToProduce(java.lang.String queryString, RightToProduce rightToProduce)
           Does the same thing as CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce) with an additional argument called queryString.
 ClusterCorpus[] getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllCorpus()
           
 java.util.Collection getAllCorpus(int transform)
           Does the same thing as CorpusDao.getAllCorpus() with an additional flag called transform.
 java.util.Collection getAllCorpus(int pageNumber, int pageSize)
           Does the same thing as CorpusDao.getAllCorpus() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpus(int transform, int pageNumber, int pageSize)
           Does the same thing as CorpusDao.getAllCorpus(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpus(int transform, java.lang.String queryString)
           Does the same thing as CorpusDao.getAllCorpus(int) with an additional argument called queryString.
 java.util.Collection getAllCorpus(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as CorpusDao.getAllCorpus(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpus(java.lang.String queryString)
           Does the same thing as CorpusDao.getAllCorpus() with an additional argument called queryString.
 java.util.Collection getAllCorpus(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as CorpusDao.getAllCorpus(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpusSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpusSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpusSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpusSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllCorpusSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllCorpusSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllCorpusSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllCorpusSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  CorpusTypeDao getCorpusTypeDao()
          Gets the reference to corpusTypeDao.
protected  FisheryDao getFisheryDao()
          Gets the reference to fisheryDao.
protected  MinimumSizeAllowedDao getMinimumSizeAllowedDao()
          Gets the reference to minimumSizeAllowedDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  RightToProduceDao getRightToProduceDao()
          Gets the reference to rightToProduceDao.
protected abstract  Corpus handleCreateFromClusterCorpus(ClusterCorpus clusterCorpus)
          Performs the core logic for createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)
protected abstract  ClusterCorpus[] handleGetAllClusterCorpusSinceDateSynchro(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 getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Corpus load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.regulation.Corpus from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as CorpusDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Corpus.
 java.util.Collection loadAll(int transform)
           Does the same thing as CorpusDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as CorpusDao.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 CorpusDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteCorpusFullVOToEntity(RemoteCorpusFullVO source, Corpus target, boolean copyIfNull)
          Copies the fields of RemoteCorpusFullVO to the specified entity.
 void remoteCorpusFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteCorpusFullVO to this DAO's entity.
 void remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId source, Corpus target, boolean copyIfNull)
          Copies the fields of RemoteCorpusNaturalId to the specified entity.
 void remoteCorpusNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteCorpusNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Corpus corpus)
          Removes the instance of fr.ifremer.allegro.referential.regulation.Corpus from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.regulation.Corpus 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 CorpusDao.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 setCorpusTypeDao(CorpusTypeDao corpusTypeDao)
          Sets the reference to corpusTypeDao.
 void setFisheryDao(FisheryDao fisheryDao)
          Sets the reference to fisheryDao.
 void setMinimumSizeAllowedDao(MinimumSizeAllowedDao minimumSizeAllowedDao)
          Sets the reference to minimumSizeAllowedDao.
 void setRightToProduceDao(RightToProduceDao rightToProduceDao)
          Sets the reference to rightToProduceDao.
 ClusterCorpus toClusterCorpus(Corpus entity)
          Converts this DAO's entity to an object of type ClusterCorpus.
 void toClusterCorpus(Corpus source, ClusterCorpus target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterCorpus toClusterCorpus(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterCorpus[] toClusterCorpusArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterCorpus.
 void toClusterCorpusCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterCorpus.
protected  Corpus toEntity(java.lang.Object[] row)
           
 RemoteCorpusFullVO toRemoteCorpusFullVO(Corpus entity)
          Converts this DAO's entity to an object of type RemoteCorpusFullVO.
 void toRemoteCorpusFullVO(Corpus source, RemoteCorpusFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteCorpusFullVO toRemoteCorpusFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteCorpusFullVO[] toRemoteCorpusFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteCorpusFullVO.
 void toRemoteCorpusFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteCorpusFullVO.
 RemoteCorpusNaturalId toRemoteCorpusNaturalId(Corpus entity)
          Converts this DAO's entity to an object of type RemoteCorpusNaturalId.
 void toRemoteCorpusNaturalId(Corpus source, RemoteCorpusNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteCorpusNaturalId toRemoteCorpusNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteCorpusNaturalId[] toRemoteCorpusNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteCorpusNaturalId.
 void toRemoteCorpusNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteCorpusNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.regulation.Corpus) method.
protected  java.lang.Object transformEntity(int transform, Corpus 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.CorpusDao, please note that the CorpusDao.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(Corpus corpus)
          Updates the corpus 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.CorpusDao
clusterCorpusToEntity, remoteCorpusFullVOToEntity, remoteCorpusNaturalIdToEntity
 

Constructor Detail

CorpusDaoBase

public CorpusDaoBase()
Method Detail

setRightToProduceDao

public void setRightToProduceDao(RightToProduceDao rightToProduceDao)
Sets the reference to rightToProduceDao.


getRightToProduceDao

protected RightToProduceDao getRightToProduceDao()
Gets the reference to rightToProduceDao.


setFisheryDao

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


getFisheryDao

protected FisheryDao getFisheryDao()
Gets the reference to fisheryDao.


setCorpusTypeDao

public void setCorpusTypeDao(CorpusTypeDao corpusTypeDao)
Sets the reference to corpusTypeDao.


getCorpusTypeDao

protected CorpusTypeDao getCorpusTypeDao()
Gets the reference to corpusTypeDao.


setMinimumSizeAllowedDao

public void setMinimumSizeAllowedDao(MinimumSizeAllowedDao minimumSizeAllowedDao)
Sets the reference to minimumSizeAllowedDao.


getMinimumSizeAllowedDao

protected MinimumSizeAllowedDao getMinimumSizeAllowedDao()
Gets the reference to minimumSizeAllowedDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

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

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

create

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

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

create

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

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

create

public Corpus create(java.lang.String name,
                     java.lang.String description,
                     java.util.Date startDate,
                     java.util.Date endDate,
                     java.sql.Timestamp updateDate,
                     java.util.Collection fisheries,
                     RightToProduce rightToProduce,
                     java.util.Collection minimumSizeAlloweds,
                     CorpusType corpusType)
Description copied from interface: CorpusDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String description,
                               java.util.Date startDate,
                               java.util.Date endDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection fisheries,
                               RightToProduce rightToProduce,
                               java.util.Collection minimumSizeAlloweds,
                               CorpusType corpusType)
Description copied from interface: CorpusDao

Does the same thing as CorpusDao.create(java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType) 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 CorpusDao
See Also:
CorpusDao.create(int, java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType)

create

public Corpus create(CorpusType corpusType,
                     java.util.Collection fisheries,
                     java.lang.String name,
                     java.util.Date startDate)
Description copied from interface: CorpusDao

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

Specified by:
create in interface CorpusDao
See Also:
CorpusDao.create(fr.ifremer.allegro.referential.regulation.CorpusType,java.util.Collection,java.lang.String,java.util.Date)

create

public java.lang.Object create(int transform,
                               CorpusType corpusType,
                               java.util.Collection fisheries,
                               java.lang.String name,
                               java.util.Date startDate)
Description copied from interface: CorpusDao

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

update

public void update(Corpus corpus)
Description copied from interface: CorpusDao
Updates the corpus instance in the persistent store.

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

update

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

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

remove

public void remove(Corpus corpus)
Description copied from interface: CorpusDao
Removes the instance of fr.ifremer.allegro.referential.regulation.Corpus from the persistent store.

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

remove

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

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

remove

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

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

getAllCorpus

public java.util.Collection getAllCorpus()
Specified by:
getAllCorpus in interface CorpusDao
See Also:
CorpusDao.getAllCorpus()

getAllCorpus

public java.util.Collection getAllCorpus(int transform)
Description copied from interface: CorpusDao

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

getAllCorpus

public java.util.Collection getAllCorpus(java.lang.String queryString)
Description copied from interface: CorpusDao

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

Specified by:
getAllCorpus in interface CorpusDao
See Also:
CorpusDao.getAllCorpus(java.lang.String)

getAllCorpus

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

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

getAllCorpus

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

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

getAllCorpus

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

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

Specified by:
getAllCorpus in interface CorpusDao
See Also:
CorpusDao.getAllCorpus(int, String)

getAllCorpus

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

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

getAllCorpus

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

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

findCorpusById

public Corpus findCorpusById(java.lang.Integer id)
Specified by:
findCorpusById in interface CorpusDao
See Also:
CorpusDao.findCorpusById(java.lang.Integer)

findCorpusById

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

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

findCorpusById

public Corpus findCorpusById(java.lang.String queryString,
                             java.lang.Integer id)
Description copied from interface: CorpusDao

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

Specified by:
findCorpusById in interface CorpusDao
See Also:
CorpusDao.findCorpusById(java.lang.String, java.lang.Integer)

findCorpusById

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

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

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

findCorpusByRightToProduce

public Corpus findCorpusByRightToProduce(RightToProduce rightToProduce)
Specified by:
findCorpusByRightToProduce in interface CorpusDao
See Also:
CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)

findCorpusByRightToProduce

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

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

findCorpusByRightToProduce

public Corpus findCorpusByRightToProduce(java.lang.String queryString,
                                         RightToProduce rightToProduce)
Description copied from interface: CorpusDao

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

Specified by:
findCorpusByRightToProduce in interface CorpusDao
See Also:
CorpusDao.findCorpusByRightToProduce(java.lang.String, fr.ifremer.allegro.referential.regulation.RightToProduce)

findCorpusByRightToProduce

public java.lang.Object findCorpusByRightToProduce(int transform,
                                                   java.lang.String queryString,
                                                   RightToProduce rightToProduce)
Description copied from interface: CorpusDao

Does the same thing as CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce) with an additional argument called queryString. This queryString argument allows you to override the query string defined in CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce rightToProduce).

Specified by:
findCorpusByRightToProduce in interface CorpusDao
See Also:
CorpusDao.findCorpusByRightToProduce(int, java.lang.String, fr.ifremer.allegro.referential.regulation.RightToProduce)

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(CorpusType corpusType)
Specified by:
findCorpusByCorpusType in interface CorpusDao
See Also:
CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType)

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(int transform,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

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

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(java.lang.String queryString,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

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

Specified by:
findCorpusByCorpusType in interface CorpusDao
See Also:
CorpusDao.findCorpusByCorpusType(java.lang.String, fr.ifremer.allegro.referential.regulation.CorpusType)

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(int pageNumber,
                                                   int pageSize,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

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

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

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

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(int transform,
                                                   java.lang.String queryString,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType corpusType).

Specified by:
findCorpusByCorpusType in interface CorpusDao
See Also:
CorpusDao.findCorpusByCorpusType(int, String, fr.ifremer.allegro.referential.regulation.CorpusType)

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(int transform,
                                                   int pageNumber,
                                                   int pageSize,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

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

findCorpusByCorpusType

public java.util.Collection findCorpusByCorpusType(int transform,
                                                   java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   CorpusType corpusType)
Description copied from interface: CorpusDao

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

findCorpusByNaturalId

public Corpus findCorpusByNaturalId(java.lang.Integer id)
Specified by:
findCorpusByNaturalId in interface CorpusDao
See Also:
CorpusDao.findCorpusByNaturalId(java.lang.Integer)

findCorpusByNaturalId

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

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

findCorpusByNaturalId

public Corpus findCorpusByNaturalId(java.lang.String queryString,
                                    java.lang.Integer id)
Description copied from interface: CorpusDao

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

Specified by:
findCorpusByNaturalId in interface CorpusDao
See Also:
CorpusDao.findCorpusByNaturalId(java.lang.String, java.lang.Integer)

findCorpusByNaturalId

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

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

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

getAllCorpusSinceDateSynchro

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

getAllCorpusSinceDateSynchro

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

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

getAllCorpusSinceDateSynchro

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

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

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

getAllCorpusSinceDateSynchro

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

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

getAllCorpusSinceDateSynchro

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

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

getAllCorpusSinceDateSynchro

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

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

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

getAllCorpusSinceDateSynchro

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

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

getAllCorpusSinceDateSynchro

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

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

createFromClusterCorpus

public Corpus createFromClusterCorpus(ClusterCorpus clusterCorpus)
Specified by:
createFromClusterCorpus in interface CorpusDao
See Also:
CorpusDao.createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)

handleCreateFromClusterCorpus

protected abstract Corpus handleCreateFromClusterCorpus(ClusterCorpus clusterCorpus)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)

Throws:
java.lang.Exception

getAllClusterCorpusSinceDateSynchro

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

handleGetAllClusterCorpusSinceDateSynchro

protected abstract ClusterCorpus[] handleGetAllClusterCorpusSinceDateSynchro(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 getAllClusterCorpusSinceDateSynchro(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,
                                           Corpus 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.CorpusDao, please note that the CorpusDao.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 CorpusDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteCorpusFullVOCollection

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

Specified by:
toRemoteCorpusFullVOCollection in interface CorpusDao
See Also:
CorpusDao.toRemoteCorpusFullVOCollection(java.util.Collection)

toRemoteCorpusFullVOArray

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

Specified by:
toRemoteCorpusFullVOArray in interface CorpusDao
See Also:
CorpusDao.toRemoteCorpusFullVOArray(java.util.Collection)

toRemoteCorpusFullVO

protected RemoteCorpusFullVO toRemoteCorpusFullVO(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 CorpusDaoImpl class if you intend to use reporting queries.

See Also:
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus)

remoteCorpusFullVOToEntityCollection

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

Specified by:
remoteCorpusFullVOToEntityCollection in interface CorpusDao
See Also:
CorpusDao.remoteCorpusFullVOToEntityCollection(java.util.Collection)

toRemoteCorpusFullVO

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

toRemoteCorpusFullVO

public RemoteCorpusFullVO toRemoteCorpusFullVO(Corpus entity)
Description copied from interface: CorpusDao
Converts this DAO's entity to an object of type RemoteCorpusFullVO.

Specified by:
toRemoteCorpusFullVO in interface CorpusDao
See Also:
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus)

remoteCorpusFullVOToEntity

public void remoteCorpusFullVOToEntity(RemoteCorpusFullVO source,
                                       Corpus target,
                                       boolean copyIfNull)
Description copied from interface: CorpusDao
Copies the fields of RemoteCorpusFullVO to the specified entity.

Specified by:
remoteCorpusFullVOToEntity in interface CorpusDao
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.CorpusDao#remoteCorpusFullVOToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusFullVO, fr.ifremer.allegro.referential.regulation.Corpus)

toRemoteCorpusNaturalIdCollection

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

Specified by:
toRemoteCorpusNaturalIdCollection in interface CorpusDao
See Also:
CorpusDao.toRemoteCorpusNaturalIdCollection(java.util.Collection)

toRemoteCorpusNaturalIdArray

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

Specified by:
toRemoteCorpusNaturalIdArray in interface CorpusDao
See Also:
CorpusDao.toRemoteCorpusNaturalIdArray(java.util.Collection)

toRemoteCorpusNaturalId

protected RemoteCorpusNaturalId toRemoteCorpusNaturalId(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 CorpusDaoImpl class if you intend to use reporting queries.

See Also:
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus)

remoteCorpusNaturalIdToEntityCollection

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

Specified by:
remoteCorpusNaturalIdToEntityCollection in interface CorpusDao
See Also:
CorpusDao.remoteCorpusNaturalIdToEntityCollection(java.util.Collection)

toRemoteCorpusNaturalId

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

toRemoteCorpusNaturalId

public RemoteCorpusNaturalId toRemoteCorpusNaturalId(Corpus entity)
Description copied from interface: CorpusDao
Converts this DAO's entity to an object of type RemoteCorpusNaturalId.

Specified by:
toRemoteCorpusNaturalId in interface CorpusDao
See Also:
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus)

remoteCorpusNaturalIdToEntity

public void remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId source,
                                          Corpus target,
                                          boolean copyIfNull)
Description copied from interface: CorpusDao
Copies the fields of RemoteCorpusNaturalId to the specified entity.

Specified by:
remoteCorpusNaturalIdToEntity in interface CorpusDao
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.CorpusDao#remoteCorpusNaturalIdToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusNaturalId, fr.ifremer.allegro.referential.regulation.Corpus)

toClusterCorpusCollection

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

Specified by:
toClusterCorpusCollection in interface CorpusDao
See Also:
CorpusDao.toClusterCorpusCollection(java.util.Collection)

toClusterCorpusArray

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

Specified by:
toClusterCorpusArray in interface CorpusDao
See Also:
CorpusDao.toClusterCorpusArray(java.util.Collection)

toClusterCorpus

protected ClusterCorpus toClusterCorpus(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 CorpusDaoImpl class if you intend to use reporting queries.

See Also:
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus)

clusterCorpusToEntityCollection

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

Specified by:
clusterCorpusToEntityCollection in interface CorpusDao
See Also:
CorpusDao.clusterCorpusToEntityCollection(java.util.Collection)

toClusterCorpus

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

toClusterCorpus

public ClusterCorpus toClusterCorpus(Corpus entity)
Description copied from interface: CorpusDao
Converts this DAO's entity to an object of type ClusterCorpus.

Specified by:
toClusterCorpus in interface CorpusDao
See Also:
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus)

clusterCorpusToEntity

public void clusterCorpusToEntity(ClusterCorpus source,
                                  Corpus target,
                                  boolean copyIfNull)
Description copied from interface: CorpusDao
Copies the fields of ClusterCorpus to the specified entity.

Specified by:
clusterCorpusToEntity in interface CorpusDao
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.CorpusDao#clusterCorpusToEntity(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus, fr.ifremer.allegro.referential.regulation.Corpus)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.