fr.ifremer.allegro.referential.pmfm
Class MatrixDaoBase

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

public abstract class MatrixDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements MatrixDao

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

See Also:
Matrix

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.pmfm.MatrixDao
TRANSFORM_CLUSTERMATRIX, TRANSFORM_NONE, TRANSFORM_REMOTEMATRIXFULLVO, TRANSFORM_REMOTEMATRIXNATURALID
 
Constructor Summary
MatrixDaoBase()
           
 
Method Summary
 void clusterMatrixToEntity(ClusterMatrix source, Matrix target, boolean copyIfNull)
          Copies the fields of ClusterMatrix to the specified entity.
 void clusterMatrixToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterMatrix to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.pmfm.Matrix and adds from the passed in entities collection
 Matrix create(java.util.Date creationDate, java.util.Collection fractions, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Matrix instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as MatrixDao.create(fr.ifremer.allegro.referential.pmfm.Matrix) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date creationDate, java.util.Collection fractions, java.lang.String name, Status status)
           Does the same thing as MatrixDao.create(java.util.Date,java.util.Collection,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, Matrix matrix)
           Does the same thing as MatrixDao.create(fr.ifremer.allegro.referential.pmfm.Matrix) 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 fractions, Status status)
           Does the same thing as MatrixDao.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.
 Matrix create(Matrix matrix)
          Creates an instance of fr.ifremer.allegro.referential.pmfm.Matrix and adds it to the persistent store.
 Matrix create(java.lang.String name, java.lang.String description, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection fractions, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Matrix instance from all attributes and properties and adds it to the persistent store.
 Matrix createFromClusterMatrix(ClusterMatrix clusterMatrix)
           
 Matrix findMatrixById(java.lang.Integer id)
           
 java.lang.Object findMatrixById(int transform, java.lang.Integer id)
           Does the same thing as MatrixDao.findMatrixById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findMatrixById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MatrixDao.findMatrixById(int, java.lang.Integer) with an additional argument called queryString.
 Matrix findMatrixById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MatrixDao.findMatrixById(java.lang.Integer) with an additional argument called queryString.
 Matrix findMatrixByNaturalId(java.lang.Integer id)
           
 java.lang.Object findMatrixByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as MatrixDao.findMatrixByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findMatrixByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MatrixDao.findMatrixByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Matrix findMatrixByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MatrixDao.findMatrixByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findMatrixByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMatrixByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMatrixByStatus(int transform, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findMatrixByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMatrixByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findMatrixByStatus(Status status)
           
 java.util.Collection findMatrixByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMatrixByStatus(java.lang.String queryString, Status status)
           Does the same thing as MatrixDao.findMatrixByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterMatrix[] getAllClusterMatrixSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllMatrix()
           
 java.util.Collection getAllMatrix(int transform)
           Does the same thing as MatrixDao.getAllMatrix() with an additional flag called transform.
 java.util.Collection getAllMatrix(int pageNumber, int pageSize)
           Does the same thing as MatrixDao.getAllMatrix() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrix(int transform, int pageNumber, int pageSize)
           Does the same thing as MatrixDao.getAllMatrix(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrix(int transform, java.lang.String queryString)
           Does the same thing as MatrixDao.getAllMatrix(int) with an additional argument called queryString.
 java.util.Collection getAllMatrix(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as MatrixDao.getAllMatrix(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrix(java.lang.String queryString)
           Does the same thing as MatrixDao.getAllMatrix() with an additional argument called queryString.
 java.util.Collection getAllMatrix(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as MatrixDao.getAllMatrix(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrixSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrixSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrixSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrixSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMatrixSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllMatrixSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMatrixSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as MatrixDao.getAllMatrixSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMatrixSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  FractionDao getFractionDao()
          Gets the reference to fractionDao.
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  Matrix handleCreateFromClusterMatrix(ClusterMatrix clusterMatrix)
          Performs the core logic for createFromClusterMatrix(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMatrix)
protected abstract  ClusterMatrix[] handleGetAllClusterMatrixSinceDateSynchro(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 getAllClusterMatrixSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Matrix load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.pmfm.Matrix from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as MatrixDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Matrix.
 java.util.Collection loadAll(int transform)
           Does the same thing as MatrixDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as MatrixDao.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 MatrixDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteMatrixFullVOToEntity(RemoteMatrixFullVO source, Matrix target, boolean copyIfNull)
          Copies the fields of RemoteMatrixFullVO to the specified entity.
 void remoteMatrixFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteMatrixFullVO to this DAO's entity.
 void remoteMatrixNaturalIdToEntity(RemoteMatrixNaturalId source, Matrix target, boolean copyIfNull)
          Copies the fields of RemoteMatrixNaturalId to the specified entity.
 void remoteMatrixNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteMatrixNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Matrix having the given identifier from the persistent store.
 void remove(Matrix matrix)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Matrix 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 MatrixDao.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 setFractionDao(FractionDao fractionDao)
          Sets the reference to fractionDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterMatrix toClusterMatrix(Matrix entity)
          Converts this DAO's entity to an object of type ClusterMatrix.
 void toClusterMatrix(Matrix source, ClusterMatrix target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterMatrix toClusterMatrix(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterMatrix[] toClusterMatrixArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterMatrix.
 void toClusterMatrixCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterMatrix.
protected  Matrix toEntity(java.lang.Object[] row)
           
 RemoteMatrixFullVO toRemoteMatrixFullVO(Matrix entity)
          Converts this DAO's entity to an object of type RemoteMatrixFullVO.
 void toRemoteMatrixFullVO(Matrix source, RemoteMatrixFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteMatrixFullVO toRemoteMatrixFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteMatrixFullVO[] toRemoteMatrixFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteMatrixFullVO.
 void toRemoteMatrixFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteMatrixFullVO.
 RemoteMatrixNaturalId toRemoteMatrixNaturalId(Matrix entity)
          Converts this DAO's entity to an object of type RemoteMatrixNaturalId.
 void toRemoteMatrixNaturalId(Matrix source, RemoteMatrixNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteMatrixNaturalId toRemoteMatrixNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteMatrixNaturalId[] toRemoteMatrixNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteMatrixNaturalId.
 void toRemoteMatrixNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteMatrixNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.pmfm.Matrix) method.
protected  java.lang.Object transformEntity(int transform, Matrix 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.MatrixDao, please note that the MatrixDao.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(Matrix matrix)
          Updates the matrix 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.MatrixDao
clusterMatrixToEntity, remoteMatrixFullVOToEntity, remoteMatrixNaturalIdToEntity
 

Constructor Detail

MatrixDaoBase

public MatrixDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setFractionDao

public void setFractionDao(FractionDao fractionDao)
Sets the reference to fractionDao.


getFractionDao

protected FractionDao getFractionDao()
Gets the reference to fractionDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               Matrix matrix)
Description copied from interface: MatrixDao

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

create

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

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

create

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

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

create

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

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

Specified by:
create in interface MatrixDao
See Also:
MatrixDao.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 fractions,
                               Status status)
Description copied from interface: MatrixDao

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

create

public Matrix create(java.util.Date creationDate,
                     java.util.Collection fractions,
                     java.lang.String name,
                     Status status)
Description copied from interface: MatrixDao

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

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

create

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

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

update

public void update(Matrix matrix)
Description copied from interface: MatrixDao
Updates the matrix instance in the persistent store.

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

update

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

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

remove

public void remove(Matrix matrix)
Description copied from interface: MatrixDao
Removes the instance of fr.ifremer.allegro.referential.pmfm.Matrix from the persistent store.

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

remove

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

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

remove

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

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

getAllMatrix

public java.util.Collection getAllMatrix()
Specified by:
getAllMatrix in interface MatrixDao
See Also:
MatrixDao.getAllMatrix()

getAllMatrix

public java.util.Collection getAllMatrix(int transform)
Description copied from interface: MatrixDao

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

getAllMatrix

public java.util.Collection getAllMatrix(java.lang.String queryString)
Description copied from interface: MatrixDao

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

Specified by:
getAllMatrix in interface MatrixDao
See Also:
MatrixDao.getAllMatrix(java.lang.String)

getAllMatrix

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

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

getAllMatrix

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

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

getAllMatrix

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

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

Specified by:
getAllMatrix in interface MatrixDao
See Also:
MatrixDao.getAllMatrix(int, String)

getAllMatrix

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

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

getAllMatrix

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

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

findMatrixById

public Matrix findMatrixById(java.lang.Integer id)
Specified by:
findMatrixById in interface MatrixDao
See Also:
MatrixDao.findMatrixById(java.lang.Integer)

findMatrixById

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

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

findMatrixById

public Matrix findMatrixById(java.lang.String queryString,
                             java.lang.Integer id)
Description copied from interface: MatrixDao

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

Specified by:
findMatrixById in interface MatrixDao
See Also:
MatrixDao.findMatrixById(java.lang.String, java.lang.Integer)

findMatrixById

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

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

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

findMatrixByStatus

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

findMatrixByStatus

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

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

findMatrixByStatus

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

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

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

findMatrixByStatus

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

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

findMatrixByStatus

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

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

findMatrixByStatus

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

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

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

findMatrixByStatus

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

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

findMatrixByStatus

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

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

findMatrixByNaturalId

public Matrix findMatrixByNaturalId(java.lang.Integer id)
Specified by:
findMatrixByNaturalId in interface MatrixDao
See Also:
MatrixDao.findMatrixByNaturalId(java.lang.Integer)

findMatrixByNaturalId

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

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

findMatrixByNaturalId

public Matrix findMatrixByNaturalId(java.lang.String queryString,
                                    java.lang.Integer id)
Description copied from interface: MatrixDao

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

Specified by:
findMatrixByNaturalId in interface MatrixDao
See Also:
MatrixDao.findMatrixByNaturalId(java.lang.String, java.lang.Integer)

findMatrixByNaturalId

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

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

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

getAllMatrixSinceDateSynchro

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

getAllMatrixSinceDateSynchro

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

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

getAllMatrixSinceDateSynchro

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

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

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

getAllMatrixSinceDateSynchro

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

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

getAllMatrixSinceDateSynchro

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

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

getAllMatrixSinceDateSynchro

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

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

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

getAllMatrixSinceDateSynchro

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

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

getAllMatrixSinceDateSynchro

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

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

createFromClusterMatrix

public Matrix createFromClusterMatrix(ClusterMatrix clusterMatrix)
Specified by:
createFromClusterMatrix in interface MatrixDao
See Also:
MatrixDao.createFromClusterMatrix(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMatrix)

handleCreateFromClusterMatrix

protected abstract Matrix handleCreateFromClusterMatrix(ClusterMatrix clusterMatrix)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterMatrix(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMatrix)

Throws:
java.lang.Exception

getAllClusterMatrixSinceDateSynchro

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

handleGetAllClusterMatrixSinceDateSynchro

protected abstract ClusterMatrix[] handleGetAllClusterMatrixSinceDateSynchro(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 getAllClusterMatrixSinceDateSynchro(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,
                                           Matrix 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.MatrixDao, please note that the MatrixDao.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 MatrixDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteMatrixFullVOCollection

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

Specified by:
toRemoteMatrixFullVOCollection in interface MatrixDao
See Also:
MatrixDao.toRemoteMatrixFullVOCollection(java.util.Collection)

toRemoteMatrixFullVOArray

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

Specified by:
toRemoteMatrixFullVOArray in interface MatrixDao
See Also:
MatrixDao.toRemoteMatrixFullVOArray(java.util.Collection)

toRemoteMatrixFullVO

protected RemoteMatrixFullVO toRemoteMatrixFullVO(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 MatrixDaoImpl class if you intend to use reporting queries.

See Also:
MatrixDao.toRemoteMatrixFullVO(fr.ifremer.allegro.referential.pmfm.Matrix)

remoteMatrixFullVOToEntityCollection

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

Specified by:
remoteMatrixFullVOToEntityCollection in interface MatrixDao
See Also:
MatrixDao.remoteMatrixFullVOToEntityCollection(java.util.Collection)

toRemoteMatrixFullVO

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

toRemoteMatrixFullVO

public RemoteMatrixFullVO toRemoteMatrixFullVO(Matrix entity)
Description copied from interface: MatrixDao
Converts this DAO's entity to an object of type RemoteMatrixFullVO.

Specified by:
toRemoteMatrixFullVO in interface MatrixDao
See Also:
MatrixDao.toRemoteMatrixFullVO(fr.ifremer.allegro.referential.pmfm.Matrix)

remoteMatrixFullVOToEntity

public void remoteMatrixFullVOToEntity(RemoteMatrixFullVO source,
                                       Matrix target,
                                       boolean copyIfNull)
Description copied from interface: MatrixDao
Copies the fields of RemoteMatrixFullVO to the specified entity.

Specified by:
remoteMatrixFullVOToEntity in interface MatrixDao
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.MatrixDao#remoteMatrixFullVOToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMatrixFullVO, fr.ifremer.allegro.referential.pmfm.Matrix)

toRemoteMatrixNaturalIdCollection

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

Specified by:
toRemoteMatrixNaturalIdCollection in interface MatrixDao
See Also:
MatrixDao.toRemoteMatrixNaturalIdCollection(java.util.Collection)

toRemoteMatrixNaturalIdArray

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

Specified by:
toRemoteMatrixNaturalIdArray in interface MatrixDao
See Also:
MatrixDao.toRemoteMatrixNaturalIdArray(java.util.Collection)

toRemoteMatrixNaturalId

protected RemoteMatrixNaturalId toRemoteMatrixNaturalId(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 MatrixDaoImpl class if you intend to use reporting queries.

See Also:
MatrixDao.toRemoteMatrixNaturalId(fr.ifremer.allegro.referential.pmfm.Matrix)

remoteMatrixNaturalIdToEntityCollection

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

Specified by:
remoteMatrixNaturalIdToEntityCollection in interface MatrixDao
See Also:
MatrixDao.remoteMatrixNaturalIdToEntityCollection(java.util.Collection)

toRemoteMatrixNaturalId

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

toRemoteMatrixNaturalId

public RemoteMatrixNaturalId toRemoteMatrixNaturalId(Matrix entity)
Description copied from interface: MatrixDao
Converts this DAO's entity to an object of type RemoteMatrixNaturalId.

Specified by:
toRemoteMatrixNaturalId in interface MatrixDao
See Also:
MatrixDao.toRemoteMatrixNaturalId(fr.ifremer.allegro.referential.pmfm.Matrix)

remoteMatrixNaturalIdToEntity

public void remoteMatrixNaturalIdToEntity(RemoteMatrixNaturalId source,
                                          Matrix target,
                                          boolean copyIfNull)
Description copied from interface: MatrixDao
Copies the fields of RemoteMatrixNaturalId to the specified entity.

Specified by:
remoteMatrixNaturalIdToEntity in interface MatrixDao
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.MatrixDao#remoteMatrixNaturalIdToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMatrixNaturalId, fr.ifremer.allegro.referential.pmfm.Matrix)

toClusterMatrixCollection

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

Specified by:
toClusterMatrixCollection in interface MatrixDao
See Also:
MatrixDao.toClusterMatrixCollection(java.util.Collection)

toClusterMatrixArray

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

Specified by:
toClusterMatrixArray in interface MatrixDao
See Also:
MatrixDao.toClusterMatrixArray(java.util.Collection)

toClusterMatrix

protected ClusterMatrix toClusterMatrix(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 MatrixDaoImpl class if you intend to use reporting queries.

See Also:
MatrixDao.toClusterMatrix(fr.ifremer.allegro.referential.pmfm.Matrix)

clusterMatrixToEntityCollection

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

Specified by:
clusterMatrixToEntityCollection in interface MatrixDao
See Also:
MatrixDao.clusterMatrixToEntityCollection(java.util.Collection)

toClusterMatrix

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

toClusterMatrix

public ClusterMatrix toClusterMatrix(Matrix entity)
Description copied from interface: MatrixDao
Converts this DAO's entity to an object of type ClusterMatrix.

Specified by:
toClusterMatrix in interface MatrixDao
See Also:
MatrixDao.toClusterMatrix(fr.ifremer.allegro.referential.pmfm.Matrix)

clusterMatrixToEntity

public void clusterMatrixToEntity(ClusterMatrix source,
                                  Matrix target,
                                  boolean copyIfNull)
Description copied from interface: MatrixDao
Copies the fields of ClusterMatrix to the specified entity.

Specified by:
clusterMatrixToEntity in interface MatrixDao
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.MatrixDao#clusterMatrixToEntity(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMatrix, fr.ifremer.allegro.referential.pmfm.Matrix)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.