fr.ifremer.allegro.referential.metier
Class MetierDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.metier.MetierDaoBase
All Implemented Interfaces:
MetierDao
Direct Known Subclasses:
MetierDaoImpl

public abstract class MetierDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements MetierDao

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

See Also:
Metier

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.metier.MetierDao
TRANSFORM_CLUSTERMETIER, TRANSFORM_NONE, TRANSFORM_REMOTEMETIERFULLVO, TRANSFORM_REMOTEMETIERNATURALID
 
Constructor Summary
MetierDaoBase()
           
 
Method Summary
 void clusterMetierToEntity(ClusterMetier source, Metier target, boolean copyIfNull)
          Copies the fields of ClusterMetier to the specified entity.
 void clusterMetierToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterMetier to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.metier.Metier and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as MetierDao.create(fr.ifremer.allegro.referential.metier.Metier) with an additional flag called transform.
 java.lang.Object create(int transform, Metier metier)
           Does the same thing as MetierDao.create(fr.ifremer.allegro.referential.metier.Metier) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, Status status)
           Does the same thing as MetierDao.create(java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String label, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, Status status)
           Does the same thing as MetierDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 Metier create(Metier metier)
          Creates an instance of fr.ifremer.allegro.referential.metier.Metier and adds it to the persistent store.
 Metier create(java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.metier.Metier instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Metier create(java.lang.String label, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.referential.metier.Metier instance from all attributes and properties and adds it to the persistent store.
 Metier createFromClusterMetier(ClusterMetier clusterMetier)
           
 Metier findMetierById(java.lang.Integer id)
           
 java.lang.Object findMetierById(int transform, java.lang.Integer id)
           Does the same thing as MetierDao.findMetierById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findMetierById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MetierDao.findMetierById(int, java.lang.Integer) with an additional argument called queryString.
 Metier findMetierById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MetierDao.findMetierById(java.lang.Integer) with an additional argument called queryString.
 Metier findMetierByNaturalId(java.lang.Integer id)
           
 java.lang.Object findMetierByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as MetierDao.findMetierByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findMetierByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MetierDao.findMetierByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Metier findMetierByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MetierDao.findMetierByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findMetierByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMetierByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMetierByStatus(int transform, Status status)
           Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findMetierByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as MetierDao.findMetierByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMetierByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as MetierDao.findMetierByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findMetierByStatus(Status status)
           
 java.util.Collection findMetierByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as MetierDao.findMetierByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMetierByStatus(java.lang.String queryString, Status status)
           Does the same thing as MetierDao.findMetierByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterMetier[] getAllClusterMetierSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllMetier()
           
 java.util.Collection getAllMetier(int transform)
           Does the same thing as MetierDao.getAllMetier() with an additional flag called transform.
 java.util.Collection getAllMetier(int pageNumber, int pageSize)
           Does the same thing as MetierDao.getAllMetier() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetier(int transform, int pageNumber, int pageSize)
           Does the same thing as MetierDao.getAllMetier(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetier(int transform, java.lang.String queryString)
           Does the same thing as MetierDao.getAllMetier(int) with an additional argument called queryString.
 java.util.Collection getAllMetier(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as MetierDao.getAllMetier(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetier(java.lang.String queryString)
           Does the same thing as MetierDao.getAllMetier() with an additional argument called queryString.
 java.util.Collection getAllMetier(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as MetierDao.getAllMetier(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetierSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetierSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetierSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetierSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMetierSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllMetierSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMetierSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as MetierDao.getAllMetierSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMetierSinceDateSynchro(java.sql.Timestamp updateDate)
           
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 abstract  Metier handleCreateFromClusterMetier(ClusterMetier clusterMetier)
          Performs the core logic for createFromClusterMetier(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier)
protected abstract  ClusterMetier[] handleGetAllClusterMetierSinceDateSynchro(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 getAllClusterMetierSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Metier load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.metier.Metier from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as MetierDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Metier.
 java.util.Collection loadAll(int transform)
           Does the same thing as MetierDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as MetierDao.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 MetierDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteMetierFullVOToEntity(RemoteMetierFullVO source, Metier target, boolean copyIfNull)
          Copies the fields of RemoteMetierFullVO to the specified entity.
 void remoteMetierFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteMetierFullVO to this DAO's entity.
 void remoteMetierNaturalIdToEntity(RemoteMetierNaturalId source, Metier target, boolean copyIfNull)
          Copies the fields of RemoteMetierNaturalId to the specified entity.
 void remoteMetierNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteMetierNaturalId 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.metier.Metier having the given identifier from the persistent store.
 void remove(Metier metier)
          Removes the instance of fr.ifremer.allegro.referential.metier.Metier 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 MetierDao.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 setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterMetier toClusterMetier(Metier entity)
          Converts this DAO's entity to an object of type ClusterMetier.
 void toClusterMetier(Metier source, ClusterMetier target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterMetier toClusterMetier(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterMetier[] toClusterMetierArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterMetier.
 void toClusterMetierCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterMetier.
protected  Metier toEntity(java.lang.Object[] row)
           
 RemoteMetierFullVO toRemoteMetierFullVO(Metier entity)
          Converts this DAO's entity to an object of type RemoteMetierFullVO.
 void toRemoteMetierFullVO(Metier source, RemoteMetierFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteMetierFullVO toRemoteMetierFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteMetierFullVO[] toRemoteMetierFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteMetierFullVO.
 void toRemoteMetierFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteMetierFullVO.
 RemoteMetierNaturalId toRemoteMetierNaturalId(Metier entity)
          Converts this DAO's entity to an object of type RemoteMetierNaturalId.
 void toRemoteMetierNaturalId(Metier source, RemoteMetierNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteMetierNaturalId toRemoteMetierNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteMetierNaturalId[] toRemoteMetierNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteMetierNaturalId.
 void toRemoteMetierNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteMetierNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.metier.Metier) method.
protected  java.lang.Object transformEntity(int transform, Metier 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.metier.MetierDao, please note that the MetierDao.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(Metier metier)
          Updates the metier 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.metier.MetierDao
clusterMetierToEntity, remoteMetierFullVOToEntity, remoteMetierNaturalIdToEntity
 

Constructor Detail

MetierDaoBase

public MetierDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public Metier create(Metier metier)
Description copied from interface: MetierDao
Creates an instance of fr.ifremer.allegro.referential.metier.Metier and adds it to the persistent store.

Specified by:
create in interface MetierDao
See Also:
MetierDao.create(fr.ifremer.allegro.referential.metier.Metier)

create

public java.lang.Object create(int transform,
                               Metier metier)
Description copied from interface: MetierDao

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

create

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

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

create

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

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

create

public Metier create(java.lang.String label,
                     java.lang.String name,
                     java.lang.String description,
                     java.sql.Timestamp updateDate,
                     Status status)
Description copied from interface: MetierDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String label,
                               java.lang.String name,
                               java.lang.String description,
                               java.sql.Timestamp updateDate,
                               Status status)
Description copied from interface: MetierDao

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

create

public Metier create(java.lang.String name,
                     Status status)
Description copied from interface: MetierDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               Status status)
Description copied from interface: MetierDao

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

update

public void update(Metier metier)
Description copied from interface: MetierDao
Updates the metier instance in the persistent store.

Specified by:
update in interface MetierDao
See Also:
MetierDao.update(fr.ifremer.allegro.referential.metier.Metier)

update

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

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

remove

public void remove(Metier metier)
Description copied from interface: MetierDao
Removes the instance of fr.ifremer.allegro.referential.metier.Metier from the persistent store.

Specified by:
remove in interface MetierDao
See Also:
MetierDao.remove(fr.ifremer.allegro.referential.metier.Metier)

remove

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

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

remove

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

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

getAllMetier

public java.util.Collection getAllMetier()
Specified by:
getAllMetier in interface MetierDao
See Also:
MetierDao.getAllMetier()

getAllMetier

public java.util.Collection getAllMetier(int transform)
Description copied from interface: MetierDao

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

getAllMetier

public java.util.Collection getAllMetier(java.lang.String queryString)
Description copied from interface: MetierDao

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

Specified by:
getAllMetier in interface MetierDao
See Also:
MetierDao.getAllMetier(java.lang.String)

getAllMetier

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

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

getAllMetier

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

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

getAllMetier

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

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

Specified by:
getAllMetier in interface MetierDao
See Also:
MetierDao.getAllMetier(int, String)

getAllMetier

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

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

getAllMetier

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

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

findMetierById

public Metier findMetierById(java.lang.Integer id)
Specified by:
findMetierById in interface MetierDao
See Also:
MetierDao.findMetierById(java.lang.Integer)

findMetierById

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

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

findMetierById

public Metier findMetierById(java.lang.String queryString,
                             java.lang.Integer id)
Description copied from interface: MetierDao

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

Specified by:
findMetierById in interface MetierDao
See Also:
MetierDao.findMetierById(java.lang.String, java.lang.Integer)

findMetierById

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

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

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

findMetierByStatus

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

findMetierByStatus

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

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

findMetierByStatus

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

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

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

findMetierByStatus

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

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

findMetierByStatus

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

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

findMetierByStatus

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

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

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

findMetierByStatus

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

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

findMetierByStatus

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

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

findMetierByNaturalId

public Metier findMetierByNaturalId(java.lang.Integer id)
Specified by:
findMetierByNaturalId in interface MetierDao
See Also:
MetierDao.findMetierByNaturalId(java.lang.Integer)

findMetierByNaturalId

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

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

findMetierByNaturalId

public Metier findMetierByNaturalId(java.lang.String queryString,
                                    java.lang.Integer id)
Description copied from interface: MetierDao

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

Specified by:
findMetierByNaturalId in interface MetierDao
See Also:
MetierDao.findMetierByNaturalId(java.lang.String, java.lang.Integer)

findMetierByNaturalId

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

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

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

getAllMetierSinceDateSynchro

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

getAllMetierSinceDateSynchro

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

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

getAllMetierSinceDateSynchro

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

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

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

getAllMetierSinceDateSynchro

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

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

getAllMetierSinceDateSynchro

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

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

getAllMetierSinceDateSynchro

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

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

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

getAllMetierSinceDateSynchro

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

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

getAllMetierSinceDateSynchro

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

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

createFromClusterMetier

public Metier createFromClusterMetier(ClusterMetier clusterMetier)
Specified by:
createFromClusterMetier in interface MetierDao
See Also:
MetierDao.createFromClusterMetier(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier)

handleCreateFromClusterMetier

protected abstract Metier handleCreateFromClusterMetier(ClusterMetier clusterMetier)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterMetier(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier)

Throws:
java.lang.Exception

getAllClusterMetierSinceDateSynchro

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

handleGetAllClusterMetierSinceDateSynchro

protected abstract ClusterMetier[] handleGetAllClusterMetierSinceDateSynchro(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 getAllClusterMetierSinceDateSynchro(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,
                                           Metier 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.metier.MetierDao, please note that the MetierDao.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 MetierDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteMetierFullVOCollection

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

Specified by:
toRemoteMetierFullVOCollection in interface MetierDao
See Also:
MetierDao.toRemoteMetierFullVOCollection(java.util.Collection)

toRemoteMetierFullVOArray

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

Specified by:
toRemoteMetierFullVOArray in interface MetierDao
See Also:
MetierDao.toRemoteMetierFullVOArray(java.util.Collection)

toRemoteMetierFullVO

protected RemoteMetierFullVO toRemoteMetierFullVO(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 MetierDaoImpl class if you intend to use reporting queries.

See Also:
MetierDao.toRemoteMetierFullVO(fr.ifremer.allegro.referential.metier.Metier)

remoteMetierFullVOToEntityCollection

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

Specified by:
remoteMetierFullVOToEntityCollection in interface MetierDao
See Also:
MetierDao.remoteMetierFullVOToEntityCollection(java.util.Collection)

toRemoteMetierFullVO

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

toRemoteMetierFullVO

public RemoteMetierFullVO toRemoteMetierFullVO(Metier entity)
Description copied from interface: MetierDao
Converts this DAO's entity to an object of type RemoteMetierFullVO.

Specified by:
toRemoteMetierFullVO in interface MetierDao
See Also:
MetierDao.toRemoteMetierFullVO(fr.ifremer.allegro.referential.metier.Metier)

remoteMetierFullVOToEntity

public void remoteMetierFullVOToEntity(RemoteMetierFullVO source,
                                       Metier target,
                                       boolean copyIfNull)
Description copied from interface: MetierDao
Copies the fields of RemoteMetierFullVO to the specified entity.

Specified by:
remoteMetierFullVOToEntity in interface MetierDao
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.metier.MetierDao#remoteMetierFullVOToEntity(fr.ifremer.allegro.referential.metier.generic.vo.RemoteMetierFullVO, fr.ifremer.allegro.referential.metier.Metier)

toRemoteMetierNaturalIdCollection

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

Specified by:
toRemoteMetierNaturalIdCollection in interface MetierDao
See Also:
MetierDao.toRemoteMetierNaturalIdCollection(java.util.Collection)

toRemoteMetierNaturalIdArray

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

Specified by:
toRemoteMetierNaturalIdArray in interface MetierDao
See Also:
MetierDao.toRemoteMetierNaturalIdArray(java.util.Collection)

toRemoteMetierNaturalId

protected RemoteMetierNaturalId toRemoteMetierNaturalId(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 MetierDaoImpl class if you intend to use reporting queries.

See Also:
MetierDao.toRemoteMetierNaturalId(fr.ifremer.allegro.referential.metier.Metier)

remoteMetierNaturalIdToEntityCollection

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

Specified by:
remoteMetierNaturalIdToEntityCollection in interface MetierDao
See Also:
MetierDao.remoteMetierNaturalIdToEntityCollection(java.util.Collection)

toRemoteMetierNaturalId

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

toRemoteMetierNaturalId

public RemoteMetierNaturalId toRemoteMetierNaturalId(Metier entity)
Description copied from interface: MetierDao
Converts this DAO's entity to an object of type RemoteMetierNaturalId.

Specified by:
toRemoteMetierNaturalId in interface MetierDao
See Also:
MetierDao.toRemoteMetierNaturalId(fr.ifremer.allegro.referential.metier.Metier)

remoteMetierNaturalIdToEntity

public void remoteMetierNaturalIdToEntity(RemoteMetierNaturalId source,
                                          Metier target,
                                          boolean copyIfNull)
Description copied from interface: MetierDao
Copies the fields of RemoteMetierNaturalId to the specified entity.

Specified by:
remoteMetierNaturalIdToEntity in interface MetierDao
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.metier.MetierDao#remoteMetierNaturalIdToEntity(fr.ifremer.allegro.referential.metier.generic.vo.RemoteMetierNaturalId, fr.ifremer.allegro.referential.metier.Metier)

toClusterMetierCollection

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

Specified by:
toClusterMetierCollection in interface MetierDao
See Also:
MetierDao.toClusterMetierCollection(java.util.Collection)

toClusterMetierArray

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

Specified by:
toClusterMetierArray in interface MetierDao
See Also:
MetierDao.toClusterMetierArray(java.util.Collection)

toClusterMetier

protected ClusterMetier toClusterMetier(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 MetierDaoImpl class if you intend to use reporting queries.

See Also:
MetierDao.toClusterMetier(fr.ifremer.allegro.referential.metier.Metier)

clusterMetierToEntityCollection

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

Specified by:
clusterMetierToEntityCollection in interface MetierDao
See Also:
MetierDao.clusterMetierToEntityCollection(java.util.Collection)

toClusterMetier

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

toClusterMetier

public ClusterMetier toClusterMetier(Metier entity)
Description copied from interface: MetierDao
Converts this DAO's entity to an object of type ClusterMetier.

Specified by:
toClusterMetier in interface MetierDao
See Also:
MetierDao.toClusterMetier(fr.ifremer.allegro.referential.metier.Metier)

clusterMetierToEntity

public void clusterMetierToEntity(ClusterMetier source,
                                  Metier target,
                                  boolean copyIfNull)
Description copied from interface: MetierDao
Copies the fields of ClusterMetier to the specified entity.

Specified by:
clusterMetierToEntity in interface MetierDao
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.metier.MetierDao#clusterMetierToEntity(fr.ifremer.allegro.referential.metier.generic.cluster.ClusterMetier, fr.ifremer.allegro.referential.metier.Metier)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.