|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate3.support.HibernateDaoSupport
fr.ifremer.allegro.data.batch.BatchDaoBase
public abstract class BatchDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.data.batch.Batch
.
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 |
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 |
---|
public BatchDaoBase()
Method Detail |
---|
public void setBatchDao(BatchDao batchDao)
batchDao
.
protected BatchDao getBatchDao()
batchDao
.
public void setProduceDao(ProduceDao produceDao)
produceDao
.
protected ProduceDao getProduceDao()
produceDao
.
public void setQuantificationMeasurementDao(QuantificationMeasurementDao quantificationMeasurementDao)
quantificationMeasurementDao
.
protected QuantificationMeasurementDao getQuantificationMeasurementDao()
quantificationMeasurementDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
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.
load
in interface BatchDao
id
- identifier of the entity to load
BatchDao.load(int, java.lang.Integer)
public Batch load(java.lang.Integer id)
BatchDao
load
in interface BatchDao
BatchDao.load(java.lang.Integer)
public java.util.Collection loadAll()
BatchDao
Batch
.
loadAll
in interface BatchDao
BatchDao.loadAll()
public java.util.Collection loadAll(int transform)
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.
loadAll
in interface BatchDao
transform
- the flag indicating what transformation to use.
BatchDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
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.
loadAll
in interface BatchDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
BatchDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
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.
loadAll
in interface BatchDao
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.
BatchDao.loadAll(int, int, int)
public void update(Batch batch)
BatchDao
batch
instance in the persistent store.
update
in interface BatchDao
BatchDao.update(fr.ifremer.allegro.data.batch.Batch)
public void update(java.util.Collection entities)
BatchDao
entities
collection in the persistent store.
update
in interface BatchDao
BatchDao.update(java.util.Collection)
public void remove(Batch batch)
BatchDao
remove
in interface BatchDao
BatchDao.remove(fr.ifremer.allegro.data.batch.Batch)
public void remove(java.lang.Integer id)
BatchDao
identifier
from the persistent store.
remove
in interface BatchDao
BatchDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
BatchDao
entities collection.
- Specified by:
remove
in interface BatchDao
- See Also:
BatchDao.remove(java.util.Collection)
public java.util.Collection getAllBatch()
getAllBatch
in interface BatchDao
BatchDao.getAllBatch()
public java.util.Collection getAllBatch(int transform)
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.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(int)
public java.util.Collection getAllBatch(java.lang.String queryString)
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()
.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(java.lang.String)
public java.util.Collection getAllBatch(int pageNumber, int pageSize)
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.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(int, int)
public java.util.Collection getAllBatch(java.lang.String queryString, int pageNumber, int pageSize)
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.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(String, int, int)
public java.util.Collection getAllBatch(int transform, java.lang.String queryString)
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)
.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(int, String)
public java.util.Collection getAllBatch(int transform, int pageNumber, int pageSize)
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.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(int, int, int)
public java.util.Collection getAllBatch(int transform, java.lang.String queryString, int pageNumber, int pageSize)
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.
getAllBatch
in interface BatchDao
BatchDao.getAllBatch(int, java.lang.String, int, int)
public Batch findBatchById(java.lang.Integer id)
findBatchById
in interface BatchDao
BatchDao.findBatchById(java.lang.Integer)
public java.lang.Object findBatchById(int transform, java.lang.Integer id)
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.
findBatchById
in interface BatchDao
BatchDao.findBatchById(int, java.lang.Integer)
public Batch findBatchById(java.lang.String queryString, java.lang.Integer id)
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)
.
findBatchById
in interface BatchDao
BatchDao.findBatchById(java.lang.String, java.lang.Integer)
public java.lang.Object findBatchById(int transform, java.lang.String queryString, java.lang.Integer id)
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)
.
findBatchById
in interface BatchDao
BatchDao.findBatchById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findBatchByParentBatch(Batch parentBatch)
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(int transform, Batch parentBatch)
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.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(java.lang.String queryString, Batch parentBatch)
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)
.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(java.lang.String, fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(int pageNumber, int pageSize, Batch parentBatch)
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.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(int, int, fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(java.lang.String queryString, int pageNumber, int pageSize, Batch parentBatch)
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.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(String, int, int, fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(int transform, java.lang.String queryString, Batch parentBatch)
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)
.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(int, String, fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(int transform, int pageNumber, int pageSize, Batch parentBatch)
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.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(int, int, int, fr.ifremer.allegro.data.batch.Batch)
public java.util.Collection findBatchByParentBatch(int transform, java.lang.String queryString, int pageNumber, int pageSize, Batch parentBatch)
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.
findBatchByParentBatch
in interface BatchDao
BatchDao.findBatchByParentBatch(int, java.lang.String, int, int, fr.ifremer.allegro.data.batch.Batch)
public Batch findBatchByNaturalId(java.lang.Integer id)
findBatchByNaturalId
in interface BatchDao
BatchDao.findBatchByNaturalId(java.lang.Integer)
public java.lang.Object findBatchByNaturalId(int transform, java.lang.Integer id)
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.
findBatchByNaturalId
in interface BatchDao
BatchDao.findBatchByNaturalId(int, java.lang.Integer)
public Batch findBatchByNaturalId(java.lang.String queryString, java.lang.Integer id)
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)
.
findBatchByNaturalId
in interface BatchDao
BatchDao.findBatchByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findBatchByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
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)
.
findBatchByNaturalId
in interface BatchDao
BatchDao.findBatchByNaturalId(int, java.lang.String, java.lang.Integer)
protected java.lang.Object transformEntity(int transform, Batch entity)
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:
Batch
- BatchDao.TRANSFORM_NONE
RemoteBatchFullVO
- TRANSFORM_REMOTEBATCHFULLVO
RemoteBatchNaturalId
- TRANSFORM_REMOTEBATCHNATURALID
ClusterBatch
- TRANSFORM_CLUSTERBATCH
BatchDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in BatchDao
entity
- an entity that was found
transformEntities(int,java.util.Collection)
protected void transformEntities(int transform, java.util.Collection entities)
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.
transform
- one of the constants declared in fr.ifremer.allegro.data.batch.BatchDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.data.batch.Batch)
protected Batch toEntity(java.lang.Object[] row)
public final void toRemoteBatchFullVOCollection(java.util.Collection entities)
BatchDao
RemoteBatchFullVO
.
toRemoteBatchFullVOCollection
in interface BatchDao
BatchDao.toRemoteBatchFullVOCollection(java.util.Collection)
public final RemoteBatchFullVO[] toRemoteBatchFullVOArray(java.util.Collection entities)
BatchDao
RemoteBatchFullVO
.
toRemoteBatchFullVOArray
in interface BatchDao
BatchDao.toRemoteBatchFullVOArray(java.util.Collection)
protected RemoteBatchFullVO toRemoteBatchFullVO(java.lang.Object[] row)
BatchDaoImpl
class if you intend to use reporting queries.
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch)
public final void remoteBatchFullVOToEntityCollection(java.util.Collection instances)
BatchDao
RemoteBatchFullVO
to this
DAO's entity.
remoteBatchFullVOToEntityCollection
in interface BatchDao
BatchDao.remoteBatchFullVOToEntityCollection(java.util.Collection)
public void toRemoteBatchFullVO(Batch source, RemoteBatchFullVO target)
BatchDao
toRemoteBatchFullVO
in interface BatchDao
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO)
public RemoteBatchFullVO toRemoteBatchFullVO(Batch entity)
BatchDao
RemoteBatchFullVO
.
toRemoteBatchFullVO
in interface BatchDao
BatchDao.toRemoteBatchFullVO(fr.ifremer.allegro.data.batch.Batch)
public void remoteBatchFullVOToEntity(RemoteBatchFullVO source, Batch target, boolean copyIfNull)
BatchDao
RemoteBatchFullVO
to the specified entity.
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.fr.ifremer.allegro.data.batch.BatchDao#remoteBatchFullVOToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchFullVO, fr.ifremer.allegro.data.batch.Batch)
public final void toRemoteBatchNaturalIdCollection(java.util.Collection entities)
BatchDao
RemoteBatchNaturalId
.
toRemoteBatchNaturalIdCollection
in interface BatchDao
BatchDao.toRemoteBatchNaturalIdCollection(java.util.Collection)
public final RemoteBatchNaturalId[] toRemoteBatchNaturalIdArray(java.util.Collection entities)
BatchDao
RemoteBatchNaturalId
.
toRemoteBatchNaturalIdArray
in interface BatchDao
BatchDao.toRemoteBatchNaturalIdArray(java.util.Collection)
protected RemoteBatchNaturalId toRemoteBatchNaturalId(java.lang.Object[] row)
BatchDaoImpl
class if you intend to use reporting queries.
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch)
public final void remoteBatchNaturalIdToEntityCollection(java.util.Collection instances)
BatchDao
RemoteBatchNaturalId
to this
DAO's entity.
remoteBatchNaturalIdToEntityCollection
in interface BatchDao
BatchDao.remoteBatchNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteBatchNaturalId(Batch source, RemoteBatchNaturalId target)
BatchDao
toRemoteBatchNaturalId
in interface BatchDao
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId)
public RemoteBatchNaturalId toRemoteBatchNaturalId(Batch entity)
BatchDao
RemoteBatchNaturalId
.
toRemoteBatchNaturalId
in interface BatchDao
BatchDao.toRemoteBatchNaturalId(fr.ifremer.allegro.data.batch.Batch)
public void remoteBatchNaturalIdToEntity(RemoteBatchNaturalId source, Batch target, boolean copyIfNull)
BatchDao
RemoteBatchNaturalId
to the specified entity.
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.fr.ifremer.allegro.data.batch.BatchDao#remoteBatchNaturalIdToEntity(fr.ifremer.allegro.data.batch.generic.vo.RemoteBatchNaturalId, fr.ifremer.allegro.data.batch.Batch)
public final void toClusterBatchCollection(java.util.Collection entities)
BatchDao
ClusterBatch
.
toClusterBatchCollection
in interface BatchDao
BatchDao.toClusterBatchCollection(java.util.Collection)
public final ClusterBatch[] toClusterBatchArray(java.util.Collection entities)
BatchDao
ClusterBatch
.
toClusterBatchArray
in interface BatchDao
BatchDao.toClusterBatchArray(java.util.Collection)
protected ClusterBatch toClusterBatch(java.lang.Object[] row)
BatchDaoImpl
class if you intend to use reporting queries.
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch)
public final void clusterBatchToEntityCollection(java.util.Collection instances)
BatchDao
ClusterBatch
to this
DAO's entity.
clusterBatchToEntityCollection
in interface BatchDao
BatchDao.clusterBatchToEntityCollection(java.util.Collection)
public void toClusterBatch(Batch source, ClusterBatch target)
BatchDao
toClusterBatch
in interface BatchDao
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch, fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch)
public ClusterBatch toClusterBatch(Batch entity)
BatchDao
ClusterBatch
.
toClusterBatch
in interface BatchDao
BatchDao.toClusterBatch(fr.ifremer.allegro.data.batch.Batch)
public void clusterBatchToEntity(ClusterBatch source, Batch target, boolean copyIfNull)
BatchDao
ClusterBatch
to the specified entity.
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.fr.ifremer.allegro.data.batch.BatchDao#clusterBatchToEntity(fr.ifremer.allegro.data.batch.generic.cluster.ClusterBatch, fr.ifremer.allegro.data.batch.Batch)
protected java.security.Principal getPrincipal()
principal
if one has been set,
otherwise returns null
.
public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
BatchDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface BatchDao
transform
- the transformation flag.pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.BatchDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
BatchDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface BatchDao
pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.BatchDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
BatchDao
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.
search
in interface BatchDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
BatchDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
BatchDao
search
object.
search
in interface BatchDao
search
- the search object which provides the search parameters and pagination specification.
BatchDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |