public abstract class FishingAreaDaoBase extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements FishingAreaDao
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea.
FishingAreaTRANSFORM_NONE| Constructor and Description |
|---|
FishingAreaDaoBase() |
| Modifier and Type | Method and Description |
|---|---|
Collection<FishingArea> |
create(Collection<FishingArea> entities)
Creates a new instance of fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea and adds
from the passed in
entities collection |
FishingArea |
create(DistanceToCoastGradient distanceToCoastGradient,
DepthGradient depthGradient,
Location location,
NearbySpecificArea nearbySpecificArea,
Sale sale,
Collection<FishingArea2RegulationLocation> regulationLocation,
Sample sample,
Produce produce,
VesselUseFeatures vesselUseFeatures,
GearUseFeatures gearUseFeatures)
Creates a new
fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea
instance from all attributes and
properties and adds it to the persistent store. |
FishingArea |
create(FishingArea fishingArea)
Creates an instance of fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea and adds it to the persistent store.
|
Collection<?> |
create(int transform,
Collection<FishingArea> entities)
Does the same thing as
FishingAreaDao.create(fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea) with an
additional flag called transform. |
Object |
create(int transform,
DistanceToCoastGradient distanceToCoastGradient,
DepthGradient depthGradient,
Location location,
NearbySpecificArea nearbySpecificArea,
Sale sale,
Collection<FishingArea2RegulationLocation> regulationLocation,
Sample sample,
Produce produce,
VesselUseFeatures vesselUseFeatures,
GearUseFeatures gearUseFeatures)
Does the same thing as
#create(fr.ifremer.adagio.core.dao.referential.DistanceToCoastGradient,fr.ifremer.adagio.core.dao.referential.DepthGradient,fr.ifremer.adagio.core.dao.referential.location.Location,fr.ifremer.adagio.core.dao.referential.NearbySpecificArea,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,java.util.Collection with an
additional flag called transform. |
Object |
create(int transform,
FishingArea fishingArea)
Does the same thing as
FishingAreaDao.create(fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea) with an
additional flag called transform. |
Object |
create(int transform,
Location location)
Does the same thing as
FishingAreaDao.create(fr.ifremer.adagio.core.dao.referential.location.Location) with an
additional flag called transform. |
FishingArea |
create(Location location)
Creates a new
fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set,
otherwise returns null. |
FishingArea |
load(Integer id)
Loads an instance of fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea from the persistent store.
|
Object |
load(int transform,
Integer id)
Does the same thing as
FishingAreaDao.load(java.lang.Integer) with an
additional flag called transform. |
Collection<FishingArea> |
loadAll()
Loads all entities of type
FishingArea. |
Collection<?> |
loadAll(int transform)
Does the same thing as
FishingAreaDao.loadAll() with an
additional flag called transform. |
Collection<?> |
loadAll(int pageNumber,
int pageSize)
Does the same thing as
FishingAreaDao.loadAll() with an
additional two arguments called pageNumber and pageSize. |
Collection<?> |
loadAll(int transform,
int pageNumber,
int pageSize)
Does the same thing as
FishingAreaDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize. |
void |
remove(Collection<FishingArea> entities)
Removes all entities in the given
entities |
void |
remove(FishingArea fishingArea)
Removes the instance of fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea from the persistent store.
|
void |
remove(Integer id)
Removes the instance of fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea 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.adagio.core.dao.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.adagio.core.dao.Search) but with an
additional two flags called
pageNumber and pageSize. |
Set<?> |
search(int transform,
Search search)
Does the same thing as
FishingAreaDao.search(fr.ifremer.adagio.core.dao.Search) but with an
additional flag called transform. |
Set<FishingArea> |
search(Search search)
Performs a search using the parameters specified in the given
search object. |
protected FishingArea |
toEntity(Object[] row) |
protected void |
transformEntities(int transform,
Collection<?> entities)
Transforms a collection of entities using the
transformEntity(int,fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)
method. |
protected Object |
transformEntity(int transform,
FishingArea 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.adagio.core.dao.data.fishingArea.FishingAreaDao, please note
that the FishingAreaDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned. |
void |
update(Collection<FishingArea> entities)
Updates all instances in the
entities collection in the persistent store. |
void |
update(FishingArea fishingArea)
Updates the
fishingArea instance in the persistent store. |
public Object load(int transform, Integer id)
FishingAreaDao
Does the same thing as FishingAreaDao.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 FishingAreaDaoid - identifier of the entity to loadFishingAreaDao.load(int, java.lang.Integer)public FishingArea load(Integer id)
FishingAreaDaoload in interface FishingAreaDaoFishingAreaDao.load(java.lang.Integer)public Collection<FishingArea> loadAll()
FishingAreaDaoFishingArea.loadAll in interface FishingAreaDaoFishingAreaDao.loadAll()public Collection<?> loadAll(int transform)
FishingAreaDao
Does the same thing as FishingAreaDao.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 FishingAreaDaotransform - the flag indicating what transformation to use.FishingAreaDao.loadAll(int)public Collection<?> loadAll(int pageNumber, int pageSize)
FishingAreaDao
Does the same thing as FishingAreaDao.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 FishingAreaDaopageNumber - the page number to retrieve when paging results.pageSize - the size of the page to retrieve when paging results.FishingAreaDao.loadAll(int, int)public Collection<?> loadAll(int transform, int pageNumber, int pageSize)
FishingAreaDao
Does the same thing as FishingAreaDao.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 FishingAreaDaotransform - 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.FishingAreaDao.loadAll(int, int, int)public FishingArea create(FishingArea fishingArea)
FishingAreaDaocreate in interface FishingAreaDaoFishingAreaDao.create(fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)public Object create(int transform, FishingArea fishingArea)
FishingAreaDao
Does the same thing as FishingAreaDao.create(fr.ifremer.adagio.core.dao.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 FishingAreaDaoFishingAreaDao.create(int transform, fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)public Collection<FishingArea> create(Collection<FishingArea> entities)
FishingAreaDaoentities collectioncreate in interface FishingAreaDaoentities - the collection of fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea
instances to create.fr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao#create(java.util.Collection) public Collection<?> create(int transform, Collection<FishingArea> entities)
FishingAreaDao
Does the same thing as FishingAreaDao.create(fr.ifremer.adagio.core.dao.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 entities (into value objects for example). By default, transformation does
not occur.
create in interface FishingAreaDaofr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao#create(int, java.util.Collection) public FishingArea create(DistanceToCoastGradient distanceToCoastGradient, DepthGradient depthGradient, Location location, NearbySpecificArea nearbySpecificArea, Sale sale, Collection<FishingArea2RegulationLocation> regulationLocation, Sample sample, Produce produce, VesselUseFeatures vesselUseFeatures, GearUseFeatures gearUseFeatures)
FishingAreaDao
Creates a new fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea
instance from all attributes and
properties and adds it to the persistent store.
create in interface FishingAreaDaofr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao#create(fr.ifremer.adagio.core.dao.referential.DistanceToCoastGradient,fr.ifremer.adagio.core.dao.referential.DepthGradient,fr.ifremer.adagio.core.dao.referential.location.Location,fr.ifremer.adagio.core.dao.referential.NearbySpecificArea,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,java.util.Collection,fr.ifremer.adagio.core.dao.data.sample.Sample,fr.ifremer.adagio.core.dao.data.produce.Produce,fr.ifremer.adagio.core.dao.data.vessel.feature.use.VesselUseFeatures,fr.ifremer.adagio.core.dao.data.vessel.feature.use.GearUseFeatures) public Object create(int transform, DistanceToCoastGradient distanceToCoastGradient, DepthGradient depthGradient, Location location, NearbySpecificArea nearbySpecificArea, Sale sale, Collection<FishingArea2RegulationLocation> regulationLocation, Sample sample, Produce produce, VesselUseFeatures vesselUseFeatures, GearUseFeatures gearUseFeatures)
FishingAreaDao
Does the same thing as #create(fr.ifremer.adagio.core.dao.referential.DistanceToCoastGradient,fr.ifremer.adagio.core.dao.referential.DepthGradient,fr.ifremer.adagio.core.dao.referential.location.Location,fr.ifremer.adagio.core.dao.referential.NearbySpecificArea,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,java.util.Collection 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 FishingAreaDaofr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao#create(int, fr.ifremer.adagio.core.dao.referential.DistanceToCoastGradient,fr.ifremer.adagio.core.dao.referential.DepthGradient,fr.ifremer.adagio.core.dao.referential.location.Location,fr.ifremer.adagio.core.dao.referential.NearbySpecificArea,fr.ifremer.adagio.core.dao.data.survey.sale.Sale,java.util.Collection,fr.ifremer.adagio.core.dao.data.sample.Sample,fr.ifremer.adagio.core.dao.data.produce.Produce,fr.ifremer.adagio.core.dao.data.vessel.feature.use.VesselUseFeatures,fr.ifremer.adagio.core.dao.data.vessel.feature.use.GearUseFeatures) public FishingArea create(Location location)
FishingAreaDao
Creates a new fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create in interface FishingAreaDaoFishingAreaDao.create(fr.ifremer.adagio.core.dao.referential.location.Location)public Object create(int transform, Location location)
FishingAreaDao
Does the same thing as FishingAreaDao.create(fr.ifremer.adagio.core.dao.referential.location.Location) 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 FishingAreaDaoFishingAreaDao.create(int, fr.ifremer.adagio.core.dao.referential.location.Location)public void update(FishingArea fishingArea)
FishingAreaDaofishingArea instance in the persistent store.update in interface FishingAreaDaoFishingAreaDao.update(fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)public void update(Collection<FishingArea> entities)
FishingAreaDaoentities collection in the persistent store.update in interface FishingAreaDaofr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao#update(java.util.Collection) public void remove(FishingArea fishingArea)
FishingAreaDaoremove in interface FishingAreaDaoFishingAreaDao.remove(fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)public void remove(Integer id)
FishingAreaDaoidentifier from the persistent store.remove in interface FishingAreaDaoFishingAreaDao.remove(java.lang.Integer)public void remove(Collection<FishingArea> entities)
FishingAreaDaoentities collection.remove in interface FishingAreaDaofr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao#remove(java.util.Collection) protected Object transformEntity(int transform, FishingArea entity)
transform
flag is set to one of the constants defined in fr.ifremer.adagio.core.dao.data.fishingArea.FishingAreaDao, please note
that the FishingAreaDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself
will be returned.
If the integer argument value is unknown FishingAreaDao.TRANSFORM_NONE is assumed.transform - one of the constants declared in FishingAreaDaoentity - an entity that was foundtransformEntities(int,java.util.Collection)protected void transformEntities(int transform,
Collection<?> entities)
transformEntity(int,fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)
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.adagio.core.dao.data.fishingArea.FishingAreaDaoentities - the collection of entities to transformtransformEntity(int,fr.ifremer.adagio.core.dao.data.fishingArea.FishingArea)protected FishingArea toEntity(Object[] row)
protected Principal getPrincipal()
principal if one has been set,
otherwise returns null.public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
FishingAreaDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface FishingAreaDaotransform - 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.FishingAreaDao.search(int, int, int, fr.ifremer.adagio.core.dao.Search)public PaginationResult search(int pageNumber, int pageSize, Search search)
FishingAreaDaopageNumber and pageSize. These flags allow you to
limit your data to a specified page number and size.search in interface FishingAreaDaopageNumber - 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.FishingAreaDao.search(int, int, fr.ifremer.adagio.core.dao.Search)public Set<?> search(int transform, Search search)
FishingAreaDaoFishingAreaDao.search(fr.ifremer.adagio.core.dao.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 FishingAreaDaotransform - the transformation flag.search - the search object which provides the search parameters and pagination specification.FishingAreaDao.search(int, fr.ifremer.adagio.core.dao.Search)public Set<FishingArea> search(Search search)
FishingAreaDaosearch object.search in interface FishingAreaDaosearch - the search object which provides the search parameters and pagination specification.FishingAreaDao.search(fr.ifremer.adagio.core.dao.Search)Copyright © 2013. All Rights Reserved.