fr.ifremer.allegro.referential.conversion
Class UnitConversionDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.conversion.UnitConversionDaoBase
All Implemented Interfaces:
UnitConversionDao
Direct Known Subclasses:
UnitConversionDaoImpl

public abstract class UnitConversionDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements UnitConversionDao

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

See Also:
UnitConversion

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.conversion.UnitConversionDao
TRANSFORM_CLUSTERUNITCONVERSION, TRANSFORM_NONE, TRANSFORM_REMOTEUNITCONVERSIONFULLVO, TRANSFORM_REMOTEUNITCONVERSIONNATURALID
 
Constructor Summary
UnitConversionDaoBase()
           
 
Method Summary
 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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.getAllUnitConversion() with an additional flag called transform.
 java.util.Collection getAllUnitConversion(int pageNumber, int pageSize)
           Does the same thing as UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.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 UnitConversionDao.getAllUnitConversion() with an additional argument called queryString.
 java.util.Collection getAllUnitConversion(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as UnitConversionDao.getAllUnitConversion(String) with an additional two arguments called pageNumber and pageSize.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  UnitDao getUnitDao()
          Gets the reference to unitDao.
protected abstract  UnitConversion handleCreateFromClusterUnitConversion(ClusterUnitConversion clusterUnitConversion)
          Performs the core logic for createFromClusterUnitConversion(fr.ifremer.allegro.referential.conversion.generic.cluster.ClusterUnitConversion)
protected abstract  ClusterUnitConversion[] handleGetAllClusterUnitConversion(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterUnitConversion(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 java.lang.Object load(int transform, Unit fromUnit, Unit toUnit)
           Does the same thing as UnitConversionDao.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 UnitConversionDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as UnitConversionDao.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 UnitConversionDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 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.
 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 UnitConversionDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setUnitDao(UnitDao unitDao)
          Sets the reference to unitDao.
protected  ClusterUnitConversion toClusterUnitConversion(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value 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.
protected  UnitConversion toEntity(java.lang.Object[] row)
           
protected  RemoteUnitConversionFullVO toRemoteUnitConversionFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 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.
protected  RemoteUnitConversionNaturalId toRemoteUnitConversionNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 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.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.conversion.UnitConversion) method.
protected  java.lang.Object transformEntity(int transform, UnitConversion entity)
          Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.referential.conversion.UnitConversionDao, please note that the UnitConversionDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(UnitConversion unitConversion)
          Updates the unitConversion instance in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.referential.conversion.UnitConversionDao
clusterUnitConversionToEntity, remoteUnitConversionFullVOToEntity, remoteUnitConversionNaturalIdToEntity
 

Constructor Detail

UnitConversionDaoBase

public UnitConversionDaoBase()
Method Detail

setUnitDao

public void setUnitDao(UnitDao unitDao)
Sets the reference to unitDao.


getUnitDao

protected UnitDao getUnitDao()
Gets the reference to unitDao.


load

public java.lang.Object load(int transform,
                             Unit fromUnit,
                             Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
load in interface UnitConversionDao
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.
See Also:
UnitConversionDao.load(int, fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit)

load

public UnitConversion load(Unit fromUnit,
                           Unit toUnit)
Description copied from interface: UnitConversionDao
Loads an instance of fr.ifremer.allegro.referential.conversion.UnitConversion from the persistent store.

Specified by:
load in interface UnitConversionDao
See Also:
UnitConversionDao.load(fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit)

loadAll

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

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

loadAll

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

Does the same thing as UnitConversionDao.loadAll() with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
loadAll in interface UnitConversionDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
UnitConversionDao.loadAll(int)

loadAll

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

Does the same thing as UnitConversionDao.loadAll() with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
loadAll in interface UnitConversionDao
Parameters:
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
UnitConversionDao.loadAll(int, int)

loadAll

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

Does the same thing as UnitConversionDao.loadAll(int) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
loadAll in interface UnitConversionDao
Parameters:
transform - the flag indicating what transformation to use.
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
UnitConversionDao.loadAll(int, int, int)

create

public UnitConversion create(UnitConversion unitConversion)
Description copied from interface: UnitConversionDao
Creates an instance of fr.ifremer.allegro.referential.conversion.UnitConversion and adds it to the persistent store.

Specified by:
create in interface UnitConversionDao
See Also:
UnitConversionDao.create(fr.ifremer.allegro.referential.conversion.UnitConversion)

create

public java.lang.Object create(int transform,
                               UnitConversion unitConversion)
Description copied from interface: UnitConversionDao

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

Specified by:
create in interface UnitConversionDao
See Also:
UnitConversionDao.create(int transform, fr.ifremer.allegro.referential.conversion.UnitConversion)

create

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

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

create

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

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

Specified by:
create in interface UnitConversionDao
See Also:
UnitConversionDao.create(int, java.util.Collection)

create

public UnitConversion create(java.lang.Float conversionCoefficient,
                             Unit fromUnit,
                             Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
create in interface UnitConversionDao
See Also:
UnitConversionDao.create(java.lang.Float,fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit)

create

public java.lang.Object create(int transform,
                               java.lang.Float conversionCoefficient,
                               Unit fromUnit,
                               Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
create in interface UnitConversionDao
See Also:
UnitConversionDao.create(int, java.lang.Float,fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit)

update

public void update(UnitConversion unitConversion)
Description copied from interface: UnitConversionDao
Updates the unitConversion instance in the persistent store.

Specified by:
update in interface UnitConversionDao
See Also:
UnitConversionDao.update(fr.ifremer.allegro.referential.conversion.UnitConversion)

update

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

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

remove

public void remove(UnitConversion unitConversion)
Description copied from interface: UnitConversionDao
Removes the instance of fr.ifremer.allegro.referential.conversion.UnitConversion from the persistent store.

Specified by:
remove in interface UnitConversionDao
See Also:
UnitConversionDao.remove(fr.ifremer.allegro.referential.conversion.UnitConversion)

remove

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

Specified by:
remove in interface UnitConversionDao
See Also:
UnitConversionDao.remove(fr.ifremer.allegro.referential.pmfm.Unit,fr.ifremer.allegro.referential.pmfm.Unit)

remove

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

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

getAllUnitConversion

public java.util.Collection getAllUnitConversion()
Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion()

getAllUnitConversion

public java.util.Collection getAllUnitConversion(int transform)
Description copied from interface: UnitConversionDao

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(int)

getAllUnitConversion

public java.util.Collection getAllUnitConversion(java.lang.String queryString)
Description copied from interface: UnitConversionDao

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(java.lang.String)

getAllUnitConversion

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

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(int, int)

getAllUnitConversion

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

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(String, int, int)

getAllUnitConversion

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

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(int, String)

getAllUnitConversion

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

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(int, int, int)

getAllUnitConversion

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

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

Specified by:
getAllUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllUnitConversion(int, java.lang.String, int, int)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(Unit fromUnit)
Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(int transform,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(java.lang.String queryString,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(java.lang.String, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(int pageNumber,
                                                         int pageSize,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(String, int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(int transform,
                                                         java.lang.String queryString,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(int, String, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(int transform,
                                                         int pageNumber,
                                                         int pageSize,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(int, int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByFromUnit

public java.util.Collection findUnitConversionByFromUnit(int transform,
                                                         java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         Unit fromUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByFromUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByFromUnit(int, java.lang.String, int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(Unit toUnit)
Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(int transform,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(java.lang.String queryString,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(java.lang.String, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(int pageNumber,
                                                       int pageSize,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(java.lang.String queryString,
                                                       int pageNumber,
                                                       int pageSize,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(String, int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(int transform,
                                                       java.lang.String queryString,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(int, String, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(int transform,
                                                       int pageNumber,
                                                       int pageSize,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(int, int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByToUnit

public java.util.Collection findUnitConversionByToUnit(int transform,
                                                       java.lang.String queryString,
                                                       int pageNumber,
                                                       int pageSize,
                                                       Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByToUnit in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByToUnit(int, java.lang.String, int, int, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByIdentifiers

public UnitConversion findUnitConversionByIdentifiers(Unit fromUnit,
                                                      Unit toUnit)
Specified by:
findUnitConversionByIdentifiers in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByIdentifiers(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByIdentifiers

public java.lang.Object findUnitConversionByIdentifiers(int transform,
                                                        Unit fromUnit,
                                                        Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByIdentifiers in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByIdentifiers(int, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByIdentifiers

public UnitConversion findUnitConversionByIdentifiers(java.lang.String queryString,
                                                      Unit fromUnit,
                                                      Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByIdentifiers in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByIdentifiers(java.lang.String, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByIdentifiers

public java.lang.Object findUnitConversionByIdentifiers(int transform,
                                                        java.lang.String queryString,
                                                        Unit fromUnit,
                                                        Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByIdentifiers in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByIdentifiers(int, java.lang.String, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByNaturalId

public UnitConversion findUnitConversionByNaturalId(Unit fromUnit,
                                                    Unit toUnit)
Specified by:
findUnitConversionByNaturalId in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByNaturalId(fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByNaturalId

public java.lang.Object findUnitConversionByNaturalId(int transform,
                                                      Unit fromUnit,
                                                      Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByNaturalId in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByNaturalId(int, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByNaturalId

public UnitConversion findUnitConversionByNaturalId(java.lang.String queryString,
                                                    Unit fromUnit,
                                                    Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByNaturalId in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByNaturalId(java.lang.String, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

findUnitConversionByNaturalId

public java.lang.Object findUnitConversionByNaturalId(int transform,
                                                      java.lang.String queryString,
                                                      Unit fromUnit,
                                                      Unit toUnit)
Description copied from interface: UnitConversionDao

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

Specified by:
findUnitConversionByNaturalId in interface UnitConversionDao
See Also:
UnitConversionDao.findUnitConversionByNaturalId(int, java.lang.String, fr.ifremer.allegro.referential.pmfm.Unit, fr.ifremer.allegro.referential.pmfm.Unit)

createFromClusterUnitConversion

public UnitConversion createFromClusterUnitConversion(ClusterUnitConversion clusterUnitConversion)
Specified by:
createFromClusterUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.createFromClusterUnitConversion(fr.ifremer.allegro.referential.conversion.generic.cluster.ClusterUnitConversion)

handleCreateFromClusterUnitConversion

protected abstract UnitConversion handleCreateFromClusterUnitConversion(ClusterUnitConversion clusterUnitConversion)
                                                                 throws java.lang.Exception
Performs the core logic for createFromClusterUnitConversion(fr.ifremer.allegro.referential.conversion.generic.cluster.ClusterUnitConversion)

Throws:
java.lang.Exception

getAllClusterUnitConversion

public ClusterUnitConversion[] getAllClusterUnitConversion(java.lang.Integer userId,
                                                           java.lang.Integer[] registrationLocationIds,
                                                           java.lang.Integer pageNumber,
                                                           java.lang.Integer pageSize)
Specified by:
getAllClusterUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.getAllClusterUnitConversion(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterUnitConversion

protected abstract ClusterUnitConversion[] handleGetAllClusterUnitConversion(java.lang.Integer userId,
                                                                             java.lang.Integer[] registrationLocationIds,
                                                                             java.lang.Integer pageNumber,
                                                                             java.lang.Integer pageSize)
                                                                      throws java.lang.Exception
Performs the core logic for getAllClusterUnitConversion(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           UnitConversion entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.referential.conversion.UnitConversionDao, please note that the UnitConversionDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.

This method will return instances of these types:

If the integer argument value is unknown UnitConversionDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in UnitConversionDao
entity - an entity that was found
Returns:
the transformed entity (i.e. new value object, etc)
See Also:
transformEntities(int,java.util.Collection)

transformEntities

protected void transformEntities(int transform,
                                 java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.conversion.UnitConversion) method. This method does not instantiate a new collection.

This method is to be used internally only.

Parameters:
transform - one of the constants declared in fr.ifremer.allegro.referential.conversion.UnitConversionDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.conversion.UnitConversion)

toEntity

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

toRemoteUnitConversionFullVOCollection

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

Specified by:
toRemoteUnitConversionFullVOCollection in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionFullVOCollection(java.util.Collection)

toRemoteUnitConversionFullVOArray

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

Specified by:
toRemoteUnitConversionFullVOArray in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionFullVOArray(java.util.Collection)

toRemoteUnitConversionFullVO

protected RemoteUnitConversionFullVO toRemoteUnitConversionFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the UnitConversionDaoImpl class if you intend to use reporting queries.

See Also:
UnitConversionDao.toRemoteUnitConversionFullVO(fr.ifremer.allegro.referential.conversion.UnitConversion)

remoteUnitConversionFullVOToEntityCollection

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

Specified by:
remoteUnitConversionFullVOToEntityCollection in interface UnitConversionDao
See Also:
UnitConversionDao.remoteUnitConversionFullVOToEntityCollection(java.util.Collection)

toRemoteUnitConversionFullVO

public void toRemoteUnitConversionFullVO(UnitConversion source,
                                         RemoteUnitConversionFullVO target)
Description copied from interface: UnitConversionDao
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).

Specified by:
toRemoteUnitConversionFullVO in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionFullVO(fr.ifremer.allegro.referential.conversion.UnitConversion, fr.ifremer.allegro.referential.conversion.generic.vo.RemoteUnitConversionFullVO)

toRemoteUnitConversionFullVO

public RemoteUnitConversionFullVO toRemoteUnitConversionFullVO(UnitConversion entity)
Description copied from interface: UnitConversionDao
Converts this DAO's entity to an object of type RemoteUnitConversionFullVO.

Specified by:
toRemoteUnitConversionFullVO in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionFullVO(fr.ifremer.allegro.referential.conversion.UnitConversion)

remoteUnitConversionFullVOToEntity

public void remoteUnitConversionFullVOToEntity(RemoteUnitConversionFullVO source,
                                               UnitConversion target,
                                               boolean copyIfNull)
Description copied from interface: UnitConversionDao
Copies the fields of RemoteUnitConversionFullVO to the specified entity.

Specified by:
remoteUnitConversionFullVOToEntity in interface UnitConversionDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.conversion.UnitConversionDao#remoteUnitConversionFullVOToEntity(fr.ifremer.allegro.referential.conversion.generic.vo.RemoteUnitConversionFullVO, fr.ifremer.allegro.referential.conversion.UnitConversion)

toRemoteUnitConversionNaturalIdCollection

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

Specified by:
toRemoteUnitConversionNaturalIdCollection in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionNaturalIdCollection(java.util.Collection)

toRemoteUnitConversionNaturalIdArray

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

Specified by:
toRemoteUnitConversionNaturalIdArray in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionNaturalIdArray(java.util.Collection)

toRemoteUnitConversionNaturalId

protected RemoteUnitConversionNaturalId toRemoteUnitConversionNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the UnitConversionDaoImpl class if you intend to use reporting queries.

See Also:
UnitConversionDao.toRemoteUnitConversionNaturalId(fr.ifremer.allegro.referential.conversion.UnitConversion)

remoteUnitConversionNaturalIdToEntityCollection

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

Specified by:
remoteUnitConversionNaturalIdToEntityCollection in interface UnitConversionDao
See Also:
UnitConversionDao.remoteUnitConversionNaturalIdToEntityCollection(java.util.Collection)

toRemoteUnitConversionNaturalId

public void toRemoteUnitConversionNaturalId(UnitConversion source,
                                            RemoteUnitConversionNaturalId target)
Description copied from interface: UnitConversionDao
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).

Specified by:
toRemoteUnitConversionNaturalId in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionNaturalId(fr.ifremer.allegro.referential.conversion.UnitConversion, fr.ifremer.allegro.referential.conversion.generic.vo.RemoteUnitConversionNaturalId)

toRemoteUnitConversionNaturalId

public RemoteUnitConversionNaturalId toRemoteUnitConversionNaturalId(UnitConversion entity)
Description copied from interface: UnitConversionDao
Converts this DAO's entity to an object of type RemoteUnitConversionNaturalId.

Specified by:
toRemoteUnitConversionNaturalId in interface UnitConversionDao
See Also:
UnitConversionDao.toRemoteUnitConversionNaturalId(fr.ifremer.allegro.referential.conversion.UnitConversion)

remoteUnitConversionNaturalIdToEntity

public void remoteUnitConversionNaturalIdToEntity(RemoteUnitConversionNaturalId source,
                                                  UnitConversion target,
                                                  boolean copyIfNull)
Description copied from interface: UnitConversionDao
Copies the fields of RemoteUnitConversionNaturalId to the specified entity.

Specified by:
remoteUnitConversionNaturalIdToEntity in interface UnitConversionDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.conversion.UnitConversionDao#remoteUnitConversionNaturalIdToEntity(fr.ifremer.allegro.referential.conversion.generic.vo.RemoteUnitConversionNaturalId, fr.ifremer.allegro.referential.conversion.UnitConversion)

toClusterUnitConversionCollection

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

Specified by:
toClusterUnitConversionCollection in interface UnitConversionDao
See Also:
UnitConversionDao.toClusterUnitConversionCollection(java.util.Collection)

toClusterUnitConversionArray

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

Specified by:
toClusterUnitConversionArray in interface UnitConversionDao
See Also:
UnitConversionDao.toClusterUnitConversionArray(java.util.Collection)

toClusterUnitConversion

protected ClusterUnitConversion toClusterUnitConversion(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the UnitConversionDaoImpl class if you intend to use reporting queries.

See Also:
UnitConversionDao.toClusterUnitConversion(fr.ifremer.allegro.referential.conversion.UnitConversion)

clusterUnitConversionToEntityCollection

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

Specified by:
clusterUnitConversionToEntityCollection in interface UnitConversionDao
See Also:
UnitConversionDao.clusterUnitConversionToEntityCollection(java.util.Collection)

toClusterUnitConversion

public void toClusterUnitConversion(UnitConversion source,
                                    ClusterUnitConversion target)
Description copied from interface: UnitConversionDao
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).

Specified by:
toClusterUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.toClusterUnitConversion(fr.ifremer.allegro.referential.conversion.UnitConversion, fr.ifremer.allegro.referential.conversion.generic.cluster.ClusterUnitConversion)

toClusterUnitConversion

public ClusterUnitConversion toClusterUnitConversion(UnitConversion entity)
Description copied from interface: UnitConversionDao
Converts this DAO's entity to an object of type ClusterUnitConversion.

Specified by:
toClusterUnitConversion in interface UnitConversionDao
See Also:
UnitConversionDao.toClusterUnitConversion(fr.ifremer.allegro.referential.conversion.UnitConversion)

clusterUnitConversionToEntity

public void clusterUnitConversionToEntity(ClusterUnitConversion source,
                                          UnitConversion target,
                                          boolean copyIfNull)
Description copied from interface: UnitConversionDao
Copies the fields of ClusterUnitConversion to the specified entity.

Specified by:
clusterUnitConversionToEntity in interface UnitConversionDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.conversion.UnitConversionDao#clusterUnitConversionToEntity(fr.ifremer.allegro.referential.conversion.generic.cluster.ClusterUnitConversion, fr.ifremer.allegro.referential.conversion.UnitConversion)

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

search

public PaginationResult search(int transform,
                               int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: UnitConversionDao
Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface UnitConversionDao
Parameters:
transform - the transformation flag.
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
UnitConversionDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: UnitConversionDao
Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface UnitConversionDao
Parameters:
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
UnitConversionDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: UnitConversionDao
Does the same thing as UnitConversionDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.