|
||||||||||
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.referential.regulation.CorpusDaoBase
public abstract class CorpusDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.regulation.Corpus
.
Corpus
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.regulation.CorpusDao |
---|
TRANSFORM_CLUSTERCORPUS, TRANSFORM_NONE, TRANSFORM_REMOTECORPUSFULLVO, TRANSFORM_REMOTECORPUSNATURALID |
Constructor Summary | |
---|---|
CorpusDaoBase()
|
Method Summary | |
---|---|
void |
clusterCorpusToEntity(ClusterCorpus source,
Corpus target,
boolean copyIfNull)
Copies the fields of ClusterCorpus to the specified entity. |
void |
clusterCorpusToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterCorpus to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.regulation.Corpus and adds from the passed in entities collection |
Corpus |
create(Corpus corpus)
Creates an instance of fr.ifremer.allegro.referential.regulation.Corpus and adds it to the persistent store. |
Corpus |
create(CorpusType corpusType,
java.util.Collection fisheries,
java.lang.String name,
java.util.Date startDate)
Creates a new fr.ifremer.allegro.referential.regulation.Corpus
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Corpus corpus)
Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
CorpusType corpusType,
java.util.Collection fisheries,
java.lang.String name,
java.util.Date startDate)
Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.CorpusType,java.util.Collection,java.lang.String,java.util.Date) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name,
java.lang.String description,
java.util.Date startDate,
java.util.Date endDate,
java.sql.Timestamp updateDate,
java.util.Collection fisheries,
RightToProduce rightToProduce,
java.util.Collection minimumSizeAlloweds,
CorpusType corpusType)
Does the same thing as CorpusDao.create(java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional flag called transform . |
Corpus |
create(java.lang.String name,
java.lang.String description,
java.util.Date startDate,
java.util.Date endDate,
java.sql.Timestamp updateDate,
java.util.Collection fisheries,
RightToProduce rightToProduce,
java.util.Collection minimumSizeAlloweds,
CorpusType corpusType)
Creates a new fr.ifremer.allegro.referential.regulation.Corpus
instance from all attributes and
properties and adds it to the persistent store. |
Corpus |
createFromClusterCorpus(ClusterCorpus clusterCorpus)
|
java.util.Collection |
findCorpusByCorpusType(CorpusType corpusType)
|
java.util.Collection |
findCorpusByCorpusType(int transform,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional flag called transform . |
java.util.Collection |
findCorpusByCorpusType(int pageNumber,
int pageSize,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findCorpusByCorpusType(int transform,
int pageNumber,
int pageSize,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findCorpusByCorpusType(int transform,
java.lang.String queryString,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional argument called queryString . |
java.util.Collection |
findCorpusByCorpusType(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(int, String, fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findCorpusByCorpusType(java.lang.String queryString,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional argument called queryString . |
java.util.Collection |
findCorpusByCorpusType(java.lang.String queryString,
int pageNumber,
int pageSize,
CorpusType corpusType)
Does the same thing as CorpusDao.findCorpusByCorpusType(String, fr.ifremer.allegro.referential.regulation.CorpusType) with an
additional two arguments called pageNumber and pageSize . |
Corpus |
findCorpusById(java.lang.Integer id)
|
java.lang.Object |
findCorpusById(int transform,
java.lang.Integer id)
Does the same thing as CorpusDao.findCorpusById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findCorpusById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as CorpusDao.findCorpusById(int, java.lang.Integer) with an
additional argument called queryString . |
Corpus |
findCorpusById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as CorpusDao.findCorpusById(java.lang.Integer) with an
additional argument called queryString . |
Corpus |
findCorpusByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findCorpusByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as CorpusDao.findCorpusByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findCorpusByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as CorpusDao.findCorpusByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
Corpus |
findCorpusByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as CorpusDao.findCorpusByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.lang.Object |
findCorpusByRightToProduce(int transform,
RightToProduce rightToProduce)
Does the same thing as CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce) with an
additional flag called transform . |
java.lang.Object |
findCorpusByRightToProduce(int transform,
java.lang.String queryString,
RightToProduce rightToProduce)
Does the same thing as CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce) with an
additional argument called queryString . |
Corpus |
findCorpusByRightToProduce(RightToProduce rightToProduce)
|
Corpus |
findCorpusByRightToProduce(java.lang.String queryString,
RightToProduce rightToProduce)
Does the same thing as CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce) with an
additional argument called queryString . |
ClusterCorpus[] |
getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllCorpus()
|
java.util.Collection |
getAllCorpus(int transform)
Does the same thing as CorpusDao.getAllCorpus() with an
additional flag called transform . |
java.util.Collection |
getAllCorpus(int pageNumber,
int pageSize)
Does the same thing as CorpusDao.getAllCorpus() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpus(int transform,
int pageNumber,
int pageSize)
Does the same thing as CorpusDao.getAllCorpus(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpus(int transform,
java.lang.String queryString)
Does the same thing as CorpusDao.getAllCorpus(int) with an
additional argument called queryString . |
java.util.Collection |
getAllCorpus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as CorpusDao.getAllCorpus(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpus(java.lang.String queryString)
Does the same thing as CorpusDao.getAllCorpus() with an
additional argument called queryString . |
java.util.Collection |
getAllCorpus(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as CorpusDao.getAllCorpus(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpusSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpusSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpusSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpusSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllCorpusSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllCorpusSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllCorpusSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllCorpusSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected CorpusTypeDao |
getCorpusTypeDao()
Gets the reference to corpusTypeDao . |
protected FisheryDao |
getFisheryDao()
Gets the reference to fisheryDao . |
protected MinimumSizeAllowedDao |
getMinimumSizeAllowedDao()
Gets the reference to minimumSizeAllowedDao . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected RightToProduceDao |
getRightToProduceDao()
Gets the reference to rightToProduceDao . |
protected abstract Corpus |
handleCreateFromClusterCorpus(ClusterCorpus clusterCorpus)
Performs the core logic for createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus) |
protected abstract ClusterCorpus[] |
handleGetAllClusterCorpusSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
Performs the core logic for getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
Corpus |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.regulation.Corpus from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as CorpusDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type Corpus . |
java.util.Collection |
loadAll(int transform)
Does the same thing as CorpusDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as CorpusDao.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 CorpusDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteCorpusFullVOToEntity(RemoteCorpusFullVO source,
Corpus target,
boolean copyIfNull)
Copies the fields of RemoteCorpusFullVO to the specified entity. |
void |
remoteCorpusFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteCorpusFullVO to this
DAO's entity. |
void |
remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId source,
Corpus target,
boolean copyIfNull)
Copies the fields of RemoteCorpusNaturalId to the specified entity. |
void |
remoteCorpusNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteCorpusNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(Corpus corpus)
Removes the instance of fr.ifremer.allegro.referential.regulation.Corpus from the persistent store. |
void |
remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.referential.regulation.Corpus 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 CorpusDao.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 |
setCorpusTypeDao(CorpusTypeDao corpusTypeDao)
Sets the reference to corpusTypeDao . |
void |
setFisheryDao(FisheryDao fisheryDao)
Sets the reference to fisheryDao . |
void |
setMinimumSizeAllowedDao(MinimumSizeAllowedDao minimumSizeAllowedDao)
Sets the reference to minimumSizeAllowedDao . |
void |
setRightToProduceDao(RightToProduceDao rightToProduceDao)
Sets the reference to rightToProduceDao . |
ClusterCorpus |
toClusterCorpus(Corpus entity)
Converts this DAO's entity to an object of type ClusterCorpus . |
void |
toClusterCorpus(Corpus source,
ClusterCorpus target)
Copies the fields of the specified entity to the target value object. |
protected ClusterCorpus |
toClusterCorpus(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterCorpus[] |
toClusterCorpusArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterCorpus . |
void |
toClusterCorpusCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterCorpus . |
protected Corpus |
toEntity(java.lang.Object[] row)
|
RemoteCorpusFullVO |
toRemoteCorpusFullVO(Corpus entity)
Converts this DAO's entity to an object of type RemoteCorpusFullVO . |
void |
toRemoteCorpusFullVO(Corpus source,
RemoteCorpusFullVO target)
Copies the fields of the specified entity to the target value object. |
protected RemoteCorpusFullVO |
toRemoteCorpusFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteCorpusFullVO[] |
toRemoteCorpusFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteCorpusFullVO . |
void |
toRemoteCorpusFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteCorpusFullVO . |
RemoteCorpusNaturalId |
toRemoteCorpusNaturalId(Corpus entity)
Converts this DAO's entity to an object of type RemoteCorpusNaturalId . |
void |
toRemoteCorpusNaturalId(Corpus source,
RemoteCorpusNaturalId target)
Copies the fields of the specified entity to the target value object. |
protected RemoteCorpusNaturalId |
toRemoteCorpusNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteCorpusNaturalId[] |
toRemoteCorpusNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteCorpusNaturalId . |
void |
toRemoteCorpusNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteCorpusNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.regulation.Corpus)
method. |
protected java.lang.Object |
transformEntity(int transform,
Corpus entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.regulation.CorpusDao , please note
that the CorpusDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store. |
void |
update(Corpus corpus)
Updates the corpus instance in the persistent store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.ifremer.allegro.referential.regulation.CorpusDao |
---|
clusterCorpusToEntity, remoteCorpusFullVOToEntity, remoteCorpusNaturalIdToEntity |
Constructor Detail |
---|
public CorpusDaoBase()
Method Detail |
---|
public void setRightToProduceDao(RightToProduceDao rightToProduceDao)
rightToProduceDao
.
protected RightToProduceDao getRightToProduceDao()
rightToProduceDao
.
public void setFisheryDao(FisheryDao fisheryDao)
fisheryDao
.
protected FisheryDao getFisheryDao()
fisheryDao
.
public void setCorpusTypeDao(CorpusTypeDao corpusTypeDao)
corpusTypeDao
.
protected CorpusTypeDao getCorpusTypeDao()
corpusTypeDao
.
public void setMinimumSizeAllowedDao(MinimumSizeAllowedDao minimumSizeAllowedDao)
minimumSizeAllowedDao
.
protected MinimumSizeAllowedDao getMinimumSizeAllowedDao()
minimumSizeAllowedDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.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 CorpusDao
id
- identifier of the entity to load
CorpusDao.load(int, java.lang.Integer)
public Corpus load(java.lang.Integer id)
CorpusDao
load
in interface CorpusDao
CorpusDao.load(java.lang.Integer)
public java.util.Collection loadAll()
CorpusDao
Corpus
.
loadAll
in interface CorpusDao
CorpusDao.loadAll()
public java.util.Collection loadAll(int transform)
CorpusDao
Does the same thing as CorpusDao.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 CorpusDao
transform
- the flag indicating what transformation to use.
CorpusDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
CorpusDao
Does the same thing as CorpusDao.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 CorpusDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
CorpusDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
CorpusDao
Does the same thing as CorpusDao.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 CorpusDao
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.
CorpusDao.loadAll(int, int, int)
public Corpus create(Corpus corpus)
CorpusDao
create
in interface CorpusDao
CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus)
public java.lang.Object create(int transform, Corpus corpus)
CorpusDao
Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus)
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.
create
in interface CorpusDao
CorpusDao.create(int transform, fr.ifremer.allegro.referential.regulation.Corpus)
public java.util.Collection create(java.util.Collection entities)
CorpusDao
entities
collection
create
in interface CorpusDao
entities
- the collection of fr.ifremer.allegro.referential.regulation.Corpus
instances to create.
CorpusDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
CorpusDao
Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.Corpus)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
create
in interface CorpusDao
CorpusDao.create(int, java.util.Collection)
public Corpus create(java.lang.String name, java.lang.String description, java.util.Date startDate, java.util.Date endDate, java.sql.Timestamp updateDate, java.util.Collection fisheries, RightToProduce rightToProduce, java.util.Collection minimumSizeAlloweds, CorpusType corpusType)
CorpusDao
Creates a new fr.ifremer.allegro.referential.regulation.Corpus
instance from all attributes and
properties and adds it to the persistent store.
create
in interface CorpusDao
CorpusDao.create(java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType)
public java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.util.Date startDate, java.util.Date endDate, java.sql.Timestamp updateDate, java.util.Collection fisheries, RightToProduce rightToProduce, java.util.Collection minimumSizeAlloweds, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.create(java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType)
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.
create
in interface CorpusDao
CorpusDao.create(int, java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.regulation.RightToProduce,java.util.Collection,fr.ifremer.allegro.referential.regulation.CorpusType)
public Corpus create(CorpusType corpusType, java.util.Collection fisheries, java.lang.String name, java.util.Date startDate)
CorpusDao
Creates a new fr.ifremer.allegro.referential.regulation.Corpus
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface CorpusDao
CorpusDao.create(fr.ifremer.allegro.referential.regulation.CorpusType,java.util.Collection,java.lang.String,java.util.Date)
public java.lang.Object create(int transform, CorpusType corpusType, java.util.Collection fisheries, java.lang.String name, java.util.Date startDate)
CorpusDao
Does the same thing as CorpusDao.create(fr.ifremer.allegro.referential.regulation.CorpusType,java.util.Collection,java.lang.String,java.util.Date)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
the returned entity will NOTWILL BE passed through an operation which can optionally
transform the entity (into a value object for example). By default, transformation does
not occur.
create
in interface CorpusDao
CorpusDao.create(int, fr.ifremer.allegro.referential.regulation.CorpusType,java.util.Collection,java.lang.String,java.util.Date)
public void update(Corpus corpus)
CorpusDao
corpus
instance in the persistent store.
update
in interface CorpusDao
CorpusDao.update(fr.ifremer.allegro.referential.regulation.Corpus)
public void update(java.util.Collection entities)
CorpusDao
entities
collection in the persistent store.
update
in interface CorpusDao
CorpusDao.update(java.util.Collection)
public void remove(Corpus corpus)
CorpusDao
remove
in interface CorpusDao
CorpusDao.remove(fr.ifremer.allegro.referential.regulation.Corpus)
public void remove(java.lang.Integer id)
CorpusDao
identifier
from the persistent store.
remove
in interface CorpusDao
CorpusDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
CorpusDao
entities collection.
- Specified by:
remove
in interface CorpusDao
- See Also:
CorpusDao.remove(java.util.Collection)
public java.util.Collection getAllCorpus()
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus()
public java.util.Collection getAllCorpus(int transform)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus()
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.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(int)
public java.util.Collection getAllCorpus(java.lang.String queryString)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.getAllCorpus()
.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(java.lang.String)
public java.util.Collection getAllCorpus(int pageNumber, int pageSize)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus()
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.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(int, int)
public java.util.Collection getAllCorpus(java.lang.String queryString, int pageNumber, int pageSize)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus(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.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(String, int, int)
public java.util.Collection getAllCorpus(int transform, java.lang.String queryString)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.getAllCorpus(int)
.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(int, String)
public java.util.Collection getAllCorpus(int transform, int pageNumber, int pageSize)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus(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.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(int, int, int)
public java.util.Collection getAllCorpus(int transform, java.lang.String queryString, int pageNumber, int pageSize)
CorpusDao
Does the same thing as CorpusDao.getAllCorpus(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.
getAllCorpus
in interface CorpusDao
CorpusDao.getAllCorpus(int, java.lang.String, int, int)
public Corpus findCorpusById(java.lang.Integer id)
findCorpusById
in interface CorpusDao
CorpusDao.findCorpusById(java.lang.Integer)
public java.lang.Object findCorpusById(int transform, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.findCorpusById(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.
findCorpusById
in interface CorpusDao
CorpusDao.findCorpusById(int, java.lang.Integer)
public Corpus findCorpusById(java.lang.String queryString, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.findCorpusById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusById(java.lang.Integer)
.
findCorpusById
in interface CorpusDao
CorpusDao.findCorpusById(java.lang.String, java.lang.Integer)
public java.lang.Object findCorpusById(int transform, java.lang.String queryString, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.findCorpusById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusById(int, java.lang.Integer id)
.
findCorpusById
in interface CorpusDao
CorpusDao.findCorpusById(int, java.lang.String, java.lang.Integer)
public Corpus findCorpusByRightToProduce(RightToProduce rightToProduce)
findCorpusByRightToProduce
in interface CorpusDao
CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)
public java.lang.Object findCorpusByRightToProduce(int transform, RightToProduce rightToProduce)
CorpusDao
Does the same thing as CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)
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.
findCorpusByRightToProduce
in interface CorpusDao
CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce)
public Corpus findCorpusByRightToProduce(java.lang.String queryString, RightToProduce rightToProduce)
CorpusDao
Does the same thing as CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusByRightToProduce(fr.ifremer.allegro.referential.regulation.RightToProduce)
.
findCorpusByRightToProduce
in interface CorpusDao
CorpusDao.findCorpusByRightToProduce(java.lang.String, fr.ifremer.allegro.referential.regulation.RightToProduce)
public java.lang.Object findCorpusByRightToProduce(int transform, java.lang.String queryString, RightToProduce rightToProduce)
CorpusDao
Does the same thing as CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusByRightToProduce(int, fr.ifremer.allegro.referential.regulation.RightToProduce rightToProduce)
.
findCorpusByRightToProduce
in interface CorpusDao
CorpusDao.findCorpusByRightToProduce(int, java.lang.String, fr.ifremer.allegro.referential.regulation.RightToProduce)
public java.util.Collection findCorpusByCorpusType(CorpusType corpusType)
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(int transform, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType)
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.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(java.lang.String queryString, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType)
.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(java.lang.String, fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(int pageNumber, int pageSize, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(fr.ifremer.allegro.referential.regulation.CorpusType)
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.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(int, int, fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(java.lang.String queryString, int pageNumber, int pageSize, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(String, fr.ifremer.allegro.referential.regulation.CorpusType)
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.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(String, int, int, fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(int transform, java.lang.String queryString, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType corpusType)
.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(int, String, fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(int transform, int pageNumber, int pageSize, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(int, fr.ifremer.allegro.referential.regulation.CorpusType)
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.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(int, int, int, fr.ifremer.allegro.referential.regulation.CorpusType)
public java.util.Collection findCorpusByCorpusType(int transform, java.lang.String queryString, int pageNumber, int pageSize, CorpusType corpusType)
CorpusDao
Does the same thing as CorpusDao.findCorpusByCorpusType(int, String, fr.ifremer.allegro.referential.regulation.CorpusType)
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.
findCorpusByCorpusType
in interface CorpusDao
CorpusDao.findCorpusByCorpusType(int, java.lang.String, int, int, fr.ifremer.allegro.referential.regulation.CorpusType)
public Corpus findCorpusByNaturalId(java.lang.Integer id)
findCorpusByNaturalId
in interface CorpusDao
CorpusDao.findCorpusByNaturalId(java.lang.Integer)
public java.lang.Object findCorpusByNaturalId(int transform, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.findCorpusByNaturalId(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.
findCorpusByNaturalId
in interface CorpusDao
CorpusDao.findCorpusByNaturalId(int, java.lang.Integer)
public Corpus findCorpusByNaturalId(java.lang.String queryString, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.findCorpusByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusByNaturalId(java.lang.Integer)
.
findCorpusByNaturalId
in interface CorpusDao
CorpusDao.findCorpusByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findCorpusByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
CorpusDao
Does the same thing as CorpusDao.findCorpusByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.findCorpusByNaturalId(int, java.lang.Integer id)
.
findCorpusByNaturalId
in interface CorpusDao
CorpusDao.findCorpusByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllCorpusSinceDateSynchro(java.sql.Timestamp updateDate)
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp)
with an
additional flag called transform
. If this flag is set to TRANSFORM_NONE
then
finder results will NOT be transformed during retrieval.
If this flag is any of the other constants defined here
then finder results WILL BE passed through an operation which can optionally
transform the entities (into value objects for example). By default, transformation does
not occur.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp)
.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(java.sql.Timestamp)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(String, java.sql.Timestamp)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, java.sql.Timestamp)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllCorpusSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
CorpusDao
Does the same thing as CorpusDao.getAllCorpusSinceDateSynchro(int, String, java.sql.Timestamp)
with an
additional two arguments called pageNumber
and pageSize
. The pageNumber
argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the
page retrieved.
getAllCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllCorpusSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Corpus createFromClusterCorpus(ClusterCorpus clusterCorpus)
createFromClusterCorpus
in interface CorpusDao
CorpusDao.createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)
protected abstract Corpus handleCreateFromClusterCorpus(ClusterCorpus clusterCorpus) throws java.lang.Exception
createFromClusterCorpus(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)
java.lang.Exception
public ClusterCorpus[] getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterCorpusSinceDateSynchro
in interface CorpusDao
CorpusDao.getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterCorpus[] handleGetAllClusterCorpusSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterCorpusSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, Corpus entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.regulation.CorpusDao
, please note
that the CorpusDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Corpus
- CorpusDao.TRANSFORM_NONE
RemoteCorpusFullVO
- TRANSFORM_REMOTECORPUSFULLVO
RemoteCorpusNaturalId
- TRANSFORM_REMOTECORPUSNATURALID
ClusterCorpus
- TRANSFORM_CLUSTERCORPUS
CorpusDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in CorpusDao
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.referential.regulation.Corpus)
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.referential.regulation.CorpusDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.regulation.Corpus)
protected Corpus toEntity(java.lang.Object[] row)
public final void toRemoteCorpusFullVOCollection(java.util.Collection entities)
CorpusDao
RemoteCorpusFullVO
.
toRemoteCorpusFullVOCollection
in interface CorpusDao
CorpusDao.toRemoteCorpusFullVOCollection(java.util.Collection)
public final RemoteCorpusFullVO[] toRemoteCorpusFullVOArray(java.util.Collection entities)
CorpusDao
RemoteCorpusFullVO
.
toRemoteCorpusFullVOArray
in interface CorpusDao
CorpusDao.toRemoteCorpusFullVOArray(java.util.Collection)
protected RemoteCorpusFullVO toRemoteCorpusFullVO(java.lang.Object[] row)
CorpusDaoImpl
class if you intend to use reporting queries.
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus)
public final void remoteCorpusFullVOToEntityCollection(java.util.Collection instances)
CorpusDao
RemoteCorpusFullVO
to this
DAO's entity.
remoteCorpusFullVOToEntityCollection
in interface CorpusDao
CorpusDao.remoteCorpusFullVOToEntityCollection(java.util.Collection)
public void toRemoteCorpusFullVO(Corpus source, RemoteCorpusFullVO target)
CorpusDao
toRemoteCorpusFullVO
in interface CorpusDao
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusFullVO)
public RemoteCorpusFullVO toRemoteCorpusFullVO(Corpus entity)
CorpusDao
RemoteCorpusFullVO
.
toRemoteCorpusFullVO
in interface CorpusDao
CorpusDao.toRemoteCorpusFullVO(fr.ifremer.allegro.referential.regulation.Corpus)
public void remoteCorpusFullVOToEntity(RemoteCorpusFullVO source, Corpus target, boolean copyIfNull)
CorpusDao
RemoteCorpusFullVO
to the specified entity.
remoteCorpusFullVOToEntity
in interface CorpusDao
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.referential.regulation.CorpusDao#remoteCorpusFullVOToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusFullVO, fr.ifremer.allegro.referential.regulation.Corpus)
public final void toRemoteCorpusNaturalIdCollection(java.util.Collection entities)
CorpusDao
RemoteCorpusNaturalId
.
toRemoteCorpusNaturalIdCollection
in interface CorpusDao
CorpusDao.toRemoteCorpusNaturalIdCollection(java.util.Collection)
public final RemoteCorpusNaturalId[] toRemoteCorpusNaturalIdArray(java.util.Collection entities)
CorpusDao
RemoteCorpusNaturalId
.
toRemoteCorpusNaturalIdArray
in interface CorpusDao
CorpusDao.toRemoteCorpusNaturalIdArray(java.util.Collection)
protected RemoteCorpusNaturalId toRemoteCorpusNaturalId(java.lang.Object[] row)
CorpusDaoImpl
class if you intend to use reporting queries.
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus)
public final void remoteCorpusNaturalIdToEntityCollection(java.util.Collection instances)
CorpusDao
RemoteCorpusNaturalId
to this
DAO's entity.
remoteCorpusNaturalIdToEntityCollection
in interface CorpusDao
CorpusDao.remoteCorpusNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteCorpusNaturalId(Corpus source, RemoteCorpusNaturalId target)
CorpusDao
toRemoteCorpusNaturalId
in interface CorpusDao
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusNaturalId)
public RemoteCorpusNaturalId toRemoteCorpusNaturalId(Corpus entity)
CorpusDao
RemoteCorpusNaturalId
.
toRemoteCorpusNaturalId
in interface CorpusDao
CorpusDao.toRemoteCorpusNaturalId(fr.ifremer.allegro.referential.regulation.Corpus)
public void remoteCorpusNaturalIdToEntity(RemoteCorpusNaturalId source, Corpus target, boolean copyIfNull)
CorpusDao
RemoteCorpusNaturalId
to the specified entity.
remoteCorpusNaturalIdToEntity
in interface CorpusDao
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.referential.regulation.CorpusDao#remoteCorpusNaturalIdToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteCorpusNaturalId, fr.ifremer.allegro.referential.regulation.Corpus)
public final void toClusterCorpusCollection(java.util.Collection entities)
CorpusDao
ClusterCorpus
.
toClusterCorpusCollection
in interface CorpusDao
CorpusDao.toClusterCorpusCollection(java.util.Collection)
public final ClusterCorpus[] toClusterCorpusArray(java.util.Collection entities)
CorpusDao
ClusterCorpus
.
toClusterCorpusArray
in interface CorpusDao
CorpusDao.toClusterCorpusArray(java.util.Collection)
protected ClusterCorpus toClusterCorpus(java.lang.Object[] row)
CorpusDaoImpl
class if you intend to use reporting queries.
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus)
public final void clusterCorpusToEntityCollection(java.util.Collection instances)
CorpusDao
ClusterCorpus
to this
DAO's entity.
clusterCorpusToEntityCollection
in interface CorpusDao
CorpusDao.clusterCorpusToEntityCollection(java.util.Collection)
public void toClusterCorpus(Corpus source, ClusterCorpus target)
CorpusDao
toClusterCorpus
in interface CorpusDao
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus, fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus)
public ClusterCorpus toClusterCorpus(Corpus entity)
CorpusDao
ClusterCorpus
.
toClusterCorpus
in interface CorpusDao
CorpusDao.toClusterCorpus(fr.ifremer.allegro.referential.regulation.Corpus)
public void clusterCorpusToEntity(ClusterCorpus source, Corpus target, boolean copyIfNull)
CorpusDao
ClusterCorpus
to the specified entity.
clusterCorpusToEntity
in interface CorpusDao
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.referential.regulation.CorpusDao#clusterCorpusToEntity(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterCorpus, fr.ifremer.allegro.referential.regulation.Corpus)
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)
CorpusDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface CorpusDao
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.CorpusDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
CorpusDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface CorpusDao
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.CorpusDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
CorpusDao
CorpusDao.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 CorpusDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
CorpusDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
CorpusDao
search
object.
search
in interface CorpusDao
search
- the search object which provides the search parameters and pagination specification.
CorpusDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |