|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BatchDao
Batch
Field Summary | |
---|---|
static int |
TRANSFORM_CLUSTERBATCH
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform . |
static int |
TRANSFORM_NONE
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform . |
static int |
TRANSFORM_REMOTEBATCHFULLVO
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform . |
static int |
TRANSFORM_REMOTEBATCHNATURALID
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform . |
Method Summary | |
---|---|
Batch |
clusterBatchToEntity(ClusterBatch clusterBatch)
Converts an instance of type ClusterBatch to this DAO's entity. |
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 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 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 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 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 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 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 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 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 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 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 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 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 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 getAllBatch() with an
additional flag called transform . |
java.util.Collection |
getAllBatch(int pageNumber,
int pageSize)
Does the same thing as 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 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 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 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 getAllBatch() with an
additional argument called queryString . |
java.util.Collection |
getAllBatch(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as getAllBatch(String) with an
additional two arguments called pageNumber and pageSize . |
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 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 loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as 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 loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
Batch |
remoteBatchFullVOToEntity(RemoteBatchFullVO remoteBatchFullVO)
Converts an instance of type RemoteBatchFullVO to this DAO's entity. |
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. |
Batch |
remoteBatchNaturalIdToEntity(RemoteBatchNaturalId remoteBatchNaturalId)
Converts an instance of type RemoteBatchNaturalId 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 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. |
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. |
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 . |
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. |
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. |
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 . |
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. |
Field Detail |
---|
static final int TRANSFORM_NONE
int
parameter called transform
.
This specific flag denotes no transformation will occur.
static final int TRANSFORM_REMOTEBATCHFULLVO
int
parameter called transform
.
This specific flag denotes entities must be transformed into objects of type
RemoteBatchFullVO
.
static final int TRANSFORM_REMOTEBATCHNATURALID
int
parameter called transform
.
This specific flag denotes entities must be transformed into objects of type
RemoteBatchNaturalId
.
static final int TRANSFORM_CLUSTERBATCH
int
parameter called transform
.
This specific flag denotes entities must be transformed into objects of type
ClusterBatch
.
Method Detail |
---|
void toRemoteBatchFullVO(Batch source, RemoteBatchFullVO target)
RemoteBatchFullVO toRemoteBatchFullVO(Batch entity)
RemoteBatchFullVO
.
void toRemoteBatchFullVOCollection(java.util.Collection entities)
RemoteBatchFullVO
.
RemoteBatchFullVO[] toRemoteBatchFullVOArray(java.util.Collection entities)
RemoteBatchFullVO
.
void remoteBatchFullVOToEntity(RemoteBatchFullVO source, Batch target, boolean copyIfNull)
RemoteBatchFullVO
to the specified entity.
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.Batch remoteBatchFullVOToEntity(RemoteBatchFullVO remoteBatchFullVO)
RemoteBatchFullVO
to this DAO's entity.
void remoteBatchFullVOToEntityCollection(java.util.Collection instances)
RemoteBatchFullVO
to this
DAO's entity.
void toRemoteBatchNaturalId(Batch source, RemoteBatchNaturalId target)
RemoteBatchNaturalId toRemoteBatchNaturalId(Batch entity)
RemoteBatchNaturalId
.
void toRemoteBatchNaturalIdCollection(java.util.Collection entities)
RemoteBatchNaturalId
.
RemoteBatchNaturalId[] toRemoteBatchNaturalIdArray(java.util.Collection entities)
RemoteBatchNaturalId
.
void remoteBatchNaturalIdToEntity(RemoteBatchNaturalId source, Batch target, boolean copyIfNull)
RemoteBatchNaturalId
to the specified entity.
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.Batch remoteBatchNaturalIdToEntity(RemoteBatchNaturalId remoteBatchNaturalId)
RemoteBatchNaturalId
to this DAO's entity.
void remoteBatchNaturalIdToEntityCollection(java.util.Collection instances)
RemoteBatchNaturalId
to this
DAO's entity.
void toClusterBatch(Batch source, ClusterBatch target)
ClusterBatch toClusterBatch(Batch entity)
ClusterBatch
.
void toClusterBatchCollection(java.util.Collection entities)
ClusterBatch
.
ClusterBatch[] toClusterBatchArray(java.util.Collection entities)
ClusterBatch
.
void clusterBatchToEntity(ClusterBatch source, Batch target, boolean copyIfNull)
ClusterBatch
to the specified entity.
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.Batch clusterBatchToEntity(ClusterBatch clusterBatch)
ClusterBatch
to this DAO's entity.
void clusterBatchToEntityCollection(java.util.Collection instances)
ClusterBatch
to this
DAO's entity.
Batch load(java.lang.Integer id)
java.lang.Object load(int transform, java.lang.Integer id)
Does the same thing as 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.
id
- identifier of the entity to load
java.util.Collection loadAll()
Batch
.
java.util.Collection loadAll(int transform)
Does the same thing as 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.
transform
- the flag indicating what transformation to use.
java.util.Collection loadAll(int pageNumber, int pageSize)
Does the same thing as 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.
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
Does the same thing as 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.
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.
void update(Batch batch)
batch
instance in the persistent store.
void update(java.util.Collection entities)
entities
collection in the persistent store.
void remove(Batch batch)
void remove(java.lang.Integer id)
identifier
from the persistent store.
void remove(java.util.Collection entities)
entities collection.
java.util.Collection getAllBatch()
java.util.Collection getAllBatch(java.lang.String queryString)
Does the same thing as getAllBatch()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in getAllBatch()
.
java.util.Collection getAllBatch(int pageNumber, int pageSize)
Does the same thing as 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.
java.util.Collection getAllBatch(java.lang.String queryString, int pageNumber, int pageSize)
Does the same thing as 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.
java.util.Collection getAllBatch(int transform)
Does the same thing as 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.
java.util.Collection getAllBatch(int transform, int pageNumber, int pageSize)
Does the same thing as 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.
java.util.Collection getAllBatch(int transform, java.lang.String queryString)
Does the same thing as getAllBatch(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in getAllBatch(int)
.
java.util.Collection getAllBatch(int transform, java.lang.String queryString, int pageNumber, int pageSize)
Does the same thing as 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.
Batch findBatchById(java.lang.Integer id)
Batch findBatchById(java.lang.String queryString, java.lang.Integer id)
Does the same thing as findBatchById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in findBatchById(java.lang.Integer)
.
java.lang.Object findBatchById(int transform, java.lang.Integer id)
Does the same thing as 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.
java.lang.Object findBatchById(int transform, java.lang.String queryString, java.lang.Integer id)
Does the same thing as findBatchById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in findBatchById(int, java.lang.Integer id)
.
java.util.Collection findBatchByParentBatch(Batch parentBatch)
java.util.Collection findBatchByParentBatch(java.lang.String queryString, Batch parentBatch)
Does the same thing as 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 findBatchByParentBatch(fr.ifremer.allegro.data.batch.Batch)
.
java.util.Collection findBatchByParentBatch(int pageNumber, int pageSize, Batch parentBatch)
Does the same thing as 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.
java.util.Collection findBatchByParentBatch(java.lang.String queryString, int pageNumber, int pageSize, Batch parentBatch)
Does the same thing as 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.
java.util.Collection findBatchByParentBatch(int transform, Batch parentBatch)
Does the same thing as 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.
java.util.Collection findBatchByParentBatch(int transform, int pageNumber, int pageSize, Batch parentBatch)
Does the same thing as 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.
java.util.Collection findBatchByParentBatch(int transform, java.lang.String queryString, Batch parentBatch)
Does the same thing as 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 findBatchByParentBatch(int, fr.ifremer.allegro.data.batch.Batch parentBatch)
.
java.util.Collection findBatchByParentBatch(int transform, java.lang.String queryString, int pageNumber, int pageSize, Batch parentBatch)
Does the same thing as 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.
Batch findBatchByNaturalId(java.lang.Integer id)
Batch findBatchByNaturalId(java.lang.String queryString, java.lang.Integer id)
Does the same thing as findBatchByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in findBatchByNaturalId(java.lang.Integer)
.
java.lang.Object findBatchByNaturalId(int transform, java.lang.Integer id)
Does the same thing as 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.
java.lang.Object findBatchByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
Does the same thing as findBatchByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in findBatchByNaturalId(int, java.lang.Integer id)
.
PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
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.PaginationResult search(int pageNumber, int pageSize, Search search)
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
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.java.util.Set search(int transform, Search search)
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.
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
java.util.Set search(Search search)
search
object.
search
- the search object which provides the search parameters and pagination specification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |