fr.ifremer.allegro.referential.conversion
Interface UnitConversionDao

All Known Implementing Classes:
UnitConversionDaoBase, UnitConversionDaoImpl

public interface UnitConversionDao

See Also:
UnitConversion

Field Summary
static int TRANSFORM_CLUSTERUNITCONVERSION
          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_REMOTEUNITCONVERSIONFULLVO
          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_REMOTEUNITCONVERSIONNATURALID
          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
 UnitConversion clusterUnitConversionToEntity(ClusterUnitConversion clusterUnitConversion)
          Converts an instance of type ClusterUnitConversion to this DAO's entity.
 void clusterUnitConversionToEntity(ClusterUnitConversion source, UnitConversion target, boolean copyIfNull)
          Copies the fields of ClusterUnitConversion to the specified entity.
 void clusterUnitConversionToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterUnitConversion to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.conversion.UnitConversion and adds from the passed in entities collection
 UnitConversion create(java.lang.Float conversionCoefficient, Unit fromUnit, Unit toUnit)
           Creates a new fr.ifremer.allegro.referential.conversion.UnitConversion instance from all attributes and properties and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as create(fr.ifremer.allegro.referential.conversion.UnitConversion) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.Float conversionCoefficient, Unit fromUnit, Unit toUnit)
           Does the same thing as create(java.lang.Float,fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit) with an additional flag called transform.
 java.lang.Object create(int transform, UnitConversion unitConversion)
           Does the same thing as create(fr.ifremer.allegro.referential.conversion.UnitConversion) with an additional flag called transform.
 UnitConversion create(UnitConversion unitConversion)
          Creates an instance of fr.ifremer.allegro.referential.conversion.UnitConversion and adds it to the persistent store.
 UnitConversion createFromClusterUnitConversion(ClusterUnitConversion clusterUnitConversion)
           
 java.util.Collection findUnitConversionByFromUnit(int transform, int pageNumber, int pageSize, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByFromUnit(int pageNumber, int pageSize, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByFromUnit(int transform, java.lang.String queryString, int pageNumber, int pageSize, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(int, String, fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByFromUnit(int transform, java.lang.String queryString, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 java.util.Collection findUnitConversionByFromUnit(int transform, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(fr.ifremer.allegro.referential.pmfm.Unit) with an additional flag called transform.
 java.util.Collection findUnitConversionByFromUnit(java.lang.String queryString, int pageNumber, int pageSize, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(String, fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByFromUnit(java.lang.String queryString, Unit fromUnit)
           Does the same thing as findUnitConversionByFromUnit(fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 java.util.Collection findUnitConversionByFromUnit(Unit fromUnit)
           
 java.lang.Object findUnitConversionByIdentifiers(int transform, java.lang.String queryString, Unit fromUnit, Unit toUnit)
           Does the same thing as findUnitConversionByIdentifiers(int, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 java.lang.Object findUnitConversionByIdentifiers(int transform, Unit fromUnit, Unit toUnit)
           Does the same thing as findUnitConversionByIdentifiers(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional flag called transform.
 UnitConversion findUnitConversionByIdentifiers(java.lang.String queryString, Unit fromUnit, Unit toUnit)
           Does the same thing as findUnitConversionByIdentifiers(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 UnitConversion findUnitConversionByIdentifiers(Unit fromUnit, Unit toUnit)
           
 java.lang.Object findUnitConversionByNaturalId(int transform, java.lang.String queryString, Unit fromUnit, Unit toUnit)
           Does the same thing as findUnitConversionByNaturalId(int, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 java.lang.Object findUnitConversionByNaturalId(int transform, Unit fromUnit, Unit toUnit)
           Does the same thing as findUnitConversionByNaturalId(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional flag called transform.
 UnitConversion findUnitConversionByNaturalId(java.lang.String queryString, Unit fromUnit, Unit toUnit)
           Does the same thing as findUnitConversionByNaturalId(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 UnitConversion findUnitConversionByNaturalId(Unit fromUnit, Unit toUnit)
           
 java.util.Collection findUnitConversionByToUnit(int transform, int pageNumber, int pageSize, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByToUnit(int pageNumber, int pageSize, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByToUnit(int transform, java.lang.String queryString, int pageNumber, int pageSize, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(int, String, fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByToUnit(int transform, java.lang.String queryString, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 java.util.Collection findUnitConversionByToUnit(int transform, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(fr.ifremer.allegro.referential.pmfm.Unit) with an additional flag called transform.
 java.util.Collection findUnitConversionByToUnit(java.lang.String queryString, int pageNumber, int pageSize, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(String, fr.ifremer.allegro.referential.pmfm.Unit) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUnitConversionByToUnit(java.lang.String queryString, Unit toUnit)
           Does the same thing as findUnitConversionByToUnit(fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString.
 java.util.Collection findUnitConversionByToUnit(Unit toUnit)
           
 ClusterUnitConversion[] getAllClusterUnitConversion(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllUnitConversion()
           
 java.util.Collection getAllUnitConversion(int transform)
           Does the same thing as getAllUnitConversion() with an additional flag called transform.
 java.util.Collection getAllUnitConversion(int pageNumber, int pageSize)
           Does the same thing as getAllUnitConversion() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUnitConversion(int transform, int pageNumber, int pageSize)
           Does the same thing as getAllUnitConversion(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUnitConversion(int transform, java.lang.String queryString)
           Does the same thing as getAllUnitConversion(int) with an additional argument called queryString.
 java.util.Collection getAllUnitConversion(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllUnitConversion(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUnitConversion(java.lang.String queryString)
           Does the same thing as getAllUnitConversion() with an additional argument called queryString.
 java.util.Collection getAllUnitConversion(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllUnitConversion(String) with an additional two arguments called pageNumber and pageSize.
 java.lang.Object load(int transform, Unit fromUnit, Unit toUnit)
           Does the same thing as load(fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit) with an additional flag called transform.
 UnitConversion load(Unit fromUnit, Unit toUnit)
          Loads an instance of fr.ifremer.allegro.referential.conversion.UnitConversion from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type UnitConversion.
 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.
 UnitConversion remoteUnitConversionFullVOToEntity(RemoteUnitConversionFullVO remoteUnitConversionFullVO)
          Converts an instance of type RemoteUnitConversionFullVO to this DAO's entity.
 void remoteUnitConversionFullVOToEntity(RemoteUnitConversionFullVO source, UnitConversion target, boolean copyIfNull)
          Copies the fields of RemoteUnitConversionFullVO to the specified entity.
 void remoteUnitConversionFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteUnitConversionFullVO to this DAO's entity.
 UnitConversion remoteUnitConversionNaturalIdToEntity(RemoteUnitConversionNaturalId remoteUnitConversionNaturalId)
          Converts an instance of type RemoteUnitConversionNaturalId to this DAO's entity.
 void remoteUnitConversionNaturalIdToEntity(RemoteUnitConversionNaturalId source, UnitConversion target, boolean copyIfNull)
          Copies the fields of RemoteUnitConversionNaturalId to the specified entity.
 void remoteUnitConversionNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteUnitConversionNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(UnitConversion unitConversion)
          Removes the instance of fr.ifremer.allegro.referential.conversion.UnitConversion from the persistent store.
 void remove(Unit fromUnit, Unit toUnit)
          Removes the instance of fr.ifremer.allegro.referential.conversion.UnitConversion having the given identifiers 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.
 ClusterUnitConversion toClusterUnitConversion(UnitConversion entity)
          Converts this DAO's entity to an object of type ClusterUnitConversion.
 void toClusterUnitConversion(UnitConversion source, ClusterUnitConversion target)
          Copies the fields of the specified entity to the target value object.
 ClusterUnitConversion[] toClusterUnitConversionArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterUnitConversion.
 void toClusterUnitConversionCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterUnitConversion.
 RemoteUnitConversionFullVO toRemoteUnitConversionFullVO(UnitConversion entity)
          Converts this DAO's entity to an object of type RemoteUnitConversionFullVO.
 void toRemoteUnitConversionFullVO(UnitConversion source, RemoteUnitConversionFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteUnitConversionFullVO[] toRemoteUnitConversionFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteUnitConversionFullVO.
 void toRemoteUnitConversionFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteUnitConversionFullVO.
 RemoteUnitConversionNaturalId toRemoteUnitConversionNaturalId(UnitConversion entity)
          Converts this DAO's entity to an object of type RemoteUnitConversionNaturalId.
 void toRemoteUnitConversionNaturalId(UnitConversion source, RemoteUnitConversionNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteUnitConversionNaturalId[] toRemoteUnitConversionNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteUnitConversionNaturalId.
 void toRemoteUnitConversionNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteUnitConversionNaturalId.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(UnitConversion unitConversion)
          Updates the unitConversion 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_REMOTEUNITCONVERSIONFULLVO

static final int TRANSFORM_REMOTEUNITCONVERSIONFULLVO
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 RemoteUnitConversionFullVO.

See Also:
Constant Field Values

TRANSFORM_REMOTEUNITCONVERSIONNATURALID

static final int TRANSFORM_REMOTEUNITCONVERSIONNATURALID
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 RemoteUnitConversionNaturalId.

See Also:
Constant Field Values

TRANSFORM_CLUSTERUNITCONVERSION

static final int TRANSFORM_CLUSTERUNITCONVERSION
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 ClusterUnitConversion.

See Also:
Constant Field Values
Method Detail

toRemoteUnitConversionFullVO

void toRemoteUnitConversionFullVO(UnitConversion source,
                                  RemoteUnitConversionFullVO target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteUnitConversionFullVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteUnitConversionFullVO

RemoteUnitConversionFullVO toRemoteUnitConversionFullVO(UnitConversion entity)
Converts this DAO's entity to an object of type RemoteUnitConversionFullVO.


toRemoteUnitConversionFullVOCollection

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


toRemoteUnitConversionFullVOArray

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


remoteUnitConversionFullVOToEntity

void remoteUnitConversionFullVOToEntity(RemoteUnitConversionFullVO source,
                                        UnitConversion target,
                                        boolean copyIfNull)
Copies the fields of RemoteUnitConversionFullVO 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.

remoteUnitConversionFullVOToEntity

UnitConversion remoteUnitConversionFullVOToEntity(RemoteUnitConversionFullVO remoteUnitConversionFullVO)
Converts an instance of type RemoteUnitConversionFullVO to this DAO's entity.


remoteUnitConversionFullVOToEntityCollection

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


toRemoteUnitConversionNaturalId

void toRemoteUnitConversionNaturalId(UnitConversion source,
                                     RemoteUnitConversionNaturalId target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteUnitConversionNaturalId(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteUnitConversionNaturalId

RemoteUnitConversionNaturalId toRemoteUnitConversionNaturalId(UnitConversion entity)
Converts this DAO's entity to an object of type RemoteUnitConversionNaturalId.


toRemoteUnitConversionNaturalIdCollection

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


toRemoteUnitConversionNaturalIdArray

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


remoteUnitConversionNaturalIdToEntity

void remoteUnitConversionNaturalIdToEntity(RemoteUnitConversionNaturalId source,
                                           UnitConversion target,
                                           boolean copyIfNull)
Copies the fields of RemoteUnitConversionNaturalId 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.

remoteUnitConversionNaturalIdToEntity

UnitConversion remoteUnitConversionNaturalIdToEntity(RemoteUnitConversionNaturalId remoteUnitConversionNaturalId)
Converts an instance of type RemoteUnitConversionNaturalId to this DAO's entity.


remoteUnitConversionNaturalIdToEntityCollection

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


toClusterUnitConversion

void toClusterUnitConversion(UnitConversion source,
                             ClusterUnitConversion target)
Copies the fields of the specified entity to the target value object. This method is similar to toClusterUnitConversion(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toClusterUnitConversion

ClusterUnitConversion toClusterUnitConversion(UnitConversion entity)
Converts this DAO's entity to an object of type ClusterUnitConversion.


toClusterUnitConversionCollection

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


toClusterUnitConversionArray

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


clusterUnitConversionToEntity

void clusterUnitConversionToEntity(ClusterUnitConversion source,
                                   UnitConversion target,
                                   boolean copyIfNull)
Copies the fields of ClusterUnitConversion 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.

clusterUnitConversionToEntity

UnitConversion clusterUnitConversionToEntity(ClusterUnitConversion clusterUnitConversion)
Converts an instance of type ClusterUnitConversion to this DAO's entity.


clusterUnitConversionToEntityCollection

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


load

UnitConversion load(Unit fromUnit,
                    Unit toUnit)
Loads an instance of fr.ifremer.allegro.referential.conversion.UnitConversion from the persistent store.


load

java.lang.Object load(int transform,
                      Unit fromUnit,
                      Unit toUnit)

Does the same thing as load(fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit) 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:
fromUnit - identifier of the entity to load
toUnit - 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 UnitConversion.

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

UnitConversion create(UnitConversion unitConversion)
Creates an instance of fr.ifremer.allegro.referential.conversion.UnitConversion and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        UnitConversion unitConversion)

Does the same thing as create(fr.ifremer.allegro.referential.conversion.UnitConversion) 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.conversion.UnitConversion and adds from the passed in entities collection

Parameters:
entities - the collection of fr.ifremer.allegro.referential.conversion.UnitConversion 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.conversion.UnitConversion) 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

UnitConversion create(java.lang.Float conversionCoefficient,
                      Unit fromUnit,
                      Unit toUnit)

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


create

java.lang.Object create(int transform,
                        java.lang.Float conversionCoefficient,
                        Unit fromUnit,
                        Unit toUnit)

Does the same thing as create(java.lang.Float,fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit) 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.


update

void update(UnitConversion unitConversion)
Updates the unitConversion 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(UnitConversion unitConversion)
Removes the instance of fr.ifremer.allegro.referential.conversion.UnitConversion from the persistent store.


remove

void remove(Unit fromUnit,
            Unit toUnit)
Removes the instance of fr.ifremer.allegro.referential.conversion.UnitConversion having the given identifiers from the persistent store.


remove

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


getAllUnitConversion

java.util.Collection getAllUnitConversion()

getAllUnitConversion

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

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


getAllUnitConversion

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

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


getAllUnitConversion

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

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


getAllUnitConversion

java.util.Collection getAllUnitConversion(int transform)

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


getAllUnitConversion

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

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


getAllUnitConversion

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

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


getAllUnitConversion

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

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


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(Unit fromUnit)

findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(java.lang.String queryString,
                                                  Unit fromUnit)

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


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(int pageNumber,
                                                  int pageSize,
                                                  Unit fromUnit)

Does the same thing as findUnitConversionByFromUnit(fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Unit fromUnit)

Does the same thing as findUnitConversionByFromUnit(String, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(int transform,
                                                  Unit fromUnit)

Does the same thing as findUnitConversionByFromUnit(fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(int transform,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Unit fromUnit)

Does the same thing as findUnitConversionByFromUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(int transform,
                                                  java.lang.String queryString,
                                                  Unit fromUnit)

Does the same thing as findUnitConversionByFromUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findUnitConversionByFromUnit(int, fr.ifremer.allegro.referential.pmfm.Unit fromUnit).


findUnitConversionByFromUnit

java.util.Collection findUnitConversionByFromUnit(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize,
                                                  Unit fromUnit)

Does the same thing as findUnitConversionByFromUnit(int, String, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(Unit toUnit)

findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(java.lang.String queryString,
                                                Unit toUnit)

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


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(int pageNumber,
                                                int pageSize,
                                                Unit toUnit)

Does the same thing as findUnitConversionByToUnit(fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(java.lang.String queryString,
                                                int pageNumber,
                                                int pageSize,
                                                Unit toUnit)

Does the same thing as findUnitConversionByToUnit(String, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(int transform,
                                                Unit toUnit)

Does the same thing as findUnitConversionByToUnit(fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(int transform,
                                                int pageNumber,
                                                int pageSize,
                                                Unit toUnit)

Does the same thing as findUnitConversionByToUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(int transform,
                                                java.lang.String queryString,
                                                Unit toUnit)

Does the same thing as findUnitConversionByToUnit(int, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findUnitConversionByToUnit(int, fr.ifremer.allegro.referential.pmfm.Unit toUnit).


findUnitConversionByToUnit

java.util.Collection findUnitConversionByToUnit(int transform,
                                                java.lang.String queryString,
                                                int pageNumber,
                                                int pageSize,
                                                Unit toUnit)

Does the same thing as findUnitConversionByToUnit(int, String, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByIdentifiers

UnitConversion findUnitConversionByIdentifiers(Unit fromUnit,
                                               Unit toUnit)

findUnitConversionByIdentifiers

UnitConversion findUnitConversionByIdentifiers(java.lang.String queryString,
                                               Unit fromUnit,
                                               Unit toUnit)

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


findUnitConversionByIdentifiers

java.lang.Object findUnitConversionByIdentifiers(int transform,
                                                 Unit fromUnit,
                                                 Unit toUnit)

Does the same thing as findUnitConversionByIdentifiers(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByIdentifiers

java.lang.Object findUnitConversionByIdentifiers(int transform,
                                                 java.lang.String queryString,
                                                 Unit fromUnit,
                                                 Unit toUnit)

Does the same thing as findUnitConversionByIdentifiers(int, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findUnitConversionByIdentifiers(int, fr.ifremer.allegro.referential.pmfm.Unit fromUnit, fr.ifremer.allegro.referential.pmfm.Unit toUnit).


findUnitConversionByNaturalId

UnitConversion findUnitConversionByNaturalId(Unit fromUnit,
                                             Unit toUnit)

findUnitConversionByNaturalId

UnitConversion findUnitConversionByNaturalId(java.lang.String queryString,
                                             Unit fromUnit,
                                             Unit toUnit)

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


findUnitConversionByNaturalId

java.lang.Object findUnitConversionByNaturalId(int transform,
                                               Unit fromUnit,
                                               Unit toUnit)

Does the same thing as findUnitConversionByNaturalId(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) 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.


findUnitConversionByNaturalId

java.lang.Object findUnitConversionByNaturalId(int transform,
                                               java.lang.String queryString,
                                               Unit fromUnit,
                                               Unit toUnit)

Does the same thing as findUnitConversionByNaturalId(int, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit) with an additional argument called queryString. This queryString argument allows you to override the query string defined in findUnitConversionByNaturalId(int, fr.ifremer.allegro.referential.pmfm.Unit fromUnit, fr.ifremer.allegro.referential.pmfm.Unit toUnit).


createFromClusterUnitConversion

UnitConversion createFromClusterUnitConversion(ClusterUnitConversion clusterUnitConversion)

getAllClusterUnitConversion

ClusterUnitConversion[] getAllClusterUnitConversion(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.