|
||||||||||
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.FisheryDaoBase
public abstract class FisheryDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.regulation.Fishery
.
Fishery
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.regulation.FisheryDao |
---|
TRANSFORM_CLUSTERFISHERY, TRANSFORM_NONE, TRANSFORM_REMOTEFISHERYFULLVO, TRANSFORM_REMOTEFISHERYNATURALID |
Constructor Summary | |
---|---|
FisheryDaoBase()
|
Method Summary | |
---|---|
void |
clusterFisheryToEntity(ClusterFishery source,
Fishery target,
boolean copyIfNull)
Copies the fields of ClusterFishery to the specified entity. |
void |
clusterFisheryToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterFishery to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.regulation.Fishery and adds from the passed in entities collection |
Fishery |
create(Fishery fishery)
Creates an instance of fr.ifremer.allegro.referential.regulation.Fishery and adds it to the persistent store. |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as FisheryDao.create(fr.ifremer.allegro.referential.regulation.Fishery) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Fishery fishery)
Does the same thing as FisheryDao.create(fr.ifremer.allegro.referential.regulation.Fishery) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name)
Does the same thing as FisheryDao.create(java.lang.String) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String name,
java.sql.Timestamp updateDate,
java.util.Collection corpus,
TaxonGroup taxonGroup,
Gear gear,
FishingArea fishingArea)
Does the same thing as FisheryDao.create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.taxon.TaxonGroup,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional flag called transform . |
Fishery |
create(java.lang.String name)
Creates a new fr.ifremer.allegro.referential.regulation.Fishery
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Fishery |
create(java.lang.String name,
java.sql.Timestamp updateDate,
java.util.Collection corpus,
TaxonGroup taxonGroup,
Gear gear,
FishingArea fishingArea)
Creates a new fr.ifremer.allegro.referential.regulation.Fishery
instance from all attributes and
properties and adds it to the persistent store. |
Fishery |
createFromClusterFishery(ClusterFishery clusterFishery)
|
java.util.Collection |
findFisheryByFishingArea(FishingArea fishingArea)
|
java.util.Collection |
findFisheryByFishingArea(int transform,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional flag called transform . |
java.util.Collection |
findFisheryByFishingArea(int pageNumber,
int pageSize,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByFishingArea(int transform,
int pageNumber,
int pageSize,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(int, fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByFishingArea(int transform,
java.lang.String queryString,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(int, fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByFishingArea(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(int, String, fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByFishingArea(java.lang.String queryString,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByFishingArea(java.lang.String queryString,
int pageNumber,
int pageSize,
FishingArea fishingArea)
Does the same thing as FisheryDao.findFisheryByFishingArea(String, fr.ifremer.allegro.data.fishingArea.FishingArea) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByGear(Gear gear)
|
java.util.Collection |
findFisheryByGear(int transform,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear) with an
additional flag called transform . |
java.util.Collection |
findFisheryByGear(int pageNumber,
int pageSize,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByGear(int transform,
int pageNumber,
int pageSize,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(int, fr.ifremer.allegro.referential.gear.Gear) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByGear(int transform,
java.lang.String queryString,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(int, fr.ifremer.allegro.referential.gear.Gear) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByGear(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(int, String, fr.ifremer.allegro.referential.gear.Gear) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByGear(java.lang.String queryString,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByGear(java.lang.String queryString,
int pageNumber,
int pageSize,
Gear gear)
Does the same thing as FisheryDao.findFisheryByGear(String, fr.ifremer.allegro.referential.gear.Gear) with an
additional two arguments called pageNumber and pageSize . |
Fishery |
findFisheryById(java.lang.Integer id)
|
java.lang.Object |
findFisheryById(int transform,
java.lang.Integer id)
Does the same thing as FisheryDao.findFisheryById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findFisheryById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as FisheryDao.findFisheryById(int, java.lang.Integer) with an
additional argument called queryString . |
Fishery |
findFisheryById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as FisheryDao.findFisheryById(java.lang.Integer) with an
additional argument called queryString . |
Fishery |
findFisheryByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findFisheryByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as FisheryDao.findFisheryByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findFisheryByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as FisheryDao.findFisheryByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
Fishery |
findFisheryByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as FisheryDao.findFisheryByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByTaxonGroup(int transform,
int pageNumber,
int pageSize,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(int, fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByTaxonGroup(int pageNumber,
int pageSize,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByTaxonGroup(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(int, String, fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByTaxonGroup(int transform,
java.lang.String queryString,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(int, fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByTaxonGroup(int transform,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional flag called transform . |
java.util.Collection |
findFisheryByTaxonGroup(java.lang.String queryString,
int pageNumber,
int pageSize,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(String, fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findFisheryByTaxonGroup(java.lang.String queryString,
TaxonGroup taxonGroup)
Does the same thing as FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup) with an
additional argument called queryString . |
java.util.Collection |
findFisheryByTaxonGroup(TaxonGroup taxonGroup)
|
ClusterFishery[] |
getAllClusterFisherySinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllFishery()
|
java.util.Collection |
getAllFishery(int transform)
Does the same thing as FisheryDao.getAllFishery() with an
additional flag called transform . |
java.util.Collection |
getAllFishery(int pageNumber,
int pageSize)
Does the same thing as FisheryDao.getAllFishery() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFishery(int transform,
int pageNumber,
int pageSize)
Does the same thing as FisheryDao.getAllFishery(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFishery(int transform,
java.lang.String queryString)
Does the same thing as FisheryDao.getAllFishery(int) with an
additional argument called queryString . |
java.util.Collection |
getAllFishery(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as FisheryDao.getAllFishery(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFishery(java.lang.String queryString)
Does the same thing as FisheryDao.getAllFishery() with an
additional argument called queryString . |
java.util.Collection |
getAllFishery(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as FisheryDao.getAllFishery(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFisherySinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFisherySinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFisherySinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFisherySinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllFisherySinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllFisherySinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllFisherySinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllFisherySinceDateSynchro(java.sql.Timestamp updateDate)
|
protected CorpusDao |
getCorpusDao()
Gets the reference to corpusDao . |
protected FishingAreaDao |
getFishingAreaDao()
Gets the reference to fishingAreaDao . |
protected GearDao |
getGearDao()
Gets the reference to gearDao . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected TaxonGroupDao |
getTaxonGroupDao()
Gets the reference to taxonGroupDao . |
protected abstract Fishery |
handleCreateFromClusterFishery(ClusterFishery clusterFishery)
Performs the core logic for createFromClusterFishery(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterFishery) |
protected abstract ClusterFishery[] |
handleGetAllClusterFisherySinceDateSynchro(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 getAllClusterFisherySinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
Fishery |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.regulation.Fishery from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as FisheryDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type Fishery . |
java.util.Collection |
loadAll(int transform)
Does the same thing as FisheryDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as FisheryDao.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 FisheryDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteFisheryFullVOToEntity(RemoteFisheryFullVO source,
Fishery target,
boolean copyIfNull)
Copies the fields of RemoteFisheryFullVO to the specified entity. |
void |
remoteFisheryFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteFisheryFullVO to this
DAO's entity. |
void |
remoteFisheryNaturalIdToEntity(RemoteFisheryNaturalId source,
Fishery target,
boolean copyIfNull)
Copies the fields of RemoteFisheryNaturalId to the specified entity. |
void |
remoteFisheryNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteFisheryNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(Fishery fishery)
Removes the instance of fr.ifremer.allegro.referential.regulation.Fishery from the persistent store. |
void |
remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.referential.regulation.Fishery 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 FisheryDao.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 |
setCorpusDao(CorpusDao corpusDao)
Sets the reference to corpusDao . |
void |
setFishingAreaDao(FishingAreaDao fishingAreaDao)
Sets the reference to fishingAreaDao . |
void |
setGearDao(GearDao gearDao)
Sets the reference to gearDao . |
void |
setTaxonGroupDao(TaxonGroupDao taxonGroupDao)
Sets the reference to taxonGroupDao . |
ClusterFishery |
toClusterFishery(Fishery entity)
Converts this DAO's entity to an object of type ClusterFishery . |
void |
toClusterFishery(Fishery source,
ClusterFishery target)
Copies the fields of the specified entity to the target value object. |
protected ClusterFishery |
toClusterFishery(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterFishery[] |
toClusterFisheryArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterFishery . |
void |
toClusterFisheryCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterFishery . |
protected Fishery |
toEntity(java.lang.Object[] row)
|
RemoteFisheryFullVO |
toRemoteFisheryFullVO(Fishery entity)
Converts this DAO's entity to an object of type RemoteFisheryFullVO . |
void |
toRemoteFisheryFullVO(Fishery source,
RemoteFisheryFullVO target)
Copies the fields of the specified entity to the target value object. |
protected RemoteFisheryFullVO |
toRemoteFisheryFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteFisheryFullVO[] |
toRemoteFisheryFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteFisheryFullVO . |
void |
toRemoteFisheryFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteFisheryFullVO . |
RemoteFisheryNaturalId |
toRemoteFisheryNaturalId(Fishery entity)
Converts this DAO's entity to an object of type RemoteFisheryNaturalId . |
void |
toRemoteFisheryNaturalId(Fishery source,
RemoteFisheryNaturalId target)
Copies the fields of the specified entity to the target value object. |
protected RemoteFisheryNaturalId |
toRemoteFisheryNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteFisheryNaturalId[] |
toRemoteFisheryNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteFisheryNaturalId . |
void |
toRemoteFisheryNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteFisheryNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.regulation.Fishery)
method. |
protected java.lang.Object |
transformEntity(int transform,
Fishery 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.FisheryDao , please note
that the FisheryDao.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(Fishery fishery)
Updates the fishery 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.FisheryDao |
---|
clusterFisheryToEntity, remoteFisheryFullVOToEntity, remoteFisheryNaturalIdToEntity |
Constructor Detail |
---|
public FisheryDaoBase()
Method Detail |
---|
public void setTaxonGroupDao(TaxonGroupDao taxonGroupDao)
taxonGroupDao
.
protected TaxonGroupDao getTaxonGroupDao()
taxonGroupDao
.
public void setGearDao(GearDao gearDao)
gearDao
.
protected GearDao getGearDao()
gearDao
.
public void setCorpusDao(CorpusDao corpusDao)
corpusDao
.
protected CorpusDao getCorpusDao()
corpusDao
.
public void setFishingAreaDao(FishingAreaDao fishingAreaDao)
fishingAreaDao
.
protected FishingAreaDao getFishingAreaDao()
fishingAreaDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.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 FisheryDao
id
- identifier of the entity to load
FisheryDao.load(int, java.lang.Integer)
public Fishery load(java.lang.Integer id)
FisheryDao
load
in interface FisheryDao
FisheryDao.load(java.lang.Integer)
public java.util.Collection loadAll()
FisheryDao
Fishery
.
loadAll
in interface FisheryDao
FisheryDao.loadAll()
public java.util.Collection loadAll(int transform)
FisheryDao
Does the same thing as FisheryDao.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 FisheryDao
transform
- the flag indicating what transformation to use.
FisheryDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
FisheryDao
Does the same thing as FisheryDao.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 FisheryDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
FisheryDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
FisheryDao
Does the same thing as FisheryDao.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 FisheryDao
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.
FisheryDao.loadAll(int, int, int)
public Fishery create(Fishery fishery)
FisheryDao
create
in interface FisheryDao
FisheryDao.create(fr.ifremer.allegro.referential.regulation.Fishery)
public java.lang.Object create(int transform, Fishery fishery)
FisheryDao
Does the same thing as FisheryDao.create(fr.ifremer.allegro.referential.regulation.Fishery)
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 FisheryDao
FisheryDao.create(int transform, fr.ifremer.allegro.referential.regulation.Fishery)
public java.util.Collection create(java.util.Collection entities)
FisheryDao
entities
collection
create
in interface FisheryDao
entities
- the collection of fr.ifremer.allegro.referential.regulation.Fishery
instances to create.
FisheryDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
FisheryDao
Does the same thing as FisheryDao.create(fr.ifremer.allegro.referential.regulation.Fishery)
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 FisheryDao
FisheryDao.create(int, java.util.Collection)
public Fishery create(java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection corpus, TaxonGroup taxonGroup, Gear gear, FishingArea fishingArea)
FisheryDao
Creates a new fr.ifremer.allegro.referential.regulation.Fishery
instance from all attributes and
properties and adds it to the persistent store.
create
in interface FisheryDao
FisheryDao.create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.taxon.TaxonGroup,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.lang.Object create(int transform, java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection corpus, TaxonGroup taxonGroup, Gear gear, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.taxon.TaxonGroup,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.data.fishingArea.FishingArea)
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 FisheryDao
FisheryDao.create(int, java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.taxon.TaxonGroup,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.data.fishingArea.FishingArea)
public Fishery create(java.lang.String name)
FisheryDao
Creates a new fr.ifremer.allegro.referential.regulation.Fishery
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface FisheryDao
FisheryDao.create(java.lang.String)
public java.lang.Object create(int transform, java.lang.String name)
FisheryDao
Does the same thing as FisheryDao.create(java.lang.String)
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 FisheryDao
FisheryDao.create(int, java.lang.String)
public void update(Fishery fishery)
FisheryDao
fishery
instance in the persistent store.
update
in interface FisheryDao
FisheryDao.update(fr.ifremer.allegro.referential.regulation.Fishery)
public void update(java.util.Collection entities)
FisheryDao
entities
collection in the persistent store.
update
in interface FisheryDao
FisheryDao.update(java.util.Collection)
public void remove(Fishery fishery)
FisheryDao
remove
in interface FisheryDao
FisheryDao.remove(fr.ifremer.allegro.referential.regulation.Fishery)
public void remove(java.lang.Integer id)
FisheryDao
identifier
from the persistent store.
remove
in interface FisheryDao
FisheryDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
FisheryDao
entities collection.
- Specified by:
remove
in interface FisheryDao
- See Also:
FisheryDao.remove(java.util.Collection)
public java.util.Collection getAllFishery()
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery()
public java.util.Collection getAllFishery(int transform)
FisheryDao
Does the same thing as FisheryDao.getAllFishery()
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.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(int)
public java.util.Collection getAllFishery(java.lang.String queryString)
FisheryDao
Does the same thing as FisheryDao.getAllFishery()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.getAllFishery()
.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(java.lang.String)
public java.util.Collection getAllFishery(int pageNumber, int pageSize)
FisheryDao
Does the same thing as FisheryDao.getAllFishery()
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.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(int, int)
public java.util.Collection getAllFishery(java.lang.String queryString, int pageNumber, int pageSize)
FisheryDao
Does the same thing as FisheryDao.getAllFishery(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.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(String, int, int)
public java.util.Collection getAllFishery(int transform, java.lang.String queryString)
FisheryDao
Does the same thing as FisheryDao.getAllFishery(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.getAllFishery(int)
.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(int, String)
public java.util.Collection getAllFishery(int transform, int pageNumber, int pageSize)
FisheryDao
Does the same thing as FisheryDao.getAllFishery(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.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(int, int, int)
public java.util.Collection getAllFishery(int transform, java.lang.String queryString, int pageNumber, int pageSize)
FisheryDao
Does the same thing as FisheryDao.getAllFishery(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.
getAllFishery
in interface FisheryDao
FisheryDao.getAllFishery(int, java.lang.String, int, int)
public Fishery findFisheryById(java.lang.Integer id)
findFisheryById
in interface FisheryDao
FisheryDao.findFisheryById(java.lang.Integer)
public java.lang.Object findFisheryById(int transform, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.findFisheryById(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.
findFisheryById
in interface FisheryDao
FisheryDao.findFisheryById(int, java.lang.Integer)
public Fishery findFisheryById(java.lang.String queryString, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.findFisheryById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryById(java.lang.Integer)
.
findFisheryById
in interface FisheryDao
FisheryDao.findFisheryById(java.lang.String, java.lang.Integer)
public java.lang.Object findFisheryById(int transform, java.lang.String queryString, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.findFisheryById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryById(int, java.lang.Integer id)
.
findFisheryById
in interface FisheryDao
FisheryDao.findFisheryById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findFisheryByTaxonGroup(TaxonGroup taxonGroup)
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(int transform, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup)
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.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(java.lang.String queryString, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup)
.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(java.lang.String, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(int pageNumber, int pageSize, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(fr.ifremer.allegro.referential.taxon.TaxonGroup)
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.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(int, int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(java.lang.String queryString, int pageNumber, int pageSize, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(String, fr.ifremer.allegro.referential.taxon.TaxonGroup)
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.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(String, int, int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(int transform, java.lang.String queryString, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByTaxonGroup(int, fr.ifremer.allegro.referential.taxon.TaxonGroup taxonGroup)
.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(int, String, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(int transform, int pageNumber, int pageSize, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
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.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(int, int, int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByTaxonGroup(int transform, java.lang.String queryString, int pageNumber, int pageSize, TaxonGroup taxonGroup)
FisheryDao
Does the same thing as FisheryDao.findFisheryByTaxonGroup(int, String, fr.ifremer.allegro.referential.taxon.TaxonGroup)
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.
findFisheryByTaxonGroup
in interface FisheryDao
FisheryDao.findFisheryByTaxonGroup(int, java.lang.String, int, int, fr.ifremer.allegro.referential.taxon.TaxonGroup)
public java.util.Collection findFisheryByGear(Gear gear)
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(int transform, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear)
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.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(int, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(java.lang.String queryString, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear)
.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(java.lang.String, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(int pageNumber, int pageSize, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(fr.ifremer.allegro.referential.gear.Gear)
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.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(int, int, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(java.lang.String queryString, int pageNumber, int pageSize, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(String, fr.ifremer.allegro.referential.gear.Gear)
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.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(String, int, int, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(int transform, java.lang.String queryString, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(int, fr.ifremer.allegro.referential.gear.Gear)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByGear(int, fr.ifremer.allegro.referential.gear.Gear gear)
.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(int, String, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(int transform, int pageNumber, int pageSize, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(int, fr.ifremer.allegro.referential.gear.Gear)
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.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(int, int, int, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByGear(int transform, java.lang.String queryString, int pageNumber, int pageSize, Gear gear)
FisheryDao
Does the same thing as FisheryDao.findFisheryByGear(int, String, fr.ifremer.allegro.referential.gear.Gear)
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.
findFisheryByGear
in interface FisheryDao
FisheryDao.findFisheryByGear(int, java.lang.String, int, int, fr.ifremer.allegro.referential.gear.Gear)
public java.util.Collection findFisheryByFishingArea(FishingArea fishingArea)
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(int transform, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea)
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.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(int, fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(java.lang.String queryString, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea)
.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(java.lang.String, fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(int pageNumber, int pageSize, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(fr.ifremer.allegro.data.fishingArea.FishingArea)
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.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(int, int, fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(java.lang.String queryString, int pageNumber, int pageSize, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(String, fr.ifremer.allegro.data.fishingArea.FishingArea)
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.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(String, int, int, fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(int transform, java.lang.String queryString, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(int, fr.ifremer.allegro.data.fishingArea.FishingArea)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByFishingArea(int, fr.ifremer.allegro.data.fishingArea.FishingArea fishingArea)
.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(int, String, fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(int transform, int pageNumber, int pageSize, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(int, fr.ifremer.allegro.data.fishingArea.FishingArea)
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.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(int, int, int, fr.ifremer.allegro.data.fishingArea.FishingArea)
public java.util.Collection findFisheryByFishingArea(int transform, java.lang.String queryString, int pageNumber, int pageSize, FishingArea fishingArea)
FisheryDao
Does the same thing as FisheryDao.findFisheryByFishingArea(int, String, fr.ifremer.allegro.data.fishingArea.FishingArea)
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.
findFisheryByFishingArea
in interface FisheryDao
FisheryDao.findFisheryByFishingArea(int, java.lang.String, int, int, fr.ifremer.allegro.data.fishingArea.FishingArea)
public Fishery findFisheryByNaturalId(java.lang.Integer id)
findFisheryByNaturalId
in interface FisheryDao
FisheryDao.findFisheryByNaturalId(java.lang.Integer)
public java.lang.Object findFisheryByNaturalId(int transform, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.findFisheryByNaturalId(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.
findFisheryByNaturalId
in interface FisheryDao
FisheryDao.findFisheryByNaturalId(int, java.lang.Integer)
public Fishery findFisheryByNaturalId(java.lang.String queryString, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.findFisheryByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByNaturalId(java.lang.Integer)
.
findFisheryByNaturalId
in interface FisheryDao
FisheryDao.findFisheryByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findFisheryByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
FisheryDao
Does the same thing as FisheryDao.findFisheryByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.findFisheryByNaturalId(int, java.lang.Integer id)
.
findFisheryByNaturalId
in interface FisheryDao
FisheryDao.findFisheryByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllFisherySinceDateSynchro(java.sql.Timestamp updateDate)
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(int transform, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(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.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.getAllFisherySinceDateSynchro(java.sql.Timestamp)
.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(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.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(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.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in FisheryDao.getAllFisherySinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(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.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllFisherySinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
FisheryDao
Does the same thing as FisheryDao.getAllFisherySinceDateSynchro(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.
getAllFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllFisherySinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Fishery createFromClusterFishery(ClusterFishery clusterFishery)
createFromClusterFishery
in interface FisheryDao
FisheryDao.createFromClusterFishery(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterFishery)
protected abstract Fishery handleCreateFromClusterFishery(ClusterFishery clusterFishery) throws java.lang.Exception
createFromClusterFishery(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterFishery)
java.lang.Exception
public ClusterFishery[] getAllClusterFisherySinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterFisherySinceDateSynchro
in interface FisheryDao
FisheryDao.getAllClusterFisherySinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterFishery[] handleGetAllClusterFisherySinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterFisherySinceDateSynchro(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, Fishery entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.regulation.FisheryDao
, please note
that the FisheryDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Fishery
- FisheryDao.TRANSFORM_NONE
RemoteFisheryFullVO
- TRANSFORM_REMOTEFISHERYFULLVO
RemoteFisheryNaturalId
- TRANSFORM_REMOTEFISHERYNATURALID
ClusterFishery
- TRANSFORM_CLUSTERFISHERY
FisheryDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in FisheryDao
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.Fishery)
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.FisheryDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.regulation.Fishery)
protected Fishery toEntity(java.lang.Object[] row)
public final void toRemoteFisheryFullVOCollection(java.util.Collection entities)
FisheryDao
RemoteFisheryFullVO
.
toRemoteFisheryFullVOCollection
in interface FisheryDao
FisheryDao.toRemoteFisheryFullVOCollection(java.util.Collection)
public final RemoteFisheryFullVO[] toRemoteFisheryFullVOArray(java.util.Collection entities)
FisheryDao
RemoteFisheryFullVO
.
toRemoteFisheryFullVOArray
in interface FisheryDao
FisheryDao.toRemoteFisheryFullVOArray(java.util.Collection)
protected RemoteFisheryFullVO toRemoteFisheryFullVO(java.lang.Object[] row)
FisheryDaoImpl
class if you intend to use reporting queries.
FisheryDao.toRemoteFisheryFullVO(fr.ifremer.allegro.referential.regulation.Fishery)
public final void remoteFisheryFullVOToEntityCollection(java.util.Collection instances)
FisheryDao
RemoteFisheryFullVO
to this
DAO's entity.
remoteFisheryFullVOToEntityCollection
in interface FisheryDao
FisheryDao.remoteFisheryFullVOToEntityCollection(java.util.Collection)
public void toRemoteFisheryFullVO(Fishery source, RemoteFisheryFullVO target)
FisheryDao
toRemoteFisheryFullVO
in interface FisheryDao
FisheryDao.toRemoteFisheryFullVO(fr.ifremer.allegro.referential.regulation.Fishery, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteFisheryFullVO)
public RemoteFisheryFullVO toRemoteFisheryFullVO(Fishery entity)
FisheryDao
RemoteFisheryFullVO
.
toRemoteFisheryFullVO
in interface FisheryDao
FisheryDao.toRemoteFisheryFullVO(fr.ifremer.allegro.referential.regulation.Fishery)
public void remoteFisheryFullVOToEntity(RemoteFisheryFullVO source, Fishery target, boolean copyIfNull)
FisheryDao
RemoteFisheryFullVO
to the specified entity.
remoteFisheryFullVOToEntity
in interface FisheryDao
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.FisheryDao#remoteFisheryFullVOToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteFisheryFullVO, fr.ifremer.allegro.referential.regulation.Fishery)
public final void toRemoteFisheryNaturalIdCollection(java.util.Collection entities)
FisheryDao
RemoteFisheryNaturalId
.
toRemoteFisheryNaturalIdCollection
in interface FisheryDao
FisheryDao.toRemoteFisheryNaturalIdCollection(java.util.Collection)
public final RemoteFisheryNaturalId[] toRemoteFisheryNaturalIdArray(java.util.Collection entities)
FisheryDao
RemoteFisheryNaturalId
.
toRemoteFisheryNaturalIdArray
in interface FisheryDao
FisheryDao.toRemoteFisheryNaturalIdArray(java.util.Collection)
protected RemoteFisheryNaturalId toRemoteFisheryNaturalId(java.lang.Object[] row)
FisheryDaoImpl
class if you intend to use reporting queries.
FisheryDao.toRemoteFisheryNaturalId(fr.ifremer.allegro.referential.regulation.Fishery)
public final void remoteFisheryNaturalIdToEntityCollection(java.util.Collection instances)
FisheryDao
RemoteFisheryNaturalId
to this
DAO's entity.
remoteFisheryNaturalIdToEntityCollection
in interface FisheryDao
FisheryDao.remoteFisheryNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteFisheryNaturalId(Fishery source, RemoteFisheryNaturalId target)
FisheryDao
toRemoteFisheryNaturalId
in interface FisheryDao
FisheryDao.toRemoteFisheryNaturalId(fr.ifremer.allegro.referential.regulation.Fishery, fr.ifremer.allegro.referential.regulation.generic.vo.RemoteFisheryNaturalId)
public RemoteFisheryNaturalId toRemoteFisheryNaturalId(Fishery entity)
FisheryDao
RemoteFisheryNaturalId
.
toRemoteFisheryNaturalId
in interface FisheryDao
FisheryDao.toRemoteFisheryNaturalId(fr.ifremer.allegro.referential.regulation.Fishery)
public void remoteFisheryNaturalIdToEntity(RemoteFisheryNaturalId source, Fishery target, boolean copyIfNull)
FisheryDao
RemoteFisheryNaturalId
to the specified entity.
remoteFisheryNaturalIdToEntity
in interface FisheryDao
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.FisheryDao#remoteFisheryNaturalIdToEntity(fr.ifremer.allegro.referential.regulation.generic.vo.RemoteFisheryNaturalId, fr.ifremer.allegro.referential.regulation.Fishery)
public final void toClusterFisheryCollection(java.util.Collection entities)
FisheryDao
ClusterFishery
.
toClusterFisheryCollection
in interface FisheryDao
FisheryDao.toClusterFisheryCollection(java.util.Collection)
public final ClusterFishery[] toClusterFisheryArray(java.util.Collection entities)
FisheryDao
ClusterFishery
.
toClusterFisheryArray
in interface FisheryDao
FisheryDao.toClusterFisheryArray(java.util.Collection)
protected ClusterFishery toClusterFishery(java.lang.Object[] row)
FisheryDaoImpl
class if you intend to use reporting queries.
FisheryDao.toClusterFishery(fr.ifremer.allegro.referential.regulation.Fishery)
public final void clusterFisheryToEntityCollection(java.util.Collection instances)
FisheryDao
ClusterFishery
to this
DAO's entity.
clusterFisheryToEntityCollection
in interface FisheryDao
FisheryDao.clusterFisheryToEntityCollection(java.util.Collection)
public void toClusterFishery(Fishery source, ClusterFishery target)
FisheryDao
toClusterFishery
in interface FisheryDao
FisheryDao.toClusterFishery(fr.ifremer.allegro.referential.regulation.Fishery, fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterFishery)
public ClusterFishery toClusterFishery(Fishery entity)
FisheryDao
ClusterFishery
.
toClusterFishery
in interface FisheryDao
FisheryDao.toClusterFishery(fr.ifremer.allegro.referential.regulation.Fishery)
public void clusterFisheryToEntity(ClusterFishery source, Fishery target, boolean copyIfNull)
FisheryDao
ClusterFishery
to the specified entity.
clusterFisheryToEntity
in interface FisheryDao
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.FisheryDao#clusterFisheryToEntity(fr.ifremer.allegro.referential.regulation.generic.cluster.ClusterFishery, fr.ifremer.allegro.referential.regulation.Fishery)
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)
FisheryDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface FisheryDao
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.FisheryDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
FisheryDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface FisheryDao
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.FisheryDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
FisheryDao
FisheryDao.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 FisheryDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
FisheryDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
FisheryDao
search
object.
search
in interface FisheryDao
search
- the search object which provides the search parameters and pagination specification.
FisheryDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |