fr.ifremer.allegro.referential.taxon
Class AuthorDaoBase

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

public abstract class AuthorDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements AuthorDao

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

See Also:
Author

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.taxon.AuthorDao
TRANSFORM_CLUSTERAUTHOR, TRANSFORM_NONE, TRANSFORM_REMOTEAUTHORFULLVO, TRANSFORM_REMOTEAUTHORNATURALID
 
Constructor Summary
AuthorDaoBase()
           
 
Method Summary
 void clusterAuthorToEntity(ClusterAuthor source, Author target, boolean copyIfNull)
          Copies the fields of ClusterAuthor to the specified entity.
 void clusterAuthorToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterAuthor to this DAO's entity.
 Author create(Author author)
          Creates an instance of fr.ifremer.allegro.referential.taxon.Author and adds it to the persistent store.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.taxon.Author and adds from the passed in entities collection
 Author create(java.util.Date creationDate, Status status)
           Creates a new fr.ifremer.allegro.referential.taxon.Author instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.lang.Object create(int transform, Author author)
           Does the same thing as AuthorDao.create(fr.ifremer.allegro.referential.taxon.Author) with an additional flag called transform.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as AuthorDao.create(fr.ifremer.allegro.referential.taxon.Author) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date creationDate, Status status)
           Does the same thing as AuthorDao.create(java.util.Date,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String location, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, Status status, java.util.Collection referenceDocuments)
           Does the same thing as AuthorDao.create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,fr.ifremer.allegro.referential.Status,java.util.Collection) with an additional flag called transform.
 Author create(java.lang.String name, java.lang.String location, java.lang.String comments, java.util.Date creationDate, java.sql.Timestamp updateDate, Status status, java.util.Collection referenceDocuments)
           Creates a new fr.ifremer.allegro.referential.taxon.Author instance from all attributes and properties and adds it to the persistent store.
 Author createFromClusterAuthor(ClusterAuthor clusterAuthor)
           
 Author findAuthorById(java.lang.Integer id)
           
 java.lang.Object findAuthorById(int transform, java.lang.Integer id)
           Does the same thing as AuthorDao.findAuthorById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findAuthorById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AuthorDao.findAuthorById(int, java.lang.Integer) with an additional argument called queryString.
 Author findAuthorById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AuthorDao.findAuthorById(java.lang.Integer) with an additional argument called queryString.
 Author findAuthorByNaturalId(java.lang.Integer id)
           
 java.lang.Object findAuthorByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as AuthorDao.findAuthorByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findAuthorByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AuthorDao.findAuthorByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Author findAuthorByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as AuthorDao.findAuthorByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findAuthorByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAuthorByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAuthorByStatus(int transform, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findAuthorByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAuthorByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findAuthorByStatus(Status status)
           
 java.util.Collection findAuthorByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findAuthorByStatus(java.lang.String queryString, Status status)
           Does the same thing as AuthorDao.findAuthorByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection getAllAuthor()
           
 java.util.Collection getAllAuthor(int transform)
           Does the same thing as AuthorDao.getAllAuthor() with an additional flag called transform.
 java.util.Collection getAllAuthor(int pageNumber, int pageSize)
           Does the same thing as AuthorDao.getAllAuthor() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthor(int transform, int pageNumber, int pageSize)
           Does the same thing as AuthorDao.getAllAuthor(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthor(int transform, java.lang.String queryString)
           Does the same thing as AuthorDao.getAllAuthor(int) with an additional argument called queryString.
 java.util.Collection getAllAuthor(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as AuthorDao.getAllAuthor(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthor(java.lang.String queryString)
           Does the same thing as AuthorDao.getAllAuthor() with an additional argument called queryString.
 java.util.Collection getAllAuthor(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as AuthorDao.getAllAuthor(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthorSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthorSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthorSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthorSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllAuthorSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllAuthorSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllAuthorSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as AuthorDao.getAllAuthorSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllAuthorSinceDateSynchro(java.sql.Timestamp updateDate)
           
 ClusterAuthor[] getAllClusterAuthorSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  ReferenceDocumentDao getReferenceDocumentDao()
          Gets the reference to referenceDocumentDao.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  Author handleCreateFromClusterAuthor(ClusterAuthor clusterAuthor)
          Performs the core logic for createFromClusterAuthor(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterAuthor)
protected abstract  ClusterAuthor[] handleGetAllClusterAuthorSinceDateSynchro(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 getAllClusterAuthorSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Author load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.taxon.Author from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as AuthorDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Author.
 java.util.Collection loadAll(int transform)
           Does the same thing as AuthorDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as AuthorDao.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 AuthorDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteAuthorFullVOToEntity(RemoteAuthorFullVO source, Author target, boolean copyIfNull)
          Copies the fields of RemoteAuthorFullVO to the specified entity.
 void remoteAuthorFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteAuthorFullVO to this DAO's entity.
 void remoteAuthorNaturalIdToEntity(RemoteAuthorNaturalId source, Author target, boolean copyIfNull)
          Copies the fields of RemoteAuthorNaturalId to the specified entity.
 void remoteAuthorNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteAuthorNaturalId to this DAO's entity.
 void remove(Author author)
          Removes the instance of fr.ifremer.allegro.referential.taxon.Author from the persistent store.
 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.Author 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 AuthorDao.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 setReferenceDocumentDao(ReferenceDocumentDao referenceDocumentDao)
          Sets the reference to referenceDocumentDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterAuthor toClusterAuthor(Author entity)
          Converts this DAO's entity to an object of type ClusterAuthor.
 void toClusterAuthor(Author source, ClusterAuthor target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterAuthor toClusterAuthor(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterAuthor[] toClusterAuthorArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterAuthor.
 void toClusterAuthorCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterAuthor.
protected  Author toEntity(java.lang.Object[] row)
           
 RemoteAuthorFullVO toRemoteAuthorFullVO(Author entity)
          Converts this DAO's entity to an object of type RemoteAuthorFullVO.
 void toRemoteAuthorFullVO(Author source, RemoteAuthorFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteAuthorFullVO toRemoteAuthorFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteAuthorFullVO[] toRemoteAuthorFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteAuthorFullVO.
 void toRemoteAuthorFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteAuthorFullVO.
 RemoteAuthorNaturalId toRemoteAuthorNaturalId(Author entity)
          Converts this DAO's entity to an object of type RemoteAuthorNaturalId.
 void toRemoteAuthorNaturalId(Author source, RemoteAuthorNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteAuthorNaturalId toRemoteAuthorNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteAuthorNaturalId[] toRemoteAuthorNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteAuthorNaturalId.
 void toRemoteAuthorNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteAuthorNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.taxon.Author) method.
protected  java.lang.Object transformEntity(int transform, Author 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.AuthorDao, please note that the AuthorDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(Author author)
          Updates the author instance in the persistent store.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection 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.AuthorDao
clusterAuthorToEntity, remoteAuthorFullVOToEntity, remoteAuthorNaturalIdToEntity
 

Constructor Detail

AuthorDaoBase

public AuthorDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setReferenceDocumentDao

public void setReferenceDocumentDao(ReferenceDocumentDao referenceDocumentDao)
Sets the reference to referenceDocumentDao.


getReferenceDocumentDao

protected ReferenceDocumentDao getReferenceDocumentDao()
Gets the reference to referenceDocumentDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               Author author)
Description copied from interface: AuthorDao

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

create

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

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

create

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

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

create

public Author create(java.lang.String name,
                     java.lang.String location,
                     java.lang.String comments,
                     java.util.Date creationDate,
                     java.sql.Timestamp updateDate,
                     Status status,
                     java.util.Collection referenceDocuments)
Description copied from interface: AuthorDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String location,
                               java.lang.String comments,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               Status status,
                               java.util.Collection referenceDocuments)
Description copied from interface: AuthorDao

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

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

create

public Author create(java.util.Date creationDate,
                     Status status)
Description copied from interface: AuthorDao

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

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

create

public java.lang.Object create(int transform,
                               java.util.Date creationDate,
                               Status status)
Description copied from interface: AuthorDao

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

update

public void update(Author author)
Description copied from interface: AuthorDao
Updates the author instance in the persistent store.

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

update

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

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

remove

public void remove(Author author)
Description copied from interface: AuthorDao
Removes the instance of fr.ifremer.allegro.referential.taxon.Author from the persistent store.

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

remove

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

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

remove

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

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

getAllAuthor

public java.util.Collection getAllAuthor()
Specified by:
getAllAuthor in interface AuthorDao
See Also:
AuthorDao.getAllAuthor()

getAllAuthor

public java.util.Collection getAllAuthor(int transform)
Description copied from interface: AuthorDao

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

getAllAuthor

public java.util.Collection getAllAuthor(java.lang.String queryString)
Description copied from interface: AuthorDao

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

Specified by:
getAllAuthor in interface AuthorDao
See Also:
AuthorDao.getAllAuthor(java.lang.String)

getAllAuthor

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

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

getAllAuthor

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

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

getAllAuthor

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

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

Specified by:
getAllAuthor in interface AuthorDao
See Also:
AuthorDao.getAllAuthor(int, String)

getAllAuthor

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

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

getAllAuthor

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

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

findAuthorById

public Author findAuthorById(java.lang.Integer id)
Specified by:
findAuthorById in interface AuthorDao
See Also:
AuthorDao.findAuthorById(java.lang.Integer)

findAuthorById

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

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

findAuthorById

public Author findAuthorById(java.lang.String queryString,
                             java.lang.Integer id)
Description copied from interface: AuthorDao

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

Specified by:
findAuthorById in interface AuthorDao
See Also:
AuthorDao.findAuthorById(java.lang.String, java.lang.Integer)

findAuthorById

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

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

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

findAuthorByStatus

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

findAuthorByStatus

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

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

findAuthorByStatus

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

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

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

findAuthorByStatus

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

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

findAuthorByStatus

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

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

findAuthorByStatus

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

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

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

findAuthorByStatus

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

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

findAuthorByStatus

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

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

findAuthorByNaturalId

public Author findAuthorByNaturalId(java.lang.Integer id)
Specified by:
findAuthorByNaturalId in interface AuthorDao
See Also:
AuthorDao.findAuthorByNaturalId(java.lang.Integer)

findAuthorByNaturalId

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

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

findAuthorByNaturalId

public Author findAuthorByNaturalId(java.lang.String queryString,
                                    java.lang.Integer id)
Description copied from interface: AuthorDao

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

Specified by:
findAuthorByNaturalId in interface AuthorDao
See Also:
AuthorDao.findAuthorByNaturalId(java.lang.String, java.lang.Integer)

findAuthorByNaturalId

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

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

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

getAllAuthorSinceDateSynchro

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

getAllAuthorSinceDateSynchro

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

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

getAllAuthorSinceDateSynchro

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

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

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

getAllAuthorSinceDateSynchro

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

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

getAllAuthorSinceDateSynchro

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

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

getAllAuthorSinceDateSynchro

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

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

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

getAllAuthorSinceDateSynchro

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

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

getAllAuthorSinceDateSynchro

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

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

createFromClusterAuthor

public Author createFromClusterAuthor(ClusterAuthor clusterAuthor)
Specified by:
createFromClusterAuthor in interface AuthorDao
See Also:
AuthorDao.createFromClusterAuthor(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterAuthor)

handleCreateFromClusterAuthor

protected abstract Author handleCreateFromClusterAuthor(ClusterAuthor clusterAuthor)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterAuthor(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterAuthor)

Throws:
java.lang.Exception

getAllClusterAuthorSinceDateSynchro

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

handleGetAllClusterAuthorSinceDateSynchro

protected abstract ClusterAuthor[] handleGetAllClusterAuthorSinceDateSynchro(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 getAllClusterAuthorSinceDateSynchro(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,
                                           Author 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.AuthorDao, please note that the AuthorDao.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 AuthorDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteAuthorFullVOCollection

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

Specified by:
toRemoteAuthorFullVOCollection in interface AuthorDao
See Also:
AuthorDao.toRemoteAuthorFullVOCollection(java.util.Collection)

toRemoteAuthorFullVOArray

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

Specified by:
toRemoteAuthorFullVOArray in interface AuthorDao
See Also:
AuthorDao.toRemoteAuthorFullVOArray(java.util.Collection)

toRemoteAuthorFullVO

protected RemoteAuthorFullVO toRemoteAuthorFullVO(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 AuthorDaoImpl class if you intend to use reporting queries.

See Also:
AuthorDao.toRemoteAuthorFullVO(fr.ifremer.allegro.referential.taxon.Author)

remoteAuthorFullVOToEntityCollection

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

Specified by:
remoteAuthorFullVOToEntityCollection in interface AuthorDao
See Also:
AuthorDao.remoteAuthorFullVOToEntityCollection(java.util.Collection)

toRemoteAuthorFullVO

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

toRemoteAuthorFullVO

public RemoteAuthorFullVO toRemoteAuthorFullVO(Author entity)
Description copied from interface: AuthorDao
Converts this DAO's entity to an object of type RemoteAuthorFullVO.

Specified by:
toRemoteAuthorFullVO in interface AuthorDao
See Also:
AuthorDao.toRemoteAuthorFullVO(fr.ifremer.allegro.referential.taxon.Author)

remoteAuthorFullVOToEntity

public void remoteAuthorFullVOToEntity(RemoteAuthorFullVO source,
                                       Author target,
                                       boolean copyIfNull)
Description copied from interface: AuthorDao
Copies the fields of RemoteAuthorFullVO to the specified entity.

Specified by:
remoteAuthorFullVOToEntity in interface AuthorDao
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.AuthorDao#remoteAuthorFullVOToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteAuthorFullVO, fr.ifremer.allegro.referential.taxon.Author)

toRemoteAuthorNaturalIdCollection

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

Specified by:
toRemoteAuthorNaturalIdCollection in interface AuthorDao
See Also:
AuthorDao.toRemoteAuthorNaturalIdCollection(java.util.Collection)

toRemoteAuthorNaturalIdArray

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

Specified by:
toRemoteAuthorNaturalIdArray in interface AuthorDao
See Also:
AuthorDao.toRemoteAuthorNaturalIdArray(java.util.Collection)

toRemoteAuthorNaturalId

protected RemoteAuthorNaturalId toRemoteAuthorNaturalId(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 AuthorDaoImpl class if you intend to use reporting queries.

See Also:
AuthorDao.toRemoteAuthorNaturalId(fr.ifremer.allegro.referential.taxon.Author)

remoteAuthorNaturalIdToEntityCollection

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

Specified by:
remoteAuthorNaturalIdToEntityCollection in interface AuthorDao
See Also:
AuthorDao.remoteAuthorNaturalIdToEntityCollection(java.util.Collection)

toRemoteAuthorNaturalId

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

toRemoteAuthorNaturalId

public RemoteAuthorNaturalId toRemoteAuthorNaturalId(Author entity)
Description copied from interface: AuthorDao
Converts this DAO's entity to an object of type RemoteAuthorNaturalId.

Specified by:
toRemoteAuthorNaturalId in interface AuthorDao
See Also:
AuthorDao.toRemoteAuthorNaturalId(fr.ifremer.allegro.referential.taxon.Author)

remoteAuthorNaturalIdToEntity

public void remoteAuthorNaturalIdToEntity(RemoteAuthorNaturalId source,
                                          Author target,
                                          boolean copyIfNull)
Description copied from interface: AuthorDao
Copies the fields of RemoteAuthorNaturalId to the specified entity.

Specified by:
remoteAuthorNaturalIdToEntity in interface AuthorDao
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.AuthorDao#remoteAuthorNaturalIdToEntity(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteAuthorNaturalId, fr.ifremer.allegro.referential.taxon.Author)

toClusterAuthorCollection

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

Specified by:
toClusterAuthorCollection in interface AuthorDao
See Also:
AuthorDao.toClusterAuthorCollection(java.util.Collection)

toClusterAuthorArray

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

Specified by:
toClusterAuthorArray in interface AuthorDao
See Also:
AuthorDao.toClusterAuthorArray(java.util.Collection)

toClusterAuthor

protected ClusterAuthor toClusterAuthor(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 AuthorDaoImpl class if you intend to use reporting queries.

See Also:
AuthorDao.toClusterAuthor(fr.ifremer.allegro.referential.taxon.Author)

clusterAuthorToEntityCollection

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

Specified by:
clusterAuthorToEntityCollection in interface AuthorDao
See Also:
AuthorDao.clusterAuthorToEntityCollection(java.util.Collection)

toClusterAuthor

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

toClusterAuthor

public ClusterAuthor toClusterAuthor(Author entity)
Description copied from interface: AuthorDao
Converts this DAO's entity to an object of type ClusterAuthor.

Specified by:
toClusterAuthor in interface AuthorDao
See Also:
AuthorDao.toClusterAuthor(fr.ifremer.allegro.referential.taxon.Author)

clusterAuthorToEntity

public void clusterAuthorToEntity(ClusterAuthor source,
                                  Author target,
                                  boolean copyIfNull)
Description copied from interface: AuthorDao
Copies the fields of ClusterAuthor to the specified entity.

Specified by:
clusterAuthorToEntity in interface AuthorDao
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.AuthorDao#clusterAuthorToEntity(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterAuthor, fr.ifremer.allegro.referential.taxon.Author)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.