|
||||||||||
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.LocationDaoBase
public abstract class LocationDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.location.Location
.
Location
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.location.LocationDao |
---|
TRANSFORM_CLUSTERLOCATION, TRANSFORM_NONE, TRANSFORM_REMOTELOCATIONFULLVO, TRANSFORM_REMOTELOCATIONNATURALID |
Constructor Summary | |
---|---|
LocationDaoBase()
|
Method Summary | |
---|---|
void |
clusterLocationToEntity(ClusterLocation source,
Location target,
boolean copyIfNull)
Copies the fields of ClusterLocation to the specified entity. |
void |
clusterLocationToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterLocation to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.location.Location and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as LocationDao.create(fr.ifremer.allegro.referential.location.Location) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
Location location)
Does the same thing as LocationDao.create(fr.ifremer.allegro.referential.location.Location) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
LocationClassification locationClassification,
LocationLevel locationLevel,
java.lang.String name,
Status status)
Does the same thing as LocationDao.create(fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.location.LocationLevel,java.lang.String,fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.String label,
java.lang.String name,
java.sql.Timestamp updateDate,
LocationLevel locationLevel,
LocationClassification locationClassification,
Status status,
java.util.Collection locationAreas,
java.util.Collection locationLines,
java.util.Collection locationPoints)
Does the same thing as LocationDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection,java.util.Collection) with an
additional flag called transform . |
Location |
create(Location location)
Creates an instance of fr.ifremer.allegro.referential.location.Location and adds it to the persistent store. |
Location |
create(LocationClassification locationClassification,
LocationLevel locationLevel,
java.lang.String name,
Status status)
Creates a new fr.ifremer.allegro.referential.location.Location
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
Location |
create(java.lang.String label,
java.lang.String name,
java.sql.Timestamp updateDate,
LocationLevel locationLevel,
LocationClassification locationClassification,
Status status,
java.util.Collection locationAreas,
java.util.Collection locationLines,
java.util.Collection locationPoints)
Creates a new fr.ifremer.allegro.referential.location.Location
instance from all attributes and
properties and adds it to the persistent store. |
Location |
createFromClusterLocation(ClusterLocation clusterLocation)
|
Location |
findLocationById(java.lang.Integer id)
|
java.lang.Object |
findLocationById(int transform,
java.lang.Integer id)
Does the same thing as LocationDao.findLocationById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findLocationById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationDao.findLocationById(int, java.lang.Integer) with an
additional argument called queryString . |
Location |
findLocationById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationDao.findLocationById(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findLocationByLocationClassification(int transform,
int pageNumber,
int pageSize,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationClassification(int pageNumber,
int pageSize,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationClassification(int transform,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification) with an
additional flag called transform . |
java.util.Collection |
findLocationByLocationClassification(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(int, String, fr.ifremer.allegro.referential.location.LocationClassification) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationClassification(int transform,
java.lang.String queryString,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification) with an
additional argument called queryString . |
java.util.Collection |
findLocationByLocationClassification(LocationClassification locationClassification)
|
java.util.Collection |
findLocationByLocationClassification(java.lang.String queryString,
int pageNumber,
int pageSize,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(String, fr.ifremer.allegro.referential.location.LocationClassification) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationClassification(java.lang.String queryString,
LocationClassification locationClassification)
Does the same thing as LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification) with an
additional argument called queryString . |
java.util.Collection |
findLocationByLocationLevel(int transform,
int pageNumber,
int pageSize,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationLevel(int pageNumber,
int pageSize,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationLevel(int transform,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel) with an
additional flag called transform . |
java.util.Collection |
findLocationByLocationLevel(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(int, String, fr.ifremer.allegro.referential.location.LocationLevel) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationLevel(int transform,
java.lang.String queryString,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel) with an
additional argument called queryString . |
java.util.Collection |
findLocationByLocationLevel(LocationLevel locationLevel)
|
java.util.Collection |
findLocationByLocationLevel(java.lang.String queryString,
int pageNumber,
int pageSize,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(String, fr.ifremer.allegro.referential.location.LocationLevel) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByLocationLevel(java.lang.String queryString,
LocationLevel locationLevel)
Does the same thing as LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel) with an
additional argument called queryString . |
Location |
findLocationByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findLocationByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as LocationDao.findLocationByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findLocationByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationDao.findLocationByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
Location |
findLocationByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as LocationDao.findLocationByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findLocationByStatus(int transform,
int pageNumber,
int pageSize,
Status status)
Does the same thing as LocationDao.findLocationByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByStatus(int pageNumber,
int pageSize,
Status status)
Does the same thing as LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByStatus(int transform,
Status status)
Does the same thing as LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status) with an
additional flag called transform . |
java.util.Collection |
findLocationByStatus(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as LocationDao.findLocationByStatus(int, String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByStatus(int transform,
java.lang.String queryString,
Status status)
Does the same thing as LocationDao.findLocationByStatus(int, fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
java.util.Collection |
findLocationByStatus(Status status)
|
java.util.Collection |
findLocationByStatus(java.lang.String queryString,
int pageNumber,
int pageSize,
Status status)
Does the same thing as LocationDao.findLocationByStatus(String, fr.ifremer.allegro.referential.Status) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findLocationByStatus(java.lang.String queryString,
Status status)
Does the same thing as LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status) with an
additional argument called queryString . |
ClusterLocation[] |
getAllClusterLocationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllLocation()
|
java.util.Collection |
getAllLocation(int transform)
Does the same thing as LocationDao.getAllLocation() with an
additional flag called transform . |
java.util.Collection |
getAllLocation(int pageNumber,
int pageSize)
Does the same thing as LocationDao.getAllLocation() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocation(int transform,
int pageNumber,
int pageSize)
Does the same thing as LocationDao.getAllLocation(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocation(int transform,
java.lang.String queryString)
Does the same thing as LocationDao.getAllLocation(int) with an
additional argument called queryString . |
java.util.Collection |
getAllLocation(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as LocationDao.getAllLocation(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocation(java.lang.String queryString)
Does the same thing as LocationDao.getAllLocation() with an
additional argument called queryString . |
java.util.Collection |
getAllLocation(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as LocationDao.getAllLocation(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllLocationSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllLocationSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllLocationSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllLocationSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected LocationAreaDao |
getLocationAreaDao()
Gets the reference to locationAreaDao . |
protected LocationClassificationDao |
getLocationClassificationDao()
Gets the reference to locationClassificationDao . |
protected LocationLevelDao |
getLocationLevelDao()
Gets the reference to locationLevelDao . |
protected LocationLineDao |
getLocationLineDao()
Gets the reference to locationLineDao . |
protected LocationPointDao |
getLocationPointDao()
Gets the reference to locationPointDao . |
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected StatusDao |
getStatusDao()
Gets the reference to statusDao . |
protected abstract Location |
handleCreateFromClusterLocation(ClusterLocation clusterLocation)
Performs the core logic for createFromClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation) |
protected abstract ClusterLocation[] |
handleGetAllClusterLocationSinceDateSynchro(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 getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
Location |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.location.Location from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as LocationDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type Location . |
java.util.Collection |
loadAll(int transform)
Does the same thing as LocationDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as LocationDao.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 LocationDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteLocationFullVOToEntity(RemoteLocationFullVO source,
Location target,
boolean copyIfNull)
Copies the fields of RemoteLocationFullVO to the specified entity. |
void |
remoteLocationFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteLocationFullVO to this
DAO's entity. |
void |
remoteLocationNaturalIdToEntity(RemoteLocationNaturalId source,
Location target,
boolean copyIfNull)
Copies the fields of RemoteLocationNaturalId to the specified entity. |
void |
remoteLocationNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteLocationNaturalId 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.Location having the given identifier from the persistent store. |
void |
remove(Location location)
Removes the instance of fr.ifremer.allegro.referential.location.Location 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 LocationDao.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 |
setLocationAreaDao(LocationAreaDao locationAreaDao)
Sets the reference to locationAreaDao . |
void |
setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
Sets the reference to locationClassificationDao . |
void |
setLocationLevelDao(LocationLevelDao locationLevelDao)
Sets the reference to locationLevelDao . |
void |
setLocationLineDao(LocationLineDao locationLineDao)
Sets the reference to locationLineDao . |
void |
setLocationPointDao(LocationPointDao locationPointDao)
Sets the reference to locationPointDao . |
void |
setStatusDao(StatusDao statusDao)
Sets the reference to statusDao . |
ClusterLocation |
toClusterLocation(Location entity)
Converts this DAO's entity to an object of type ClusterLocation . |
void |
toClusterLocation(Location source,
ClusterLocation target)
Copies the fields of the specified entity to the target value object. |
protected ClusterLocation |
toClusterLocation(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterLocation[] |
toClusterLocationArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterLocation . |
void |
toClusterLocationCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterLocation . |
protected Location |
toEntity(java.lang.Object[] row)
|
RemoteLocationFullVO |
toRemoteLocationFullVO(Location entity)
Converts this DAO's entity to an object of type RemoteLocationFullVO . |
void |
toRemoteLocationFullVO(Location source,
RemoteLocationFullVO target)
Copies the fields of the specified entity to the target value object. |
protected RemoteLocationFullVO |
toRemoteLocationFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteLocationFullVO[] |
toRemoteLocationFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteLocationFullVO . |
void |
toRemoteLocationFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteLocationFullVO . |
RemoteLocationNaturalId |
toRemoteLocationNaturalId(Location entity)
Converts this DAO's entity to an object of type RemoteLocationNaturalId . |
void |
toRemoteLocationNaturalId(Location source,
RemoteLocationNaturalId target)
Copies the fields of the specified entity to the target value object. |
protected RemoteLocationNaturalId |
toRemoteLocationNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteLocationNaturalId[] |
toRemoteLocationNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteLocationNaturalId . |
void |
toRemoteLocationNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteLocationNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.location.Location)
method. |
protected java.lang.Object |
transformEntity(int transform,
Location 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.LocationDao , please note
that the LocationDao.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(Location location)
Updates the location 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.LocationDao |
---|
clusterLocationToEntity, remoteLocationFullVOToEntity, remoteLocationNaturalIdToEntity |
Constructor Detail |
---|
public LocationDaoBase()
Method Detail |
---|
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
locationClassificationDao
.
protected LocationClassificationDao getLocationClassificationDao()
locationClassificationDao
.
public void setLocationLevelDao(LocationLevelDao locationLevelDao)
locationLevelDao
.
protected LocationLevelDao getLocationLevelDao()
locationLevelDao
.
public void setLocationAreaDao(LocationAreaDao locationAreaDao)
locationAreaDao
.
protected LocationAreaDao getLocationAreaDao()
locationAreaDao
.
public void setLocationLineDao(LocationLineDao locationLineDao)
locationLineDao
.
protected LocationLineDao getLocationLineDao()
locationLineDao
.
public void setLocationPointDao(LocationPointDao locationPointDao)
locationPointDao
.
protected LocationPointDao getLocationPointDao()
locationPointDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.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 LocationDao
id
- identifier of the entity to load
LocationDao.load(int, java.lang.Integer)
public Location load(java.lang.Integer id)
LocationDao
load
in interface LocationDao
LocationDao.load(java.lang.Integer)
public java.util.Collection loadAll()
LocationDao
Location
.
loadAll
in interface LocationDao
LocationDao.loadAll()
public java.util.Collection loadAll(int transform)
LocationDao
Does the same thing as LocationDao.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 LocationDao
transform
- the flag indicating what transformation to use.
LocationDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
LocationDao
Does the same thing as LocationDao.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 LocationDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
LocationDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
LocationDao
Does the same thing as LocationDao.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 LocationDao
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.
LocationDao.loadAll(int, int, int)
public Location create(Location location)
LocationDao
create
in interface LocationDao
LocationDao.create(fr.ifremer.allegro.referential.location.Location)
public java.lang.Object create(int transform, Location location)
LocationDao
Does the same thing as LocationDao.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 LocationDao
LocationDao.create(int transform, fr.ifremer.allegro.referential.location.Location)
public java.util.Collection create(java.util.Collection entities)
LocationDao
entities
collection
create
in interface LocationDao
entities
- the collection of fr.ifremer.allegro.referential.location.Location
instances to create.
LocationDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
LocationDao
Does the same thing as LocationDao.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 entities (into value objects for example). By default, transformation does
not occur.
create
in interface LocationDao
LocationDao.create(int, java.util.Collection)
public Location create(java.lang.String label, java.lang.String name, java.sql.Timestamp updateDate, LocationLevel locationLevel, LocationClassification locationClassification, Status status, java.util.Collection locationAreas, java.util.Collection locationLines, java.util.Collection locationPoints)
LocationDao
Creates a new fr.ifremer.allegro.referential.location.Location
instance from all attributes and
properties and adds it to the persistent store.
create
in interface LocationDao
LocationDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection,java.util.Collection)
public java.lang.Object create(int transform, java.lang.String label, java.lang.String name, java.sql.Timestamp updateDate, LocationLevel locationLevel, LocationClassification locationClassification, Status status, java.util.Collection locationAreas, java.util.Collection locationLines, java.util.Collection locationPoints)
LocationDao
Does the same thing as LocationDao.create(java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection,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 LocationDao
LocationDao.create(int, java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection,java.util.Collection)
public Location create(LocationClassification locationClassification, LocationLevel locationLevel, java.lang.String name, Status status)
LocationDao
Creates a new fr.ifremer.allegro.referential.location.Location
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface LocationDao
LocationDao.create(fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.location.LocationLevel,java.lang.String,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, LocationClassification locationClassification, LocationLevel locationLevel, java.lang.String name, Status status)
LocationDao
Does the same thing as LocationDao.create(fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.location.LocationLevel,java.lang.String,fr.ifremer.allegro.referential.Status)
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 LocationDao
LocationDao.create(int, fr.ifremer.allegro.referential.location.LocationClassification,fr.ifremer.allegro.referential.location.LocationLevel,java.lang.String,fr.ifremer.allegro.referential.Status)
public void update(Location location)
LocationDao
location
instance in the persistent store.
update
in interface LocationDao
LocationDao.update(fr.ifremer.allegro.referential.location.Location)
public void update(java.util.Collection entities)
LocationDao
entities
collection in the persistent store.
update
in interface LocationDao
LocationDao.update(java.util.Collection)
public void remove(Location location)
LocationDao
remove
in interface LocationDao
LocationDao.remove(fr.ifremer.allegro.referential.location.Location)
public void remove(java.lang.Integer id)
LocationDao
identifier
from the persistent store.
remove
in interface LocationDao
LocationDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
LocationDao
entities collection.
- Specified by:
remove
in interface LocationDao
- See Also:
LocationDao.remove(java.util.Collection)
public java.util.Collection getAllLocation()
getAllLocation
in interface LocationDao
LocationDao.getAllLocation()
public java.util.Collection getAllLocation(int transform)
LocationDao
Does the same thing as LocationDao.getAllLocation()
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.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(int)
public java.util.Collection getAllLocation(java.lang.String queryString)
LocationDao
Does the same thing as LocationDao.getAllLocation()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.getAllLocation()
.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(java.lang.String)
public java.util.Collection getAllLocation(int pageNumber, int pageSize)
LocationDao
Does the same thing as LocationDao.getAllLocation()
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.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(int, int)
public java.util.Collection getAllLocation(java.lang.String queryString, int pageNumber, int pageSize)
LocationDao
Does the same thing as LocationDao.getAllLocation(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.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(String, int, int)
public java.util.Collection getAllLocation(int transform, java.lang.String queryString)
LocationDao
Does the same thing as LocationDao.getAllLocation(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.getAllLocation(int)
.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(int, String)
public java.util.Collection getAllLocation(int transform, int pageNumber, int pageSize)
LocationDao
Does the same thing as LocationDao.getAllLocation(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.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(int, int, int)
public java.util.Collection getAllLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize)
LocationDao
Does the same thing as LocationDao.getAllLocation(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.
getAllLocation
in interface LocationDao
LocationDao.getAllLocation(int, java.lang.String, int, int)
public Location findLocationById(java.lang.Integer id)
findLocationById
in interface LocationDao
LocationDao.findLocationById(java.lang.Integer)
public java.lang.Object findLocationById(int transform, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.findLocationById(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.
findLocationById
in interface LocationDao
LocationDao.findLocationById(int, java.lang.Integer)
public Location findLocationById(java.lang.String queryString, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.findLocationById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationById(java.lang.Integer)
.
findLocationById
in interface LocationDao
LocationDao.findLocationById(java.lang.String, java.lang.Integer)
public java.lang.Object findLocationById(int transform, java.lang.String queryString, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.findLocationById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationById(int, java.lang.Integer id)
.
findLocationById
in interface LocationDao
LocationDao.findLocationById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findLocationByStatus(Status status)
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(int transform, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status)
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.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(java.lang.String queryString, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status)
.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(int pageNumber, int pageSize, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(fr.ifremer.allegro.referential.Status)
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.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(String, fr.ifremer.allegro.referential.Status)
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.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(int transform, java.lang.String queryString, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(int, fr.ifremer.allegro.referential.Status)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByStatus(int, fr.ifremer.allegro.referential.Status status)
.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(int, String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(int transform, int pageNumber, int pageSize, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(int, fr.ifremer.allegro.referential.Status)
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.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
LocationDao
Does the same thing as LocationDao.findLocationByStatus(int, String, fr.ifremer.allegro.referential.Status)
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.
findLocationByStatus
in interface LocationDao
LocationDao.findLocationByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findLocationByLocationClassification(LocationClassification locationClassification)
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(int transform, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification)
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.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(java.lang.String queryString, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification)
.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(java.lang.String, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(int pageNumber, int pageSize, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification)
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.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(int, int, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(java.lang.String queryString, int pageNumber, int pageSize, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(String, fr.ifremer.allegro.referential.location.LocationClassification)
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.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(String, int, int, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(int transform, java.lang.String queryString, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification locationClassification)
.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(int, String, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(int transform, int pageNumber, int pageSize, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification)
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.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(int, int, int, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize, LocationClassification locationClassification)
LocationDao
Does the same thing as LocationDao.findLocationByLocationClassification(int, String, fr.ifremer.allegro.referential.location.LocationClassification)
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.
findLocationByLocationClassification
in interface LocationDao
LocationDao.findLocationByLocationClassification(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.LocationClassification)
public java.util.Collection findLocationByLocationLevel(LocationLevel locationLevel)
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(int transform, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)
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.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(java.lang.String queryString, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)
.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(java.lang.String, fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(int pageNumber, int pageSize, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)
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.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(int, int, fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(java.lang.String queryString, int pageNumber, int pageSize, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(String, fr.ifremer.allegro.referential.location.LocationLevel)
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.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(String, int, int, fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(int transform, java.lang.String queryString, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel locationLevel)
.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(int, String, fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(int transform, int pageNumber, int pageSize, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel)
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.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(int, int, int, fr.ifremer.allegro.referential.location.LocationLevel)
public java.util.Collection findLocationByLocationLevel(int transform, java.lang.String queryString, int pageNumber, int pageSize, LocationLevel locationLevel)
LocationDao
Does the same thing as LocationDao.findLocationByLocationLevel(int, String, fr.ifremer.allegro.referential.location.LocationLevel)
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.
findLocationByLocationLevel
in interface LocationDao
LocationDao.findLocationByLocationLevel(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.LocationLevel)
public Location findLocationByNaturalId(java.lang.Integer id)
findLocationByNaturalId
in interface LocationDao
LocationDao.findLocationByNaturalId(java.lang.Integer)
public java.lang.Object findLocationByNaturalId(int transform, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.findLocationByNaturalId(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.
findLocationByNaturalId
in interface LocationDao
LocationDao.findLocationByNaturalId(int, java.lang.Integer)
public Location findLocationByNaturalId(java.lang.String queryString, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.findLocationByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByNaturalId(java.lang.Integer)
.
findLocationByNaturalId
in interface LocationDao
LocationDao.findLocationByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findLocationByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
LocationDao
Does the same thing as LocationDao.findLocationByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.findLocationByNaturalId(int, java.lang.Integer id)
.
findLocationByNaturalId
in interface LocationDao
LocationDao.findLocationByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllLocationSinceDateSynchro(java.sql.Timestamp updateDate)
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(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.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.getAllLocationSinceDateSynchro(java.sql.Timestamp)
.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(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.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(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.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in LocationDao.getAllLocationSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(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.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllLocationSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
LocationDao
Does the same thing as LocationDao.getAllLocationSinceDateSynchro(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.
getAllLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllLocationSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Location createFromClusterLocation(ClusterLocation clusterLocation)
createFromClusterLocation
in interface LocationDao
LocationDao.createFromClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)
protected abstract Location handleCreateFromClusterLocation(ClusterLocation clusterLocation) throws java.lang.Exception
createFromClusterLocation(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)
java.lang.Exception
public ClusterLocation[] getAllClusterLocationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterLocationSinceDateSynchro
in interface LocationDao
LocationDao.getAllClusterLocationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterLocation[] handleGetAllClusterLocationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterLocationSinceDateSynchro(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, Location entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.location.LocationDao
, please note
that the LocationDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
Location
- LocationDao.TRANSFORM_NONE
RemoteLocationFullVO
- TRANSFORM_REMOTELOCATIONFULLVO
RemoteLocationNaturalId
- TRANSFORM_REMOTELOCATIONNATURALID
ClusterLocation
- TRANSFORM_CLUSTERLOCATION
LocationDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in LocationDao
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.Location)
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.LocationDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.location.Location)
protected Location toEntity(java.lang.Object[] row)
public final void toRemoteLocationFullVOCollection(java.util.Collection entities)
LocationDao
RemoteLocationFullVO
.
toRemoteLocationFullVOCollection
in interface LocationDao
LocationDao.toRemoteLocationFullVOCollection(java.util.Collection)
public final RemoteLocationFullVO[] toRemoteLocationFullVOArray(java.util.Collection entities)
LocationDao
RemoteLocationFullVO
.
toRemoteLocationFullVOArray
in interface LocationDao
LocationDao.toRemoteLocationFullVOArray(java.util.Collection)
protected RemoteLocationFullVO toRemoteLocationFullVO(java.lang.Object[] row)
LocationDaoImpl
class if you intend to use reporting queries.
LocationDao.toRemoteLocationFullVO(fr.ifremer.allegro.referential.location.Location)
public final void remoteLocationFullVOToEntityCollection(java.util.Collection instances)
LocationDao
RemoteLocationFullVO
to this
DAO's entity.
remoteLocationFullVOToEntityCollection
in interface LocationDao
LocationDao.remoteLocationFullVOToEntityCollection(java.util.Collection)
public void toRemoteLocationFullVO(Location source, RemoteLocationFullVO target)
LocationDao
toRemoteLocationFullVO
in interface LocationDao
LocationDao.toRemoteLocationFullVO(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO)
public RemoteLocationFullVO toRemoteLocationFullVO(Location entity)
LocationDao
RemoteLocationFullVO
.
toRemoteLocationFullVO
in interface LocationDao
LocationDao.toRemoteLocationFullVO(fr.ifremer.allegro.referential.location.Location)
public void remoteLocationFullVOToEntity(RemoteLocationFullVO source, Location target, boolean copyIfNull)
LocationDao
RemoteLocationFullVO
to the specified entity.
remoteLocationFullVOToEntity
in interface LocationDao
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.LocationDao#remoteLocationFullVOToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationFullVO, fr.ifremer.allegro.referential.location.Location)
public final void toRemoteLocationNaturalIdCollection(java.util.Collection entities)
LocationDao
RemoteLocationNaturalId
.
toRemoteLocationNaturalIdCollection
in interface LocationDao
LocationDao.toRemoteLocationNaturalIdCollection(java.util.Collection)
public final RemoteLocationNaturalId[] toRemoteLocationNaturalIdArray(java.util.Collection entities)
LocationDao
RemoteLocationNaturalId
.
toRemoteLocationNaturalIdArray
in interface LocationDao
LocationDao.toRemoteLocationNaturalIdArray(java.util.Collection)
protected RemoteLocationNaturalId toRemoteLocationNaturalId(java.lang.Object[] row)
LocationDaoImpl
class if you intend to use reporting queries.
LocationDao.toRemoteLocationNaturalId(fr.ifremer.allegro.referential.location.Location)
public final void remoteLocationNaturalIdToEntityCollection(java.util.Collection instances)
LocationDao
RemoteLocationNaturalId
to this
DAO's entity.
remoteLocationNaturalIdToEntityCollection
in interface LocationDao
LocationDao.remoteLocationNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteLocationNaturalId(Location source, RemoteLocationNaturalId target)
LocationDao
toRemoteLocationNaturalId
in interface LocationDao
LocationDao.toRemoteLocationNaturalId(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId)
public RemoteLocationNaturalId toRemoteLocationNaturalId(Location entity)
LocationDao
RemoteLocationNaturalId
.
toRemoteLocationNaturalId
in interface LocationDao
LocationDao.toRemoteLocationNaturalId(fr.ifremer.allegro.referential.location.Location)
public void remoteLocationNaturalIdToEntity(RemoteLocationNaturalId source, Location target, boolean copyIfNull)
LocationDao
RemoteLocationNaturalId
to the specified entity.
remoteLocationNaturalIdToEntity
in interface LocationDao
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.LocationDao#remoteLocationNaturalIdToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationNaturalId, fr.ifremer.allegro.referential.location.Location)
public final void toClusterLocationCollection(java.util.Collection entities)
LocationDao
ClusterLocation
.
toClusterLocationCollection
in interface LocationDao
LocationDao.toClusterLocationCollection(java.util.Collection)
public final ClusterLocation[] toClusterLocationArray(java.util.Collection entities)
LocationDao
ClusterLocation
.
toClusterLocationArray
in interface LocationDao
LocationDao.toClusterLocationArray(java.util.Collection)
protected ClusterLocation toClusterLocation(java.lang.Object[] row)
LocationDaoImpl
class if you intend to use reporting queries.
LocationDao.toClusterLocation(fr.ifremer.allegro.referential.location.Location)
public final void clusterLocationToEntityCollection(java.util.Collection instances)
LocationDao
ClusterLocation
to this
DAO's entity.
clusterLocationToEntityCollection
in interface LocationDao
LocationDao.clusterLocationToEntityCollection(java.util.Collection)
public void toClusterLocation(Location source, ClusterLocation target)
LocationDao
toClusterLocation
in interface LocationDao
LocationDao.toClusterLocation(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation)
public ClusterLocation toClusterLocation(Location entity)
LocationDao
ClusterLocation
.
toClusterLocation
in interface LocationDao
LocationDao.toClusterLocation(fr.ifremer.allegro.referential.location.Location)
public void clusterLocationToEntity(ClusterLocation source, Location target, boolean copyIfNull)
LocationDao
ClusterLocation
to the specified entity.
clusterLocationToEntity
in interface LocationDao
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.LocationDao#clusterLocationToEntity(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocation, fr.ifremer.allegro.referential.location.Location)
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)
LocationDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface LocationDao
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.LocationDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
LocationDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface LocationDao
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.LocationDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
LocationDao
LocationDao.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 LocationDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
LocationDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
LocationDao
search
object.
search
in interface LocationDao
search
- the search object which provides the search parameters and pagination specification.
LocationDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |