fr.ifremer.allegro.referential.metier
Interface MetierDao

All Known Subinterfaces:
FishingMetierDao
All Known Implementing Classes:
FishingMetierDaoBase, FishingMetierDaoImpl, MetierDaoBase, MetierDaoImpl

public interface MetierDao

See Also:
Metier

Field Summary
static int TRANSFORM_CLUSTERMETIER
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_NONE
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEMETIERFULLVO
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEMETIERNATURALID
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
 
Method Summary
 Metier clusterMetierToEntity(ClusterMetier clusterMetier)
          Converts an instance of type ClusterMetier to this DAO's entity.
 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 getAllMetier() with an additional flag called transform.
 java.util.Collection getAllMetier(int pageNumber, int pageSize)
           Does the same thing as 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 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 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 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 getAllMetier() with an additional argument called queryString.
 java.util.Collection getAllMetier(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as 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 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 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 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 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 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 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 getAllMetierSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMetierSinceDateSynchro(java.sql.Timestamp updateDate)
           
 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 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 loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as 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 loadAll(int) with an additional two arguments called pageNumber and pageSize.
 Metier remoteMetierFullVOToEntity(RemoteMetierFullVO remoteMetierFullVO)
          Converts an instance of type RemoteMetierFullVO to this DAO's entity.
 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.
 Metier remoteMetierNaturalIdToEntity(RemoteMetierNaturalId remoteMetierNaturalId)
          Converts an instance of type RemoteMetierNaturalId 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 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.
 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.
 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.
 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.
 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.
 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.
 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.
 

Field Detail

TRANSFORM_NONE

static final int TRANSFORM_NONE
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes no transformation will occur.

See Also:
Constant Field Values

TRANSFORM_REMOTEMETIERFULLVO

static final int TRANSFORM_REMOTEMETIERFULLVO
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type RemoteMetierFullVO.

See Also:
Constant Field Values

TRANSFORM_REMOTEMETIERNATURALID

static final int TRANSFORM_REMOTEMETIERNATURALID
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type RemoteMetierNaturalId.

See Also:
Constant Field Values

TRANSFORM_CLUSTERMETIER

static final int TRANSFORM_CLUSTERMETIER
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type ClusterMetier.

See Also:
Constant Field Values
Method Detail

toRemoteMetierFullVO

void toRemoteMetierFullVO(Metier source,
                          RemoteMetierFullVO target)
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).


toRemoteMetierFullVO

RemoteMetierFullVO toRemoteMetierFullVO(Metier entity)
Converts this DAO's entity to an object of type RemoteMetierFullVO.


toRemoteMetierFullVOCollection

void toRemoteMetierFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteMetierFullVO.


toRemoteMetierFullVOArray

RemoteMetierFullVO[] toRemoteMetierFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteMetierFullVO.


remoteMetierFullVOToEntity

void remoteMetierFullVOToEntity(RemoteMetierFullVO source,
                                Metier target,
                                boolean copyIfNull)
Copies the fields of RemoteMetierFullVO to the specified entity.

Parameters:
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.

remoteMetierFullVOToEntity

Metier remoteMetierFullVOToEntity(RemoteMetierFullVO remoteMetierFullVO)
Converts an instance of type RemoteMetierFullVO to this DAO's entity.


remoteMetierFullVOToEntityCollection

void remoteMetierFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteMetierFullVO to this DAO's entity.


toRemoteMetierNaturalId

void toRemoteMetierNaturalId(Metier source,
                             RemoteMetierNaturalId target)
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).


toRemoteMetierNaturalId

RemoteMetierNaturalId toRemoteMetierNaturalId(Metier entity)
Converts this DAO's entity to an object of type RemoteMetierNaturalId.


toRemoteMetierNaturalIdCollection

void toRemoteMetierNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteMetierNaturalId.


toRemoteMetierNaturalIdArray

RemoteMetierNaturalId[] toRemoteMetierNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteMetierNaturalId.


remoteMetierNaturalIdToEntity

void remoteMetierNaturalIdToEntity(RemoteMetierNaturalId source,
                                   Metier target,
                                   boolean copyIfNull)
Copies the fields of RemoteMetierNaturalId to the specified entity.

Parameters:
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.

remoteMetierNaturalIdToEntity

Metier remoteMetierNaturalIdToEntity(RemoteMetierNaturalId remoteMetierNaturalId)
Converts an instance of type RemoteMetierNaturalId to this DAO's entity.


remoteMetierNaturalIdToEntityCollection

void remoteMetierNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteMetierNaturalId to this DAO's entity.


toClusterMetier

void toClusterMetier(Metier source,
                     ClusterMetier target)
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).


toClusterMetier

ClusterMetier toClusterMetier(Metier entity)
Converts this DAO's entity to an object of type ClusterMetier.


toClusterMetierCollection

void toClusterMetierCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterMetier.


toClusterMetierArray

ClusterMetier[] toClusterMetierArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterMetier.


clusterMetierToEntity

void clusterMetierToEntity(ClusterMetier source,
                           Metier target,
                           boolean copyIfNull)
Copies the fields of ClusterMetier to the specified entity.

Parameters:
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.

clusterMetierToEntity

Metier clusterMetierToEntity(ClusterMetier clusterMetier)
Converts an instance of type ClusterMetier to this DAO's entity.


clusterMetierToEntityCollection

void clusterMetierToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterMetier to this DAO's entity.


load

Metier load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.metier.Metier from the persistent store.


load

java.lang.Object load(int transform,
                      java.lang.Integer id)

Does the same thing as 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.

Parameters:
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.

loadAll

java.util.Collection loadAll()
Loads all entities of type Metier.

Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int transform)

Does the same thing as 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.

Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int pageNumber,
                             int pageSize)

Does the same thing as 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.

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.

loadAll

java.util.Collection loadAll(int transform,
                             int pageNumber,
                             int pageSize)

Does the same thing as 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.

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.

create

Metier create(Metier metier)
Creates an instance of fr.ifremer.allegro.referential.metier.Metier and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        Metier metier)

Does the same thing as 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.


create

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

Parameters:
entities - the collection of fr.ifremer.allegro.referential.metier.Metier instances to create.
Returns:
the created instances.

create

java.util.Collection create(int transform,
                            java.util.Collection entities)

Does the same thing as 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.


create

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.


create

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 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.


create

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.


create

java.lang.Object create(int transform,
                        java.lang.String name,
                        Status status)

Does the same thing as 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.


update

void update(Metier metier)
Updates the metier instance in the persistent store.


update

void update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store.


remove

void remove(Metier metier)
Removes the instance of fr.ifremer.allegro.referential.metier.Metier from the persistent store.


remove

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


remove

void remove(java.util.Collection entities)
Removes all entities in the given entities collection.


getAllMetier

java.util.Collection getAllMetier()

getAllMetier

java.util.Collection getAllMetier(java.lang.String queryString)

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


getAllMetier

java.util.Collection getAllMetier(int pageNumber,
                                  int pageSize)

Does the same thing as 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.


getAllMetier

java.util.Collection getAllMetier(java.lang.String queryString,
                                  int pageNumber,
                                  int pageSize)

Does the same thing as 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.


getAllMetier

java.util.Collection getAllMetier(int transform)

Does the same thing as 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.


getAllMetier

java.util.Collection getAllMetier(int transform,
                                  int pageNumber,
                                  int pageSize)

Does the same thing as 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.


getAllMetier

java.util.Collection getAllMetier(int transform,
                                  java.lang.String queryString)

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


getAllMetier

java.util.Collection getAllMetier(int transform,
                                  java.lang.String queryString,
                                  int pageNumber,
                                  int pageSize)

Does the same thing as 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.


findMetierById

Metier findMetierById(java.lang.Integer id)

findMetierById

Metier findMetierById(java.lang.String queryString,
                      java.lang.Integer id)

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


findMetierById

java.lang.Object findMetierById(int transform,
                                java.lang.Integer id)

Does the same thing as 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.


findMetierById

java.lang.Object findMetierById(int transform,
                                java.lang.String queryString,
                                java.lang.Integer id)

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


findMetierByStatus

java.util.Collection findMetierByStatus(Status status)

findMetierByStatus

java.util.Collection findMetierByStatus(java.lang.String queryString,
                                        Status status)

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


findMetierByStatus

java.util.Collection findMetierByStatus(int pageNumber,
                                        int pageSize,
                                        Status status)

Does the same thing as 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.


findMetierByStatus

java.util.Collection findMetierByStatus(java.lang.String queryString,
                                        int pageNumber,
                                        int pageSize,
                                        Status status)

Does the same thing as 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.


findMetierByStatus

java.util.Collection findMetierByStatus(int transform,
                                        Status status)

Does the same thing as 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.


findMetierByStatus

java.util.Collection findMetierByStatus(int transform,
                                        int pageNumber,
                                        int pageSize,
                                        Status status)

Does the same thing as 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.


findMetierByStatus

java.util.Collection findMetierByStatus(int transform,
                                        java.lang.String queryString,
                                        Status status)

Does the same thing as 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 findMetierByStatus(int, fr.ifremer.allegro.referential.Status status).


findMetierByStatus

java.util.Collection findMetierByStatus(int transform,
                                        java.lang.String queryString,
                                        int pageNumber,
                                        int pageSize,
                                        Status status)

Does the same thing as 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.


findMetierByNaturalId

Metier findMetierByNaturalId(java.lang.Integer id)

findMetierByNaturalId

Metier findMetierByNaturalId(java.lang.String queryString,
                             java.lang.Integer id)

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


findMetierByNaturalId

java.lang.Object findMetierByNaturalId(int transform,
                                       java.lang.Integer id)

Does the same thing as 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.


findMetierByNaturalId

java.lang.Object findMetierByNaturalId(int transform,
                                       java.lang.String queryString,
                                       java.lang.Integer id)

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


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(java.sql.Timestamp updateDate)

getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(java.lang.String queryString,
                                                  java.sql.Timestamp updateDate)

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


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(int pageNumber,
                                                  int pageSize,
                                                  java.sql.Timestamp updateDate)

Does the same thing as 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.


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  java.sql.Timestamp updateDate)

Does the same thing as 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.


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(int transform,
                                                  java.sql.Timestamp updateDate)

Does the same thing as 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.


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(int transform,
                                                  int pageNumber,
                                                  int pageSize,
                                                  java.sql.Timestamp updateDate)

Does the same thing as 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.


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(int transform,
                                                  java.lang.String queryString,
                                                  java.sql.Timestamp updateDate)

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


getAllMetierSinceDateSynchro

java.util.Collection getAllMetierSinceDateSynchro(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  java.sql.Timestamp updateDate)

Does the same thing as 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.


createFromClusterMetier

Metier createFromClusterMetier(ClusterMetier clusterMetier)

getAllClusterMetierSinceDateSynchro

ClusterMetier[] getAllClusterMetierSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                    java.lang.Integer userId,
                                                    java.lang.Integer[] registrationLocationIds,
                                                    java.lang.Integer pageNumber,
                                                    java.lang.Integer pageSize)

search

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. These flags allow you to limit your data to a specified page number and size.

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.

search

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. These flags allow you to limit your data to a specified page number and size.

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.

search

java.util.Set search(int transform,
                     Search search)
Does the same thing as 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.

Parameters:
transform - the transformation flag.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.

search

java.util.Set search(Search search)
Performs a search using the parameters specified in the given search object.

Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.


Copyright © 2008-2010 IFREMER. All Rights Reserved.