fr.ifremer.allegro.referential.taxon
Class ReferenceDocumentDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.taxon.ReferenceDocumentDaoBase
All Implemented Interfaces:
ReferenceDocumentDao
Direct Known Subclasses:
ReferenceDocumentDaoImpl

public abstract class ReferenceDocumentDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ReferenceDocumentDao

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

See Also:
ReferenceDocument

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.taxon.ReferenceDocumentDao
TRANSFORM_CLUSTERREFERENCEDOCUMENT, TRANSFORM_NONE, TRANSFORM_REMOTEREFERENCEDOCUMENTFULLVO, TRANSFORM_REMOTEREFERENCEDOCUMENTNATURALID
 
Constructor Summary
ReferenceDocumentDaoBase()
           
 
Method Summary
 void clusterReferenceDocumentToEntity(ClusterReferenceDocument source, ReferenceDocument target, boolean copyIfNull)
          Copies the fields of ClusterReferenceDocument to the specified entity.
 void clusterReferenceDocumentToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterReferenceDocument to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument and adds from the passed in entities collection
 ReferenceDocument create(java.util.Collection authors, java.util.Date creationDate, java.lang.String reference, Status status)
           Creates a new fr.ifremer.allegro.referential.taxon.ReferenceDocument 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 ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Collection authors, java.util.Date creationDate, java.lang.String reference, Status status)
           Does the same thing as ReferenceDocumentDao.create(java.util.Collection,java.util.Date,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, ReferenceDocument referenceDocument)
           Does the same thing as ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String reference, java.util.Date publicationDate, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection authors, java.util.Collection taxonInformationHistories, Status status)
           Does the same thing as ReferenceDocumentDao.create(java.lang.String,java.util.Date,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 ReferenceDocument create(ReferenceDocument referenceDocument)
          Creates an instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument and adds it to the persistent store.
 ReferenceDocument create(java.lang.String reference, java.util.Date publicationDate, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection authors, java.util.Collection taxonInformationHistories, Status status)
           Creates a new fr.ifremer.allegro.referential.taxon.ReferenceDocument instance from all attributes and properties and adds it to the persistent store.
 ReferenceDocument createFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
           
 ReferenceDocument findReferenceDocumentById(java.lang.Integer id)
           
 java.lang.Object findReferenceDocumentById(int transform, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findReferenceDocumentById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(int, java.lang.Integer) with an additional argument called queryString.
 ReferenceDocument findReferenceDocumentById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer) with an additional argument called queryString.
 ReferenceDocument findReferenceDocumentByNaturalId(java.lang.Integer id)
           
 java.lang.Object findReferenceDocumentByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findReferenceDocumentByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 ReferenceDocument findReferenceDocumentByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findReferenceDocumentByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findReferenceDocumentByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findReferenceDocumentByStatus(int transform, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findReferenceDocumentByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findReferenceDocumentByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findReferenceDocumentByStatus(Status status)
           
 java.util.Collection findReferenceDocumentByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findReferenceDocumentByStatus(java.lang.String queryString, Status status)
           Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterReferenceDocument[] getAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllReferenceDocument()
           
 java.util.Collection getAllReferenceDocument(int transform)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument() with an additional flag called transform.
 java.util.Collection getAllReferenceDocument(int pageNumber, int pageSize)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocument(int transform, int pageNumber, int pageSize)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocument(int transform, java.lang.String queryString)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int) with an additional argument called queryString.
 java.util.Collection getAllReferenceDocument(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocument(java.lang.String queryString)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument() with an additional argument called queryString.
 java.util.Collection getAllReferenceDocument(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocument(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ReferenceDocumentDao.getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllReferenceDocumentSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  AuthorDao getAuthorDao()
          Gets the reference to authorDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected  TaxonInformationHistoryDao getTaxonInformationHistoryDao()
          Gets the reference to taxonInformationHistoryDao.
protected abstract  ReferenceDocument handleCreateFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
          Performs the core logic for createFromClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument)
protected abstract  ClusterReferenceDocument[] handleGetAllClusterReferenceDocumentSinceDateSynchro(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 getAllClusterReferenceDocumentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 ReferenceDocument load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as ReferenceDocumentDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type ReferenceDocument.
 java.util.Collection loadAll(int transform)
           Does the same thing as ReferenceDocumentDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ReferenceDocumentDao.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 ReferenceDocumentDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteReferenceDocumentFullVOToEntity(RemoteReferenceDocumentFullVO source, ReferenceDocument target, boolean copyIfNull)
          Copies the fields of RemoteReferenceDocumentFullVO to the specified entity.
 void remoteReferenceDocumentFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteReferenceDocumentFullVO to this DAO's entity.
 void remoteReferenceDocumentNaturalIdToEntity(RemoteReferenceDocumentNaturalId source, ReferenceDocument target, boolean copyIfNull)
          Copies the fields of RemoteReferenceDocumentNaturalId to the specified entity.
 void remoteReferenceDocumentNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteReferenceDocumentNaturalId 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.taxon.ReferenceDocument having the given identifier from the persistent store.
 void remove(ReferenceDocument referenceDocument)
          Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument 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 ReferenceDocumentDao.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 setAuthorDao(AuthorDao authorDao)
          Sets the reference to authorDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 void setTaxonInformationHistoryDao(TaxonInformationHistoryDao taxonInformationHistoryDao)
          Sets the reference to taxonInformationHistoryDao.
protected  ClusterReferenceDocument toClusterReferenceDocument(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterReferenceDocument toClusterReferenceDocument(ReferenceDocument entity)
          Converts this DAO's entity to an object of type ClusterReferenceDocument.
 void toClusterReferenceDocument(ReferenceDocument source, ClusterReferenceDocument target)
          Copies the fields of the specified entity to the target value object.
 ClusterReferenceDocument[] toClusterReferenceDocumentArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterReferenceDocument.
 void toClusterReferenceDocumentCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterReferenceDocument.
protected  ReferenceDocument toEntity(java.lang.Object[] row)
           
protected  RemoteReferenceDocumentFullVO toRemoteReferenceDocumentFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteReferenceDocumentFullVO toRemoteReferenceDocumentFullVO(ReferenceDocument entity)
          Converts this DAO's entity to an object of type RemoteReferenceDocumentFullVO.
 void toRemoteReferenceDocumentFullVO(ReferenceDocument source, RemoteReferenceDocumentFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteReferenceDocumentFullVO[] toRemoteReferenceDocumentFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteReferenceDocumentFullVO.
 void toRemoteReferenceDocumentFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteReferenceDocumentFullVO.
protected  RemoteReferenceDocumentNaturalId toRemoteReferenceDocumentNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteReferenceDocumentNaturalId toRemoteReferenceDocumentNaturalId(ReferenceDocument entity)
          Converts this DAO's entity to an object of type RemoteReferenceDocumentNaturalId.
 void toRemoteReferenceDocumentNaturalId(ReferenceDocument source, RemoteReferenceDocumentNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteReferenceDocumentNaturalId[] toRemoteReferenceDocumentNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteReferenceDocumentNaturalId.
 void toRemoteReferenceDocumentNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteReferenceDocumentNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.taxon.ReferenceDocument) method.
protected  java.lang.Object transformEntity(int transform, ReferenceDocument 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.taxon.ReferenceDocumentDao, please note that the ReferenceDocumentDao.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(ReferenceDocument referenceDocument)
          Updates the referenceDocument 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.taxon.ReferenceDocumentDao
clusterReferenceDocumentToEntity, remoteReferenceDocumentFullVOToEntity, remoteReferenceDocumentNaturalIdToEntity
 

Constructor Detail

ReferenceDocumentDaoBase

public ReferenceDocumentDaoBase()
Method Detail

setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to statusDao.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setAuthorDao

public void setAuthorDao(AuthorDao authorDao)
Sets the reference to authorDao.


getAuthorDao

protected AuthorDao getAuthorDao()
Gets the reference to authorDao.


setTaxonInformationHistoryDao

public void setTaxonInformationHistoryDao(TaxonInformationHistoryDao taxonInformationHistoryDao)
Sets the reference to taxonInformationHistoryDao.


getTaxonInformationHistoryDao

protected TaxonInformationHistoryDao getTaxonInformationHistoryDao()
Gets the reference to taxonInformationHistoryDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public ReferenceDocument create(ReferenceDocument referenceDocument)
Description copied from interface: ReferenceDocumentDao
Creates an instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument and adds it to the persistent store.

Specified by:
create in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.create(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

create

public java.lang.Object create(int transform,
                               ReferenceDocument referenceDocument)
Description copied from interface: ReferenceDocumentDao

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

create

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

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

create

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

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

create

public ReferenceDocument create(java.lang.String reference,
                                java.util.Date publicationDate,
                                java.lang.String comments,
                                java.util.Date creationDate,
                                java.sql.Timestamp updateDate,
                                java.util.Collection authors,
                                java.util.Collection taxonInformationHistories,
                                Status status)
Description copied from interface: ReferenceDocumentDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String reference,
                               java.util.Date publicationDate,
                               java.lang.String comments,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection authors,
                               java.util.Collection taxonInformationHistories,
                               Status status)
Description copied from interface: ReferenceDocumentDao

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

create

public ReferenceDocument create(java.util.Collection authors,
                                java.util.Date creationDate,
                                java.lang.String reference,
                                Status status)
Description copied from interface: ReferenceDocumentDao

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

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

create

public java.lang.Object create(int transform,
                               java.util.Collection authors,
                               java.util.Date creationDate,
                               java.lang.String reference,
                               Status status)
Description copied from interface: ReferenceDocumentDao

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

update

public void update(ReferenceDocument referenceDocument)
Description copied from interface: ReferenceDocumentDao
Updates the referenceDocument instance in the persistent store.

Specified by:
update in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.update(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

update

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

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

remove

public void remove(ReferenceDocument referenceDocument)
Description copied from interface: ReferenceDocumentDao
Removes the instance of fr.ifremer.allegro.referential.taxon.ReferenceDocument from the persistent store.

Specified by:
remove in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.remove(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

remove

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

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

remove

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

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

getAllReferenceDocument

public java.util.Collection getAllReferenceDocument()
Specified by:
getAllReferenceDocument in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.getAllReferenceDocument()

getAllReferenceDocument

public java.util.Collection getAllReferenceDocument(int transform)
Description copied from interface: ReferenceDocumentDao

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

getAllReferenceDocument

public java.util.Collection getAllReferenceDocument(java.lang.String queryString)
Description copied from interface: ReferenceDocumentDao

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

Specified by:
getAllReferenceDocument in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.getAllReferenceDocument(java.lang.String)

getAllReferenceDocument

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

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

getAllReferenceDocument

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

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

getAllReferenceDocument

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

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

Specified by:
getAllReferenceDocument in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.getAllReferenceDocument(int, String)

getAllReferenceDocument

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

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

getAllReferenceDocument

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

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

findReferenceDocumentById

public ReferenceDocument findReferenceDocumentById(java.lang.Integer id)
Specified by:
findReferenceDocumentById in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentById(java.lang.Integer)

findReferenceDocumentById

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

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

findReferenceDocumentById

public ReferenceDocument findReferenceDocumentById(java.lang.String queryString,
                                                   java.lang.Integer id)
Description copied from interface: ReferenceDocumentDao

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

Specified by:
findReferenceDocumentById in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentById(java.lang.String, java.lang.Integer)

findReferenceDocumentById

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

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

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

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(Status status)
Specified by:
findReferenceDocumentByStatus in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentByStatus(fr.ifremer.allegro.referential.Status)

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(int transform,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

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

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(java.lang.String queryString,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

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

Specified by:
findReferenceDocumentByStatus in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(int pageNumber,
                                                          int pageSize,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

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

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

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

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(int transform,
                                                          java.lang.String queryString,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

Does the same thing as ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ReferenceDocumentDao.findReferenceDocumentByStatus(int, fr.ifremer.allegro.referential.Status status).

Specified by:
findReferenceDocumentByStatus in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentByStatus(int, String, fr.ifremer.allegro.referential.Status)

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(int transform,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

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

findReferenceDocumentByStatus

public java.util.Collection findReferenceDocumentByStatus(int transform,
                                                          java.lang.String queryString,
                                                          int pageNumber,
                                                          int pageSize,
                                                          Status status)
Description copied from interface: ReferenceDocumentDao

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

findReferenceDocumentByNaturalId

public ReferenceDocument findReferenceDocumentByNaturalId(java.lang.Integer id)
Specified by:
findReferenceDocumentByNaturalId in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.Integer)

findReferenceDocumentByNaturalId

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

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

findReferenceDocumentByNaturalId

public ReferenceDocument findReferenceDocumentByNaturalId(java.lang.String queryString,
                                                          java.lang.Integer id)
Description copied from interface: ReferenceDocumentDao

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

Specified by:
findReferenceDocumentByNaturalId in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.findReferenceDocumentByNaturalId(java.lang.String, java.lang.Integer)

findReferenceDocumentByNaturalId

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

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

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

getAllReferenceDocumentSinceDateSynchro

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

getAllReferenceDocumentSinceDateSynchro

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

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

getAllReferenceDocumentSinceDateSynchro

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

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

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

getAllReferenceDocumentSinceDateSynchro

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

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

getAllReferenceDocumentSinceDateSynchro

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

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

getAllReferenceDocumentSinceDateSynchro

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

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

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

getAllReferenceDocumentSinceDateSynchro

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

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

getAllReferenceDocumentSinceDateSynchro

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

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

createFromClusterReferenceDocument

public ReferenceDocument createFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
Specified by:
createFromClusterReferenceDocument in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.createFromClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument)

handleCreateFromClusterReferenceDocument

protected abstract ReferenceDocument handleCreateFromClusterReferenceDocument(ClusterReferenceDocument clusterReferenceDocument)
                                                                       throws java.lang.Exception
Performs the core logic for createFromClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument)

Throws:
java.lang.Exception

getAllClusterReferenceDocumentSinceDateSynchro

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

handleGetAllClusterReferenceDocumentSinceDateSynchro

protected abstract ClusterReferenceDocument[] handleGetAllClusterReferenceDocumentSinceDateSynchro(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 getAllClusterReferenceDocumentSinceDateSynchro(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,
                                           ReferenceDocument 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.taxon.ReferenceDocumentDao, please note that the ReferenceDocumentDao.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 ReferenceDocumentDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteReferenceDocumentFullVOCollection

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

Specified by:
toRemoteReferenceDocumentFullVOCollection in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentFullVOCollection(java.util.Collection)

toRemoteReferenceDocumentFullVOArray

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

Specified by:
toRemoteReferenceDocumentFullVOArray in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentFullVOArray(java.util.Collection)

toRemoteReferenceDocumentFullVO

protected RemoteReferenceDocumentFullVO toRemoteReferenceDocumentFullVO(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 ReferenceDocumentDaoImpl class if you intend to use reporting queries.

See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentFullVO(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

remoteReferenceDocumentFullVOToEntityCollection

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

Specified by:
remoteReferenceDocumentFullVOToEntityCollection in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.remoteReferenceDocumentFullVOToEntityCollection(java.util.Collection)

toRemoteReferenceDocumentFullVO

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

toRemoteReferenceDocumentFullVO

public RemoteReferenceDocumentFullVO toRemoteReferenceDocumentFullVO(ReferenceDocument entity)
Description copied from interface: ReferenceDocumentDao
Converts this DAO's entity to an object of type RemoteReferenceDocumentFullVO.

Specified by:
toRemoteReferenceDocumentFullVO in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentFullVO(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

remoteReferenceDocumentFullVOToEntity

public void remoteReferenceDocumentFullVOToEntity(RemoteReferenceDocumentFullVO source,
                                                  ReferenceDocument target,
                                                  boolean copyIfNull)
Description copied from interface: ReferenceDocumentDao
Copies the fields of RemoteReferenceDocumentFullVO to the specified entity.

Specified by:
remoteReferenceDocumentFullVOToEntity in interface ReferenceDocumentDao
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.taxon.ReferenceDocumentDao#remoteReferenceDocumentFullVOToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceDocumentFullVO, fr.ifremer.allegro.referential.taxon.ReferenceDocument)

toRemoteReferenceDocumentNaturalIdCollection

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

Specified by:
toRemoteReferenceDocumentNaturalIdCollection in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalIdCollection(java.util.Collection)

toRemoteReferenceDocumentNaturalIdArray

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

Specified by:
toRemoteReferenceDocumentNaturalIdArray in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalIdArray(java.util.Collection)

toRemoteReferenceDocumentNaturalId

protected RemoteReferenceDocumentNaturalId toRemoteReferenceDocumentNaturalId(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 ReferenceDocumentDaoImpl class if you intend to use reporting queries.

See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

remoteReferenceDocumentNaturalIdToEntityCollection

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

Specified by:
remoteReferenceDocumentNaturalIdToEntityCollection in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.remoteReferenceDocumentNaturalIdToEntityCollection(java.util.Collection)

toRemoteReferenceDocumentNaturalId

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

toRemoteReferenceDocumentNaturalId

public RemoteReferenceDocumentNaturalId toRemoteReferenceDocumentNaturalId(ReferenceDocument entity)
Description copied from interface: ReferenceDocumentDao
Converts this DAO's entity to an object of type RemoteReferenceDocumentNaturalId.

Specified by:
toRemoteReferenceDocumentNaturalId in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toRemoteReferenceDocumentNaturalId(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

remoteReferenceDocumentNaturalIdToEntity

public void remoteReferenceDocumentNaturalIdToEntity(RemoteReferenceDocumentNaturalId source,
                                                     ReferenceDocument target,
                                                     boolean copyIfNull)
Description copied from interface: ReferenceDocumentDao
Copies the fields of RemoteReferenceDocumentNaturalId to the specified entity.

Specified by:
remoteReferenceDocumentNaturalIdToEntity in interface ReferenceDocumentDao
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.taxon.ReferenceDocumentDao#remoteReferenceDocumentNaturalIdToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteReferenceDocumentNaturalId, fr.ifremer.allegro.referential.taxon.ReferenceDocument)

toClusterReferenceDocumentCollection

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

Specified by:
toClusterReferenceDocumentCollection in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toClusterReferenceDocumentCollection(java.util.Collection)

toClusterReferenceDocumentArray

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

Specified by:
toClusterReferenceDocumentArray in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toClusterReferenceDocumentArray(java.util.Collection)

toClusterReferenceDocument

protected ClusterReferenceDocument toClusterReferenceDocument(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 ReferenceDocumentDaoImpl class if you intend to use reporting queries.

See Also:
ReferenceDocumentDao.toClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

clusterReferenceDocumentToEntityCollection

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

Specified by:
clusterReferenceDocumentToEntityCollection in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.clusterReferenceDocumentToEntityCollection(java.util.Collection)

toClusterReferenceDocument

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

toClusterReferenceDocument

public ClusterReferenceDocument toClusterReferenceDocument(ReferenceDocument entity)
Description copied from interface: ReferenceDocumentDao
Converts this DAO's entity to an object of type ClusterReferenceDocument.

Specified by:
toClusterReferenceDocument in interface ReferenceDocumentDao
See Also:
ReferenceDocumentDao.toClusterReferenceDocument(fr.ifremer.allegro.referential.taxon.ReferenceDocument)

clusterReferenceDocumentToEntity

public void clusterReferenceDocumentToEntity(ClusterReferenceDocument source,
                                             ReferenceDocument target,
                                             boolean copyIfNull)
Description copied from interface: ReferenceDocumentDao
Copies the fields of ClusterReferenceDocument to the specified entity.

Specified by:
clusterReferenceDocumentToEntity in interface ReferenceDocumentDao
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.taxon.ReferenceDocumentDao#clusterReferenceDocumentToEntity(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterReferenceDocument, fr.ifremer.allegro.referential.taxon.ReferenceDocument)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.