fr.ifremer.allegro.referential.pmfm
Class FractionDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.pmfm.FractionDaoBase
All Implemented Interfaces:
FractionDao
Direct Known Subclasses:
FractionDaoImpl

public abstract class FractionDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements FractionDao

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

See Also:
Fraction

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.pmfm.FractionDao
TRANSFORM_CLUSTERFRACTION, TRANSFORM_NONE, TRANSFORM_REMOTEFRACTIONFULLVO, TRANSFORM_REMOTEFRACTIONNATURALID
 
Constructor Summary
FractionDaoBase()
           
 
Method Summary
 void clusterFractionToEntity(ClusterFraction source, Fraction target, boolean copyIfNull)
          Copies the fields of ClusterFraction to the specified entity.
 void clusterFractionToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterFraction to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.pmfm.Fraction and adds from the passed in entities collection
 Fraction create(java.util.Date creationDate, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Fraction instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Fraction create(Fraction fraction)
          Creates an instance of fr.ifremer.allegro.referential.pmfm.Fraction and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as FractionDao.create(fr.ifremer.allegro.referential.pmfm.Fraction) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date creationDate, java.lang.String name, Status status)
           Does the same thing as FractionDao.create(java.util.Date,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, Fraction fraction)
           Does the same thing as FractionDao.create(fr.ifremer.allegro.referential.pmfm.Fraction) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection matrixes, Status status)
           Does the same thing as FractionDao.create(java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 Fraction create(java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection matrixes, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Fraction instance from all attributes and properties and adds it to the persistent store.
 Fraction createFromClusterFraction(ClusterFraction clusterFraction)
           
 Fraction findFractionById(java.lang.Integer id)
           
 java.lang.Object findFractionById(int transform, java.lang.Integer id)
           Does the same thing as FractionDao.findFractionById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findFractionById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as FractionDao.findFractionById(int, java.lang.Integer) with an additional argument called queryString.
 Fraction findFractionById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as FractionDao.findFractionById(java.lang.Integer) with an additional argument called queryString.
 Fraction findFractionByNaturalId(java.lang.Integer id)
           
 java.lang.Object findFractionByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as FractionDao.findFractionByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findFractionByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as FractionDao.findFractionByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Fraction findFractionByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as FractionDao.findFractionByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findFractionByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as FractionDao.findFractionByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFractionByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as FractionDao.findFractionByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFractionByStatus(int transform, Status status)
           Does the same thing as FractionDao.findFractionByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findFractionByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as FractionDao.findFractionByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFractionByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as FractionDao.findFractionByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findFractionByStatus(Status status)
           
 java.util.Collection findFractionByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as FractionDao.findFractionByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findFractionByStatus(java.lang.String queryString, Status status)
           Does the same thing as FractionDao.findFractionByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterFraction[] getAllClusterFractionSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllFraction()
           
 java.util.Collection getAllFraction(int transform)
           Does the same thing as FractionDao.getAllFraction() with an additional flag called transform.
 java.util.Collection getAllFraction(int pageNumber, int pageSize)
           Does the same thing as FractionDao.getAllFraction() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFraction(int transform, int pageNumber, int pageSize)
           Does the same thing as FractionDao.getAllFraction(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFraction(int transform, java.lang.String queryString)
           Does the same thing as FractionDao.getAllFraction(int) with an additional argument called queryString.
 java.util.Collection getAllFraction(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as FractionDao.getAllFraction(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFraction(java.lang.String queryString)
           Does the same thing as FractionDao.getAllFraction() with an additional argument called queryString.
 java.util.Collection getAllFraction(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as FractionDao.getAllFraction(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFractionSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFractionSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFractionSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFractionSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllFractionSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllFractionSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllFractionSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as FractionDao.getAllFractionSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllFractionSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  MatrixDao getMatrixDao()
          Gets the reference to matrixDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  Fraction handleCreateFromClusterFraction(ClusterFraction clusterFraction)
          Performs the core logic for createFromClusterFraction(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterFraction)
protected abstract  ClusterFraction[] handleGetAllClusterFractionSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterFractionSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Fraction load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.pmfm.Fraction from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as FractionDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Fraction.
 java.util.Collection loadAll(int transform)
           Does the same thing as FractionDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as FractionDao.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 FractionDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteFractionFullVOToEntity(RemoteFractionFullVO source, Fraction target, boolean copyIfNull)
          Copies the fields of RemoteFractionFullVO to the specified entity.
 void remoteFractionFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteFractionFullVO to this DAO's entity.
 void remoteFractionNaturalIdToEntity(RemoteFractionNaturalId source, Fraction target, boolean copyIfNull)
          Copies the fields of RemoteFractionNaturalId to the specified entity.
 void remoteFractionNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteFractionNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Fraction fraction)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Fraction from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Fraction having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as FractionDao.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 setMatrixDao(MatrixDao matrixDao)
          Sets the reference to matrixDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterFraction toClusterFraction(Fraction entity)
          Converts this DAO's entity to an object of type ClusterFraction.
 void toClusterFraction(Fraction source, ClusterFraction target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterFraction toClusterFraction(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterFraction[] toClusterFractionArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterFraction.
 void toClusterFractionCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterFraction.
protected  Fraction toEntity(java.lang.Object[] row)
           
 RemoteFractionFullVO toRemoteFractionFullVO(Fraction entity)
          Converts this DAO's entity to an object of type RemoteFractionFullVO.
 void toRemoteFractionFullVO(Fraction source, RemoteFractionFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteFractionFullVO toRemoteFractionFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteFractionFullVO[] toRemoteFractionFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteFractionFullVO.
 void toRemoteFractionFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteFractionFullVO.
 RemoteFractionNaturalId toRemoteFractionNaturalId(Fraction entity)
          Converts this DAO's entity to an object of type RemoteFractionNaturalId.
 void toRemoteFractionNaturalId(Fraction source, RemoteFractionNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteFractionNaturalId toRemoteFractionNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteFractionNaturalId[] toRemoteFractionNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteFractionNaturalId.
 void toRemoteFractionNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteFractionNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.pmfm.Fraction) method.
protected  java.lang.Object transformEntity(int transform, Fraction 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.pmfm.FractionDao, please note that the FractionDao.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(Fraction fraction)
          Updates the fraction 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.pmfm.FractionDao
clusterFractionToEntity, remoteFractionFullVOToEntity, remoteFractionNaturalIdToEntity
 

Constructor Detail

FractionDaoBase

public FractionDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setMatrixDao

public void setMatrixDao(MatrixDao matrixDao)
Sets the reference to matrixDao.


getMatrixDao

protected MatrixDao getMatrixDao()
Gets the reference to matrixDao.


load

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

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

Specified by:
load in interface FractionDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
FractionDao.load(int, java.lang.Integer)

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public Fraction create(Fraction fraction)
Description copied from interface: FractionDao
Creates an instance of fr.ifremer.allegro.referential.pmfm.Fraction and adds it to the persistent store.

Specified by:
create in interface FractionDao
See Also:
FractionDao.create(fr.ifremer.allegro.referential.pmfm.Fraction)

create

public java.lang.Object create(int transform,
                               Fraction fraction)
Description copied from interface: FractionDao

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

create

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

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

create

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

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

create

public Fraction create(java.lang.String name,
                       java.lang.String description,
                       java.util.Date creationDate,
                       java.sql.Timestamp updateDate,
                       java.util.Collection matrixes,
                       Status status)
Description copied from interface: FractionDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String description,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection matrixes,
                               Status status)
Description copied from interface: FractionDao

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

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

create

public Fraction create(java.util.Date creationDate,
                       java.lang.String name,
                       Status status)
Description copied from interface: FractionDao

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

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

create

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

Does the same thing as FractionDao.create(java.util.Date,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOTWILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

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

update

public void update(Fraction fraction)
Description copied from interface: FractionDao
Updates the fraction instance in the persistent store.

Specified by:
update in interface FractionDao
See Also:
FractionDao.update(fr.ifremer.allegro.referential.pmfm.Fraction)

update

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

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

remove

public void remove(Fraction fraction)
Description copied from interface: FractionDao
Removes the instance of fr.ifremer.allegro.referential.pmfm.Fraction from the persistent store.

Specified by:
remove in interface FractionDao
See Also:
FractionDao.remove(fr.ifremer.allegro.referential.pmfm.Fraction)

remove

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

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

remove

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

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

getAllFraction

public java.util.Collection getAllFraction()
Specified by:
getAllFraction in interface FractionDao
See Also:
FractionDao.getAllFraction()

getAllFraction

public java.util.Collection getAllFraction(int transform)
Description copied from interface: FractionDao

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

getAllFraction

public java.util.Collection getAllFraction(java.lang.String queryString)
Description copied from interface: FractionDao

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

Specified by:
getAllFraction in interface FractionDao
See Also:
FractionDao.getAllFraction(java.lang.String)

getAllFraction

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

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

getAllFraction

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

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

getAllFraction

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

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

Specified by:
getAllFraction in interface FractionDao
See Also:
FractionDao.getAllFraction(int, String)

getAllFraction

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

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

getAllFraction

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

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

findFractionById

public Fraction findFractionById(java.lang.Integer id)
Specified by:
findFractionById in interface FractionDao
See Also:
FractionDao.findFractionById(java.lang.Integer)

findFractionById

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

Does the same thing as FractionDao.findFractionById(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findFractionById in interface FractionDao
See Also:
FractionDao.findFractionById(int, java.lang.Integer)

findFractionById

public Fraction findFractionById(java.lang.String queryString,
                                 java.lang.Integer id)
Description copied from interface: FractionDao

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

Specified by:
findFractionById in interface FractionDao
See Also:
FractionDao.findFractionById(java.lang.String, java.lang.Integer)

findFractionById

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

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

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

findFractionByStatus

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

findFractionByStatus

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

Does the same thing as FractionDao.findFractionByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findFractionByStatus in interface FractionDao
See Also:
FractionDao.findFractionByStatus(int, fr.ifremer.allegro.referential.Status)

findFractionByStatus

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

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

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

findFractionByStatus

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

Does the same thing as FractionDao.findFractionByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findFractionByStatus in interface FractionDao
See Also:
FractionDao.findFractionByStatus(int, int, fr.ifremer.allegro.referential.Status)

findFractionByStatus

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

Does the same thing as FractionDao.findFractionByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

findFractionByStatus

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

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

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

findFractionByStatus

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

Does the same thing as FractionDao.findFractionByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findFractionByStatus in interface FractionDao
See Also:
FractionDao.findFractionByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findFractionByStatus

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

Does the same thing as FractionDao.findFractionByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findFractionByStatus in interface FractionDao
See Also:
FractionDao.findFractionByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)

findFractionByNaturalId

public Fraction findFractionByNaturalId(java.lang.Integer id)
Specified by:
findFractionByNaturalId in interface FractionDao
See Also:
FractionDao.findFractionByNaturalId(java.lang.Integer)

findFractionByNaturalId

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

Does the same thing as FractionDao.findFractionByNaturalId(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findFractionByNaturalId in interface FractionDao
See Also:
FractionDao.findFractionByNaturalId(int, java.lang.Integer)

findFractionByNaturalId

public Fraction findFractionByNaturalId(java.lang.String queryString,
                                        java.lang.Integer id)
Description copied from interface: FractionDao

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

Specified by:
findFractionByNaturalId in interface FractionDao
See Also:
FractionDao.findFractionByNaturalId(java.lang.String, java.lang.Integer)

findFractionByNaturalId

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

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

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

getAllFractionSinceDateSynchro

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

getAllFractionSinceDateSynchro

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

Does the same thing as FractionDao.getAllFractionSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
getAllFractionSinceDateSynchro in interface FractionDao
See Also:
FractionDao.getAllFractionSinceDateSynchro(int, java.sql.Timestamp)

getAllFractionSinceDateSynchro

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

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

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

getAllFractionSinceDateSynchro

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

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

Specified by:
getAllFractionSinceDateSynchro in interface FractionDao
See Also:
FractionDao.getAllFractionSinceDateSynchro(int, int, java.sql.Timestamp)

getAllFractionSinceDateSynchro

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

Does the same thing as FractionDao.getAllFractionSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

getAllFractionSinceDateSynchro

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

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

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

getAllFractionSinceDateSynchro

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

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

Specified by:
getAllFractionSinceDateSynchro in interface FractionDao
See Also:
FractionDao.getAllFractionSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllFractionSinceDateSynchro

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

Does the same thing as FractionDao.getAllFractionSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllFractionSinceDateSynchro in interface FractionDao
See Also:
FractionDao.getAllFractionSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterFraction

public Fraction createFromClusterFraction(ClusterFraction clusterFraction)
Specified by:
createFromClusterFraction in interface FractionDao
See Also:
FractionDao.createFromClusterFraction(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterFraction)

handleCreateFromClusterFraction

protected abstract Fraction handleCreateFromClusterFraction(ClusterFraction clusterFraction)
                                                     throws java.lang.Exception
Performs the core logic for createFromClusterFraction(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterFraction)

Throws:
java.lang.Exception

getAllClusterFractionSinceDateSynchro

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

handleGetAllClusterFractionSinceDateSynchro

protected abstract ClusterFraction[] handleGetAllClusterFractionSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                                 java.lang.Integer userId,
                                                                                 java.lang.Integer[] registrationLocationIds,
                                                                                 java.lang.Integer pageNumber,
                                                                                 java.lang.Integer pageSize)
                                                                          throws java.lang.Exception
Performs the core logic for getAllClusterFractionSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           Fraction 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.pmfm.FractionDao, please note that the FractionDao.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 FractionDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteFractionFullVOCollection

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

Specified by:
toRemoteFractionFullVOCollection in interface FractionDao
See Also:
FractionDao.toRemoteFractionFullVOCollection(java.util.Collection)

toRemoteFractionFullVOArray

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

Specified by:
toRemoteFractionFullVOArray in interface FractionDao
See Also:
FractionDao.toRemoteFractionFullVOArray(java.util.Collection)

toRemoteFractionFullVO

protected RemoteFractionFullVO toRemoteFractionFullVO(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 FractionDaoImpl class if you intend to use reporting queries.

See Also:
FractionDao.toRemoteFractionFullVO(fr.ifremer.allegro.referential.pmfm.Fraction)

remoteFractionFullVOToEntityCollection

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

Specified by:
remoteFractionFullVOToEntityCollection in interface FractionDao
See Also:
FractionDao.remoteFractionFullVOToEntityCollection(java.util.Collection)

toRemoteFractionFullVO

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

toRemoteFractionFullVO

public RemoteFractionFullVO toRemoteFractionFullVO(Fraction entity)
Description copied from interface: FractionDao
Converts this DAO's entity to an object of type RemoteFractionFullVO.

Specified by:
toRemoteFractionFullVO in interface FractionDao
See Also:
FractionDao.toRemoteFractionFullVO(fr.ifremer.allegro.referential.pmfm.Fraction)

remoteFractionFullVOToEntity

public void remoteFractionFullVOToEntity(RemoteFractionFullVO source,
                                         Fraction target,
                                         boolean copyIfNull)
Description copied from interface: FractionDao
Copies the fields of RemoteFractionFullVO to the specified entity.

Specified by:
remoteFractionFullVOToEntity in interface FractionDao
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.pmfm.FractionDao#remoteFractionFullVOToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteFractionFullVO, fr.ifremer.allegro.referential.pmfm.Fraction)

toRemoteFractionNaturalIdCollection

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

Specified by:
toRemoteFractionNaturalIdCollection in interface FractionDao
See Also:
FractionDao.toRemoteFractionNaturalIdCollection(java.util.Collection)

toRemoteFractionNaturalIdArray

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

Specified by:
toRemoteFractionNaturalIdArray in interface FractionDao
See Also:
FractionDao.toRemoteFractionNaturalIdArray(java.util.Collection)

toRemoteFractionNaturalId

protected RemoteFractionNaturalId toRemoteFractionNaturalId(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 FractionDaoImpl class if you intend to use reporting queries.

See Also:
FractionDao.toRemoteFractionNaturalId(fr.ifremer.allegro.referential.pmfm.Fraction)

remoteFractionNaturalIdToEntityCollection

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

Specified by:
remoteFractionNaturalIdToEntityCollection in interface FractionDao
See Also:
FractionDao.remoteFractionNaturalIdToEntityCollection(java.util.Collection)

toRemoteFractionNaturalId

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

toRemoteFractionNaturalId

public RemoteFractionNaturalId toRemoteFractionNaturalId(Fraction entity)
Description copied from interface: FractionDao
Converts this DAO's entity to an object of type RemoteFractionNaturalId.

Specified by:
toRemoteFractionNaturalId in interface FractionDao
See Also:
FractionDao.toRemoteFractionNaturalId(fr.ifremer.allegro.referential.pmfm.Fraction)

remoteFractionNaturalIdToEntity

public void remoteFractionNaturalIdToEntity(RemoteFractionNaturalId source,
                                            Fraction target,
                                            boolean copyIfNull)
Description copied from interface: FractionDao
Copies the fields of RemoteFractionNaturalId to the specified entity.

Specified by:
remoteFractionNaturalIdToEntity in interface FractionDao
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.pmfm.FractionDao#remoteFractionNaturalIdToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteFractionNaturalId, fr.ifremer.allegro.referential.pmfm.Fraction)

toClusterFractionCollection

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

Specified by:
toClusterFractionCollection in interface FractionDao
See Also:
FractionDao.toClusterFractionCollection(java.util.Collection)

toClusterFractionArray

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

Specified by:
toClusterFractionArray in interface FractionDao
See Also:
FractionDao.toClusterFractionArray(java.util.Collection)

toClusterFraction

protected ClusterFraction toClusterFraction(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 FractionDaoImpl class if you intend to use reporting queries.

See Also:
FractionDao.toClusterFraction(fr.ifremer.allegro.referential.pmfm.Fraction)

clusterFractionToEntityCollection

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

Specified by:
clusterFractionToEntityCollection in interface FractionDao
See Also:
FractionDao.clusterFractionToEntityCollection(java.util.Collection)

toClusterFraction

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

toClusterFraction

public ClusterFraction toClusterFraction(Fraction entity)
Description copied from interface: FractionDao
Converts this DAO's entity to an object of type ClusterFraction.

Specified by:
toClusterFraction in interface FractionDao
See Also:
FractionDao.toClusterFraction(fr.ifremer.allegro.referential.pmfm.Fraction)

clusterFractionToEntity

public void clusterFractionToEntity(ClusterFraction source,
                                    Fraction target,
                                    boolean copyIfNull)
Description copied from interface: FractionDao
Copies the fields of ClusterFraction to the specified entity.

Specified by:
clusterFractionToEntity in interface FractionDao
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.pmfm.FractionDao#clusterFractionToEntity(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterFraction, fr.ifremer.allegro.referential.pmfm.Fraction)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.