|
||||||||||
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.location.LocationAreaDaoBase
public abstract class LocationAreaDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.location.LocationArea
.
LocationArea
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.location.LocationAreaDao |
---|
TRANSFORM_CLUSTERLOCATIONAREA, TRANSFORM_NONE, TRANSFORM_REMOTELOCATIONAREAFULLVO, TRANSFORM_REMOTELOCATIONAREANATURALID |
Constructor Summary | |
---|---|
LocationAreaDaoBase()
|
Method Summary | |
---|---|
void |
clusterLocationAreaToEntity(ClusterLocationArea source,
LocationArea target,
boolean copyIfNull)
Copies the fields of ClusterLocationArea to the specified entity. |
void |
clusterLocationAreaToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterLocationArea to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.location.LocationArea and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as LocationAreaDao.create(fr.ifremer.allegro.referential.location.LocationArea) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Location location)
Does the same thing as LocationAreaDao.create(fr.ifremer.allegro.referential.location.Location) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
LocationArea locationArea)
Does the same thing as LocationAreaDao.create(fr.ifremer.allegro.referential.location.LocationArea) with an
additional flag called transform . |
LocationArea |
create(Location location)
Creates a new fr.ifremer.allegro.referential.location.LocationArea
instance from all attributes and
properties and adds it to the persistent store. |
LocationArea |
create(LocationArea locationArea)
Creates an instance of fr.ifremer.allegro.referential.location.LocationArea and adds it to the persistent store. |
LocationArea |
createFromClusterLocationArea(ClusterLocationArea clusterLocationArea)
|
LocationArea |
findLocationAreaById(java.lang.Integer id)
|
java.lang.Object |
findLocationAreaById(int transform,
java.lang.Integer id)
Does the same thing as LocationAreaDao.findLocationAreaById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findLocationAreaById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationAreaDao.findLocationAreaById(int, java.lang.Integer) with an
additional argument called queryString . |
LocationArea |
findLocationAreaById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationAreaDao.findLocationAreaById(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findLocationAreaByLocation(int transform,
int pageNumber,
int pageSize,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(int, fr.ifremer.allegro.referential.location.Location) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationAreaByLocation(int pageNumber,
int pageSize,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationAreaByLocation(int transform,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location) with an
additional flag called transform . |
java.util.Collection |
findLocationAreaByLocation(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationAreaByLocation(int transform,
java.lang.String queryString,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(int, fr.ifremer.allegro.referential.location.Location) with an
additional argument called queryString . |
java.util.Collection |
findLocationAreaByLocation(Location location)
|
java.util.Collection |
findLocationAreaByLocation(java.lang.String queryString,
int pageNumber,
int pageSize,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(String, fr.ifremer.allegro.referential.location.Location) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationAreaByLocation(java.lang.String queryString,
Location location)
Does the same thing as LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location) with an
additional argument called queryString . |
LocationArea |
findLocationAreaByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findLocationAreaByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as LocationAreaDao.findLocationAreaByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findLocationAreaByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationAreaDao.findLocationAreaByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
LocationArea |
findLocationAreaByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationAreaDao.findLocationAreaByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
getAllLocationArea()
|
java.util.Collection |
getAllLocationArea(int transform)
Does the same thing as LocationAreaDao.getAllLocationArea() with an
additional flag called transform . |
java.util.Collection |
getAllLocationArea(int pageNumber,
int pageSize)
Does the same thing as LocationAreaDao.getAllLocationArea() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationArea(int transform,
int pageNumber,
int pageSize)
Does the same thing as LocationAreaDao.getAllLocationArea(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationArea(int transform,
java.lang.String queryString)
Does the same thing as LocationAreaDao.getAllLocationArea(int) with an
additional argument called queryString . |
java.util.Collection |
getAllLocationArea(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as LocationAreaDao.getAllLocationArea(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationArea(java.lang.String queryString)
Does the same thing as LocationAreaDao.getAllLocationArea() with an
additional argument called queryString . |
java.util.Collection |
getAllLocationArea(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as LocationAreaDao.getAllLocationArea(String) with an
additional two arguments called pageNumber and pageSize . |
protected LocationDao |
getLocationDao()
Gets the reference to locationDao . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected abstract LocationArea |
handleCreateFromClusterLocationArea(ClusterLocationArea clusterLocationArea)
Performs the core logic for createFromClusterLocationArea(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationArea) |
LocationArea |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.location.LocationArea from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as LocationAreaDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type LocationArea . |
java.util.Collection |
loadAll(int transform)
Does the same thing as LocationAreaDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as LocationAreaDao.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 LocationAreaDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteLocationAreaFullVOToEntity(RemoteLocationAreaFullVO source,
LocationArea target,
boolean copyIfNull)
Copies the fields of RemoteLocationAreaFullVO to the specified entity. |
void |
remoteLocationAreaFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteLocationAreaFullVO to this
DAO's entity. |
void |
remoteLocationAreaNaturalIdToEntity(RemoteLocationAreaNaturalId source,
LocationArea target,
boolean copyIfNull)
Copies the fields of RemoteLocationAreaNaturalId to the specified entity. |
void |
remoteLocationAreaNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteLocationAreaNaturalId to this
DAO's entity. |
void |
remove(java.util.Collection entities)
Removes all entities in the given entities |
void |
remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.referential.location.LocationArea having the given identifier from the persistent store. |
void |
remove(LocationArea locationArea)
Removes the instance of fr.ifremer.allegro.referential.location.LocationArea 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 LocationAreaDao.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 |
setLocationDao(LocationDao locationDao)
Sets the reference to locationDao . |
ClusterLocationArea |
toClusterLocationArea(LocationArea entity)
Converts this DAO's entity to an object of type ClusterLocationArea . |
void |
toClusterLocationArea(LocationArea source,
ClusterLocationArea target)
Copies the fields of the specified entity to the target value object. |
protected ClusterLocationArea |
toClusterLocationArea(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterLocationArea[] |
toClusterLocationAreaArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterLocationArea . |
void |
toClusterLocationAreaCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterLocationArea . |
protected LocationArea |
toEntity(java.lang.Object[] row)
|
RemoteLocationAreaFullVO |
toRemoteLocationAreaFullVO(LocationArea entity)
Converts this DAO's entity to an object of type RemoteLocationAreaFullVO . |
void |
toRemoteLocationAreaFullVO(LocationArea source,
RemoteLocationAreaFullVO target)
Copies the fields of the specified entity to the target value object. |
protected RemoteLocationAreaFullVO |
toRemoteLocationAreaFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteLocationAreaFullVO[] |
toRemoteLocationAreaFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteLocationAreaFullVO . |
void |
toRemoteLocationAreaFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteLocationAreaFullVO . |
RemoteLocationAreaNaturalId |
toRemoteLocationAreaNaturalId(LocationArea entity)
Converts this DAO's entity to an object of type RemoteLocationAreaNaturalId . |
void |
toRemoteLocationAreaNaturalId(LocationArea source,
RemoteLocationAreaNaturalId target)
Copies the fields of the specified entity to the target value object. |
protected RemoteLocationAreaNaturalId |
toRemoteLocationAreaNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteLocationAreaNaturalId[] |
toRemoteLocationAreaNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteLocationAreaNaturalId . |
void |
toRemoteLocationAreaNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteLocationAreaNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.location.LocationArea)
method. |
protected java.lang.Object |
transformEntity(int transform,
LocationArea 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.location.LocationAreaDao , please note
that the LocationAreaDao.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(LocationArea locationArea)
Updates the locationArea 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.location.LocationAreaDao |
---|
clusterLocationAreaToEntity, remoteLocationAreaFullVOToEntity, remoteLocationAreaNaturalIdToEntity |
Constructor Detail |
---|
public LocationAreaDaoBase()
Method Detail |
---|
public void setLocationDao(LocationDao locationDao)
locationDao
.
protected LocationDao getLocationDao()
locationDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.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 LocationAreaDao
id
- identifier of the entity to load
LocationAreaDao.load(int, java.lang.Integer)
public LocationArea load(java.lang.Integer id)
LocationAreaDao
load
in interface LocationAreaDao
LocationAreaDao.load(java.lang.Integer)
public java.util.Collection loadAll()
LocationAreaDao
LocationArea
.
loadAll
in interface LocationAreaDao
LocationAreaDao.loadAll()
public java.util.Collection loadAll(int transform)
LocationAreaDao
Does the same thing as LocationAreaDao.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 LocationAreaDao
transform
- the flag indicating what transformation to use.
LocationAreaDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
LocationAreaDao
Does the same thing as LocationAreaDao.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 LocationAreaDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
LocationAreaDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
LocationAreaDao
Does the same thing as LocationAreaDao.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 LocationAreaDao
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.
LocationAreaDao.loadAll(int, int, int)
public LocationArea create(LocationArea locationArea)
LocationAreaDao
create
in interface LocationAreaDao
LocationAreaDao.create(fr.ifremer.allegro.referential.location.LocationArea)
public java.lang.Object create(int transform, LocationArea locationArea)
LocationAreaDao
Does the same thing as LocationAreaDao.create(fr.ifremer.allegro.referential.location.LocationArea)
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 LocationAreaDao
LocationAreaDao.create(int transform, fr.ifremer.allegro.referential.location.LocationArea)
public java.util.Collection create(java.util.Collection entities)
LocationAreaDao
entities
collection
create
in interface LocationAreaDao
entities
- the collection of fr.ifremer.allegro.referential.location.LocationArea
instances to create.
LocationAreaDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
LocationAreaDao
Does the same thing as LocationAreaDao.create(fr.ifremer.allegro.referential.location.LocationArea)
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 LocationAreaDao
LocationAreaDao.create(int, java.util.Collection)
public LocationArea create(Location location)
LocationAreaDao
Creates a new fr.ifremer.allegro.referential.location.LocationArea
instance from all attributes and
properties and adds it to the persistent store.
create
in interface LocationAreaDao
LocationAreaDao.create(fr.ifremer.allegro.referential.location.Location)
public java.lang.Object create(int transform, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.create(fr.ifremer.allegro.referential.location.Location)
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 LocationAreaDao
LocationAreaDao.create(int, fr.ifremer.allegro.referential.location.Location)
public void update(LocationArea locationArea)
LocationAreaDao
locationArea
instance in the persistent store.
update
in interface LocationAreaDao
LocationAreaDao.update(fr.ifremer.allegro.referential.location.LocationArea)
public void update(java.util.Collection entities)
LocationAreaDao
entities
collection in the persistent store.
update
in interface LocationAreaDao
LocationAreaDao.update(java.util.Collection)
public void remove(LocationArea locationArea)
LocationAreaDao
remove
in interface LocationAreaDao
LocationAreaDao.remove(fr.ifremer.allegro.referential.location.LocationArea)
public void remove(java.lang.Integer id)
LocationAreaDao
identifier
from the persistent store.
remove
in interface LocationAreaDao
LocationAreaDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
LocationAreaDao
entities collection.
- Specified by:
remove
in interface LocationAreaDao
- See Also:
LocationAreaDao.remove(java.util.Collection)
public java.util.Collection getAllLocationArea()
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea()
public java.util.Collection getAllLocationArea(int transform)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea()
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.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(int)
public java.util.Collection getAllLocationArea(java.lang.String queryString)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.getAllLocationArea()
.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(java.lang.String)
public java.util.Collection getAllLocationArea(int pageNumber, int pageSize)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea()
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.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(int, int)
public java.util.Collection getAllLocationArea(java.lang.String queryString, int pageNumber, int pageSize)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea(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.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(String, int, int)
public java.util.Collection getAllLocationArea(int transform, java.lang.String queryString)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.getAllLocationArea(int)
.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(int, String)
public java.util.Collection getAllLocationArea(int transform, int pageNumber, int pageSize)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea(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.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(int, int, int)
public java.util.Collection getAllLocationArea(int transform, java.lang.String queryString, int pageNumber, int pageSize)
LocationAreaDao
Does the same thing as LocationAreaDao.getAllLocationArea(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.
getAllLocationArea
in interface LocationAreaDao
LocationAreaDao.getAllLocationArea(int, java.lang.String, int, int)
public LocationArea findLocationAreaById(java.lang.Integer id)
findLocationAreaById
in interface LocationAreaDao
LocationAreaDao.findLocationAreaById(java.lang.Integer)
public java.lang.Object findLocationAreaById(int transform, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaById(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.
findLocationAreaById
in interface LocationAreaDao
LocationAreaDao.findLocationAreaById(int, java.lang.Integer)
public LocationArea findLocationAreaById(java.lang.String queryString, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.findLocationAreaById(java.lang.Integer)
.
findLocationAreaById
in interface LocationAreaDao
LocationAreaDao.findLocationAreaById(java.lang.String, java.lang.Integer)
public java.lang.Object findLocationAreaById(int transform, java.lang.String queryString, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.findLocationAreaById(int, java.lang.Integer id)
.
findLocationAreaById
in interface LocationAreaDao
LocationAreaDao.findLocationAreaById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findLocationAreaByLocation(Location location)
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(int transform, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location)
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.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(int, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(java.lang.String queryString, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location)
.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(java.lang.String, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(int pageNumber, int pageSize, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(fr.ifremer.allegro.referential.location.Location)
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.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(int, int, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(java.lang.String queryString, int pageNumber, int pageSize, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(String, fr.ifremer.allegro.referential.location.Location)
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.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(String, int, int, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(int transform, java.lang.String queryString, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(int, fr.ifremer.allegro.referential.location.Location)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.findLocationAreaByLocation(int, fr.ifremer.allegro.referential.location.Location location)
.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(int, String, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(int transform, int pageNumber, int pageSize, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(int, fr.ifremer.allegro.referential.location.Location)
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.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(int, int, int, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection findLocationAreaByLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location location)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByLocation(int, String, fr.ifremer.allegro.referential.location.Location)
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.
findLocationAreaByLocation
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByLocation(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.Location)
public LocationArea findLocationAreaByNaturalId(java.lang.Integer id)
findLocationAreaByNaturalId
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByNaturalId(java.lang.Integer)
public java.lang.Object findLocationAreaByNaturalId(int transform, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByNaturalId(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.
findLocationAreaByNaturalId
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByNaturalId(int, java.lang.Integer)
public LocationArea findLocationAreaByNaturalId(java.lang.String queryString, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.findLocationAreaByNaturalId(java.lang.Integer)
.
findLocationAreaByNaturalId
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findLocationAreaByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
LocationAreaDao
Does the same thing as LocationAreaDao.findLocationAreaByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationAreaDao.findLocationAreaByNaturalId(int, java.lang.Integer id)
.
findLocationAreaByNaturalId
in interface LocationAreaDao
LocationAreaDao.findLocationAreaByNaturalId(int, java.lang.String, java.lang.Integer)
public LocationArea createFromClusterLocationArea(ClusterLocationArea clusterLocationArea)
createFromClusterLocationArea
in interface LocationAreaDao
LocationAreaDao.createFromClusterLocationArea(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationArea)
protected abstract LocationArea handleCreateFromClusterLocationArea(ClusterLocationArea clusterLocationArea) throws java.lang.Exception
createFromClusterLocationArea(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationArea)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, LocationArea entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.location.LocationAreaDao
, please note
that the LocationAreaDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
LocationArea
- LocationAreaDao.TRANSFORM_NONE
RemoteLocationAreaFullVO
- TRANSFORM_REMOTELOCATIONAREAFULLVO
RemoteLocationAreaNaturalId
- TRANSFORM_REMOTELOCATIONAREANATURALID
ClusterLocationArea
- TRANSFORM_CLUSTERLOCATIONAREA
LocationAreaDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in LocationAreaDao
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.location.LocationArea)
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.location.LocationAreaDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.location.LocationArea)
protected LocationArea toEntity(java.lang.Object[] row)
public final void toRemoteLocationAreaFullVOCollection(java.util.Collection entities)
LocationAreaDao
RemoteLocationAreaFullVO
.
toRemoteLocationAreaFullVOCollection
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaFullVOCollection(java.util.Collection)
public final RemoteLocationAreaFullVO[] toRemoteLocationAreaFullVOArray(java.util.Collection entities)
LocationAreaDao
RemoteLocationAreaFullVO
.
toRemoteLocationAreaFullVOArray
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaFullVOArray(java.util.Collection)
protected RemoteLocationAreaFullVO toRemoteLocationAreaFullVO(java.lang.Object[] row)
LocationAreaDaoImpl
class if you intend to use reporting queries.
LocationAreaDao.toRemoteLocationAreaFullVO(fr.ifremer.allegro.referential.location.LocationArea)
public final void remoteLocationAreaFullVOToEntityCollection(java.util.Collection instances)
LocationAreaDao
RemoteLocationAreaFullVO
to this
DAO's entity.
remoteLocationAreaFullVOToEntityCollection
in interface LocationAreaDao
LocationAreaDao.remoteLocationAreaFullVOToEntityCollection(java.util.Collection)
public void toRemoteLocationAreaFullVO(LocationArea source, RemoteLocationAreaFullVO target)
LocationAreaDao
toRemoteLocationAreaFullVO
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaFullVO(fr.ifremer.allegro.referential.location.LocationArea, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationAreaFullVO)
public RemoteLocationAreaFullVO toRemoteLocationAreaFullVO(LocationArea entity)
LocationAreaDao
RemoteLocationAreaFullVO
.
toRemoteLocationAreaFullVO
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaFullVO(fr.ifremer.allegro.referential.location.LocationArea)
public void remoteLocationAreaFullVOToEntity(RemoteLocationAreaFullVO source, LocationArea target, boolean copyIfNull)
LocationAreaDao
RemoteLocationAreaFullVO
to the specified entity.
remoteLocationAreaFullVOToEntity
in interface LocationAreaDao
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.location.LocationAreaDao#remoteLocationAreaFullVOToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationAreaFullVO, fr.ifremer.allegro.referential.location.LocationArea)
public final void toRemoteLocationAreaNaturalIdCollection(java.util.Collection entities)
LocationAreaDao
RemoteLocationAreaNaturalId
.
toRemoteLocationAreaNaturalIdCollection
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaNaturalIdCollection(java.util.Collection)
public final RemoteLocationAreaNaturalId[] toRemoteLocationAreaNaturalIdArray(java.util.Collection entities)
LocationAreaDao
RemoteLocationAreaNaturalId
.
toRemoteLocationAreaNaturalIdArray
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaNaturalIdArray(java.util.Collection)
protected RemoteLocationAreaNaturalId toRemoteLocationAreaNaturalId(java.lang.Object[] row)
LocationAreaDaoImpl
class if you intend to use reporting queries.
LocationAreaDao.toRemoteLocationAreaNaturalId(fr.ifremer.allegro.referential.location.LocationArea)
public final void remoteLocationAreaNaturalIdToEntityCollection(java.util.Collection instances)
LocationAreaDao
RemoteLocationAreaNaturalId
to this
DAO's entity.
remoteLocationAreaNaturalIdToEntityCollection
in interface LocationAreaDao
LocationAreaDao.remoteLocationAreaNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteLocationAreaNaturalId(LocationArea source, RemoteLocationAreaNaturalId target)
LocationAreaDao
toRemoteLocationAreaNaturalId
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaNaturalId(fr.ifremer.allegro.referential.location.LocationArea, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationAreaNaturalId)
public RemoteLocationAreaNaturalId toRemoteLocationAreaNaturalId(LocationArea entity)
LocationAreaDao
RemoteLocationAreaNaturalId
.
toRemoteLocationAreaNaturalId
in interface LocationAreaDao
LocationAreaDao.toRemoteLocationAreaNaturalId(fr.ifremer.allegro.referential.location.LocationArea)
public void remoteLocationAreaNaturalIdToEntity(RemoteLocationAreaNaturalId source, LocationArea target, boolean copyIfNull)
LocationAreaDao
RemoteLocationAreaNaturalId
to the specified entity.
remoteLocationAreaNaturalIdToEntity
in interface LocationAreaDao
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.location.LocationAreaDao#remoteLocationAreaNaturalIdToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationAreaNaturalId, fr.ifremer.allegro.referential.location.LocationArea)
public final void toClusterLocationAreaCollection(java.util.Collection entities)
LocationAreaDao
ClusterLocationArea
.
toClusterLocationAreaCollection
in interface LocationAreaDao
LocationAreaDao.toClusterLocationAreaCollection(java.util.Collection)
public final ClusterLocationArea[] toClusterLocationAreaArray(java.util.Collection entities)
LocationAreaDao
ClusterLocationArea
.
toClusterLocationAreaArray
in interface LocationAreaDao
LocationAreaDao.toClusterLocationAreaArray(java.util.Collection)
protected ClusterLocationArea toClusterLocationArea(java.lang.Object[] row)
LocationAreaDaoImpl
class if you intend to use reporting queries.
LocationAreaDao.toClusterLocationArea(fr.ifremer.allegro.referential.location.LocationArea)
public final void clusterLocationAreaToEntityCollection(java.util.Collection instances)
LocationAreaDao
ClusterLocationArea
to this
DAO's entity.
clusterLocationAreaToEntityCollection
in interface LocationAreaDao
LocationAreaDao.clusterLocationAreaToEntityCollection(java.util.Collection)
public void toClusterLocationArea(LocationArea source, ClusterLocationArea target)
LocationAreaDao
toClusterLocationArea
in interface LocationAreaDao
LocationAreaDao.toClusterLocationArea(fr.ifremer.allegro.referential.location.LocationArea, fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationArea)
public ClusterLocationArea toClusterLocationArea(LocationArea entity)
LocationAreaDao
ClusterLocationArea
.
toClusterLocationArea
in interface LocationAreaDao
LocationAreaDao.toClusterLocationArea(fr.ifremer.allegro.referential.location.LocationArea)
public void clusterLocationAreaToEntity(ClusterLocationArea source, LocationArea target, boolean copyIfNull)
LocationAreaDao
ClusterLocationArea
to the specified entity.
clusterLocationAreaToEntity
in interface LocationAreaDao
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.location.LocationAreaDao#clusterLocationAreaToEntity(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationArea, fr.ifremer.allegro.referential.location.LocationArea)
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)
LocationAreaDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface LocationAreaDao
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.LocationAreaDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
LocationAreaDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface LocationAreaDao
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.LocationAreaDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
LocationAreaDao
LocationAreaDao.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 LocationAreaDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
LocationAreaDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
LocationAreaDao
search
object.
search
in interface LocationAreaDao
search
- the search object which provides the search parameters and pagination specification.
LocationAreaDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |