fr.ifremer.allegro.data.batch
Class BatchDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.data.batch.BatchDaoBase
All Implemented Interfaces:
BatchDao
Direct Known Subclasses:
BatchDaoImpl

public abstract class BatchDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements BatchDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.data.batch.Batch.

See Also:
Batch

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.data.batch.BatchDao
TRANSFORM_CLUSTERBATCH, TRANSFORM_NONE, TRANSFORM_REMOTEBATCHFULLVO, TRANSFORM_REMOTEBATCHNATURALID
 
Constructor Summary
BatchDaoBase()
           
 
Method Summary
 void clusterBatchToEntity(ClusterBatch source, Batch target, boolean copyIfNull)
          Copies the fields of ClusterBatch to the specified entity.
 void clusterBatchToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterBatch to this DAO's entity.
 Batch findBatchById(java.lang.Integer id)
           
 java.lang.Object findBatchById(int transform, java.lang.Integer id)
           Does the same thing as BatchDao.findBatchById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findBatchById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BatchDao.findBatchById(int, java.lang.Integer) with an additional argument called queryString.
 Batch findBatchById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BatchDao.findBatchById(java.lang.Integer) with an additional argument called queryString.
 Batch findBatchByNaturalId(java.lang.Integer id)
           
 java.lang.Object findBatchByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as BatchDao.findBatchByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findBatchByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BatchDao.findBatchByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Batch findBatchByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as BatchDao.findBatchByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findBatchByParentBatch(Batch parentBatch)
           
 java.util.Collection findBatchByParentBatch(int transform, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch) with an additional flag called transform.
 java.util.Collection findBatchByParentBatch(int pageNumber, int pageSize, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBatchByParentBatch(int transform, int pageNumber, int pageSize, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBatchByParentBatch(int transform, java.lang.String queryString, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch) with an additional argument called queryString.
 java.util.Collection findBatchByParentBatch(int transform, java.lang.String queryString, int pageNumber, int pageSize, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(int, String, fr.ifremer.allegro.data.batch.Batch) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findBatchByParentBatch(java.lang.String queryString, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch) with an additional argument called queryString.
 java.util.Collection findBatchByParentBatch(java.lang.String queryString, int pageNumber, int pageSize, Batch parentBatch)
           Does the same thing as BatchDao.findBatchByParentBatch(String, fr.ifremer.allegro.data.batch.Batch) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBatch()
           
 java.util.Collection getAllBatch(int transform)
           Does the same thing as BatchDao.getAllBatch() with an additional flag called transform.
 java.util.Collection getAllBatch(int pageNumber, int pageSize)
           Does the same thing as BatchDao.getAllBatch() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBatch(int transform, int pageNumber, int pageSize)
           Does the same thing as BatchDao.getAllBatch(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBatch(int transform, java.lang.String queryString)
           Does the same thing as BatchDao.getAllBatch(int) with an additional argument called queryString.
 java.util.Collection getAllBatch(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as BatchDao.getAllBatch(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllBatch(java.lang.String queryString)
           Does the same thing as BatchDao.getAllBatch() with an additional argument called queryString.
 java.util.Collection getAllBatch(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as BatchDao.getAllBatch(String) with an additional two arguments called pageNumber and pageSize.
protected  BatchDao getBatchDao()
          Gets the reference to batchDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  ProduceDao getProduceDao()
          Gets the reference to produceDao.
protected  QuantificationMeasurementDao getQuantificationMeasurementDao()
          Gets the reference to quantificationMeasurementDao.
 Batch load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.data.batch.Batch from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as BatchDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Batch.
 java.util.Collection loadAll(int transform)
           Does the same thing as BatchDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as BatchDao.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 BatchDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteBatchFullVOToEntity(RemoteBatchFullVO source, Batch target, boolean copyIfNull)
          Copies the fields of RemoteBatchFullVO to the specified entity.
 void remoteBatchFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteBatchFullVO to this DAO's entity.
 void remoteBatchNaturalIdToEntity(RemoteBatchNaturalId source, Batch target, boolean copyIfNull)
          Copies the fields of RemoteBatchNaturalId to the specified entity.
 void remoteBatchNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteBatchNaturalId to this DAO's entity.
 void remove(Batch batch)
          Removes the instance of fr.ifremer.allegro.data.batch.Batch from the persistent store.
 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.data.batch.Batch 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 BatchDao.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 setBatchDao(BatchDao batchDao)
          Sets the reference to batchDao.
 void setProduceDao(ProduceDao produceDao)
          Sets the reference to produceDao.
 void setQuantificationMeasurementDao(QuantificationMeasurementDao quantificationMeasurementDao)
          Sets the reference to quantificationMeasurementDao.
 ClusterBatch toClusterBatch(Batch entity)
          Converts this DAO's entity to an object of type ClusterBatch.
 void toClusterBatch(Batch source, ClusterBatch target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterBatch toClusterBatch(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterBatch[] toClusterBatchArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterBatch.
 void toClusterBatchCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterBatch.
protected  Batch toEntity(java.lang.Object[] row)
           
 RemoteBatchFullVO toRemoteBatchFullVO(Batch entity)
          Converts this DAO's entity to an object of type RemoteBatchFullVO.
 void toRemoteBatchFullVO(Batch source, RemoteBatchFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteBatchFullVO toRemoteBatchFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteBatchFullVO[] toRemoteBatchFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteBatchFullVO.
 void toRemoteBatchFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteBatchFullVO.
 RemoteBatchNaturalId toRemoteBatchNaturalId(Batch entity)
          Converts this DAO's entity to an object of type RemoteBatchNaturalId.
 void toRemoteBatchNaturalId(Batch source, RemoteBatchNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteBatchNaturalId toRemoteBatchNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteBatchNaturalId[] toRemoteBatchNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteBatchNaturalId.
 void toRemoteBatchNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteBatchNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.data.batch.Batch) method.
protected  java.lang.Object transformEntity(int transform, Batch 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.data.batch.BatchDao, please note that the BatchDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(Batch batch)
          Updates the batch instance in the persistent store.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection 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.data.batch.BatchDao
clusterBatchToEntity, remoteBatchFullVOToEntity, remoteBatchNaturalIdToEntity
 

Constructor Detail

BatchDaoBase

public BatchDaoBase()
Method Detail

setBatchDao

public void setBatchDao(BatchDao batchDao)
Sets the reference to batchDao.


getBatchDao

protected BatchDao getBatchDao()
Gets the reference to batchDao.


setProduceDao

public void setProduceDao(ProduceDao produceDao)
Sets the reference to produceDao.


getProduceDao

protected ProduceDao getProduceDao()
Gets the reference to produceDao.


setQuantificationMeasurementDao

public void setQuantificationMeasurementDao(QuantificationMeasurementDao quantificationMeasurementDao)
Sets the reference to quantificationMeasurementDao.


getQuantificationMeasurementDao

protected QuantificationMeasurementDao getQuantificationMeasurementDao()
Gets the reference to quantificationMeasurementDao.


load

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

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

load

public Batch load(java.lang.Integer id)
Description copied from interface: BatchDao
Loads an instance of fr.ifremer.allegro.data.batch.Batch from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

update

public void update(Batch batch)
Description copied from interface: BatchDao
Updates the batch instance in the persistent store.

Specified by:
update in interface BatchDao
See Also:
BatchDao.update(fr.ifremer.allegro.data.batch.Batch)

update

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

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

remove

public void remove(Batch batch)
Description copied from interface: BatchDao
Removes the instance of fr.ifremer.allegro.data.batch.Batch from the persistent store.

Specified by:
remove in interface BatchDao
See Also:
BatchDao.remove(fr.ifremer.allegro.data.batch.Batch)

remove

public void remove(java.lang.Integer id)
Description copied from interface: BatchDao
Removes the instance of fr.ifremer.allegro.data.batch.Batch having the given identifier from the persistent store.

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

remove

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

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

getAllBatch

public java.util.Collection getAllBatch()
Specified by:
getAllBatch in interface BatchDao
See Also:
BatchDao.getAllBatch()

getAllBatch

public java.util.Collection getAllBatch(int transform)
Description copied from interface: BatchDao

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

getAllBatch

public java.util.Collection getAllBatch(java.lang.String queryString)
Description copied from interface: BatchDao

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

Specified by:
getAllBatch in interface BatchDao
See Also:
BatchDao.getAllBatch(java.lang.String)

getAllBatch

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

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

getAllBatch

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

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

getAllBatch

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

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

Specified by:
getAllBatch in interface BatchDao
See Also:
BatchDao.getAllBatch(int, String)

getAllBatch

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

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

getAllBatch

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

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

findBatchById

public Batch findBatchById(java.lang.Integer id)
Specified by:
findBatchById in interface BatchDao
See Also:
BatchDao.findBatchById(java.lang.Integer)

findBatchById

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

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

findBatchById

public Batch findBatchById(java.lang.String queryString,
                           java.lang.Integer id)
Description copied from interface: BatchDao

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

Specified by:
findBatchById in interface BatchDao
See Also:
BatchDao.findBatchById(java.lang.String, java.lang.Integer)

findBatchById

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

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

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

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(Batch parentBatch)
Specified by:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(int transform,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch) 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:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(java.lang.String queryString,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch) with an additional argument called queryString. This queryString argument allows you to override the query string defined in BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch).

Specified by:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(java.lang.String, fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(int pageNumber,
                                                   int pageSize,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch) 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:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(int, int, fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(String, fr.ifremer.allegro.data.batch.Batch) 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:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(String, int, int, fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(int transform,
                                                   java.lang.String queryString,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch) with an additional argument called queryString. This queryString argument allows you to override the query string defined in BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch parentBatch).

Specified by:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(int, String, fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(int transform,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch) 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:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(int, int, int, fr.ifremer.allegro.data.batch.Batch)

findBatchByParentBatch

public java.util.Collection findBatchByParentBatch(int transform,
                                                   java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Batch parentBatch)
Description copied from interface: BatchDao

Does the same thing as BatchDao.findBatchByParentBatch(int, String, fr.ifremer.allegro.data.batch.Batch) 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:
findBatchByParentBatch in interface BatchDao
See Also:
BatchDao.findBatchByParentBatch(int, java.lang.String, int, int, fr.ifremer.allegro.data.batch.Batch)

findBatchByNaturalId

public Batch findBatchByNaturalId(java.lang.Integer id)
Specified by:
findBatchByNaturalId in interface BatchDao
See Also:
BatchDao.findBatchByNaturalId(java.lang.Integer)

findBatchByNaturalId

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

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

findBatchByNaturalId

public Batch findBatchByNaturalId(java.lang.String queryString,
                                  java.lang.Integer id)
Description copied from interface: BatchDao

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

Specified by:
findBatchByNaturalId in interface BatchDao
See Also:
BatchDao.findBatchByNaturalId(java.lang.String, java.lang.Integer)

findBatchByNaturalId

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

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

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

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           Batch 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.data.batch.BatchDao, please note that the BatchDao.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 BatchDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in BatchDao
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.data.batch.Batch) 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.data.batch.BatchDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.data.batch.Batch)

toEntity

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

toRemoteBatchFullVOCollection

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

Specified by:
toRemoteBatchFullVOCollection in interface BatchDao
See Also:
BatchDao.toRemoteBatchFullVOCollection(java.util.Collection)

toRemoteBatchFullVOArray

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

Specified by:
toRemoteBatchFullVOArray in interface BatchDao
See Also:
BatchDao.toRemoteBatchFullVOArray(java.util.Collection)

toRemoteBatchFullVO

protected RemoteBatchFullVO toRemoteBatchFullVO(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 BatchDaoImpl class if you intend to use reporting queries.

See Also:
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch)

remoteBatchFullVOToEntityCollection

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

Specified by:
remoteBatchFullVOToEntityCollection in interface BatchDao
See Also:
BatchDao.remoteBatchFullVOToEntityCollection(java.util.Collection)

toRemoteBatchFullVO

public void toRemoteBatchFullVO(Batch source,
                                RemoteBatchFullVO target)
Description copied from interface: BatchDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteBatchFullVO(), 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:
toRemoteBatchFullVO in interface BatchDao
See Also:
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)

toRemoteBatchFullVO

public RemoteBatchFullVO toRemoteBatchFullVO(Batch entity)
Description copied from interface: BatchDao
Converts this DAO's entity to an object of type RemoteBatchFullVO.

Specified by:
toRemoteBatchFullVO in interface BatchDao
See Also:
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch)

remoteBatchFullVOToEntity

public void remoteBatchFullVOToEntity(RemoteBatchFullVO source,
                                      Batch target,
                                      boolean copyIfNull)
Description copied from interface: BatchDao
Copies the fields of RemoteBatchFullVO to the specified entity.

Specified by:
remoteBatchFullVOToEntity in interface BatchDao
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.data.batch.BatchDao#remoteBatchFullVOToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.Batch)

toRemoteBatchNaturalIdCollection

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

Specified by:
toRemoteBatchNaturalIdCollection in interface BatchDao
See Also:
BatchDao.toRemoteBatchNaturalIdCollection(java.util.Collection)

toRemoteBatchNaturalIdArray

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

Specified by:
toRemoteBatchNaturalIdArray in interface BatchDao
See Also:
BatchDao.toRemoteBatchNaturalIdArray(java.util.Collection)

toRemoteBatchNaturalId

protected RemoteBatchNaturalId toRemoteBatchNaturalId(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 BatchDaoImpl class if you intend to use reporting queries.

See Also:
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch)

remoteBatchNaturalIdToEntityCollection

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

Specified by:
remoteBatchNaturalIdToEntityCollection in interface BatchDao
See Also:
BatchDao.remoteBatchNaturalIdToEntityCollection(java.util.Collection)

toRemoteBatchNaturalId

public void toRemoteBatchNaturalId(Batch source,
                                   RemoteBatchNaturalId target)
Description copied from interface: BatchDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteBatchNaturalId(), 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:
toRemoteBatchNaturalId in interface BatchDao
See Also:
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)

toRemoteBatchNaturalId

public RemoteBatchNaturalId toRemoteBatchNaturalId(Batch entity)
Description copied from interface: BatchDao
Converts this DAO's entity to an object of type RemoteBatchNaturalId.

Specified by:
toRemoteBatchNaturalId in interface BatchDao
See Also:
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch)

remoteBatchNaturalIdToEntity

public void remoteBatchNaturalIdToEntity(RemoteBatchNaturalId source,
                                         Batch target,
                                         boolean copyIfNull)
Description copied from interface: BatchDao
Copies the fields of RemoteBatchNaturalId to the specified entity.

Specified by:
remoteBatchNaturalIdToEntity in interface BatchDao
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.data.batch.BatchDao#remoteBatchNaturalIdToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId, fr.ifremer.allegro.data.batch.Batch)

toClusterBatchCollection

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

Specified by:
toClusterBatchCollection in interface BatchDao
See Also:
BatchDao.toClusterBatchCollection(java.util.Collection)

toClusterBatchArray

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

Specified by:
toClusterBatchArray in interface BatchDao
See Also:
BatchDao.toClusterBatchArray(java.util.Collection)

toClusterBatch

protected ClusterBatch toClusterBatch(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 BatchDaoImpl class if you intend to use reporting queries.

See Also:
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch)

clusterBatchToEntityCollection

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

Specified by:
clusterBatchToEntityCollection in interface BatchDao
See Also:
BatchDao.clusterBatchToEntityCollection(java.util.Collection)

toClusterBatch

public void toClusterBatch(Batch source,
                           ClusterBatch target)
Description copied from interface: BatchDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterBatch(), 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:
toClusterBatch in interface BatchDao
See Also:
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch)

toClusterBatch

public ClusterBatch toClusterBatch(Batch entity)
Description copied from interface: BatchDao
Converts this DAO's entity to an object of type ClusterBatch.

Specified by:
toClusterBatch in interface BatchDao
See Also:
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch)

clusterBatchToEntity

public void clusterBatchToEntity(ClusterBatch source,
                                 Batch target,
                                 boolean copyIfNull)
Description copied from interface: BatchDao
Copies the fields of ClusterBatch to the specified entity.

Specified by:
clusterBatchToEntity in interface BatchDao
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.data.batch.BatchDao#clusterBatchToEntity(fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch, fr.ifremer.allegro.data.batch.Batch)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.