|
||||||||||
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.spatial.SpatialItemDaoBase
public abstract class SpatialItemDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.referential.spatial.SpatialItem
.
SpatialItem
Field Summary |
---|
Fields inherited from interface fr.ifremer.allegro.referential.spatial.SpatialItemDao |
---|
TRANSFORM_CLUSTERSPATIALITEM, TRANSFORM_NONE, TRANSFORM_REMOTESPATIALITEMFULLVO, TRANSFORM_REMOTESPATIALITEMNATURALID |
Constructor Summary | |
---|---|
SpatialItemDaoBase()
|
Method Summary | |
---|---|
void |
clusterSpatialItemToEntity(ClusterSpatialItem source,
SpatialItem target,
boolean copyIfNull)
Copies the fields of ClusterSpatialItem to the specified entity. |
void |
clusterSpatialItemToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterSpatialItem to this
DAO's entity. |
java.util.Collection |
create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.referential.spatial.SpatialItem and adds from the passed in entities collection |
java.util.Collection |
create(int transform,
java.util.Collection entities)
Does the same thing as SpatialItemDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem) with an
additional flag called transform . |
SpatialItem |
create(java.lang.Integer objectId,
SpatialItemType spatialItemType)
Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem
instance from only required properties (attributes
and association ends) and adds it to the persistent store. |
SpatialItem |
create(java.lang.Integer objectId,
java.sql.Timestamp updateDate,
java.util.Collection spatialItemLines,
java.util.Collection spatialItemAreas,
java.util.Collection spatialItemPoints,
SpatialItemType spatialItemType,
java.util.Collection spatialItem2Locations)
Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem
instance from all attributes and
properties and adds it to the persistent store. |
java.lang.Object |
create(int transform,
java.lang.Integer objectId,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.create(java.lang.Integer,fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
java.lang.Integer objectId,
java.sql.Timestamp updateDate,
java.util.Collection spatialItemLines,
java.util.Collection spatialItemAreas,
java.util.Collection spatialItemPoints,
SpatialItemType spatialItemType,
java.util.Collection spatialItem2Locations)
Does the same thing as SpatialItemDao.create(java.lang.Integer,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.spatial.SpatialItemType,java.util.Collection) with an
additional flag called transform . |
java.lang.Object |
create(int transform,
SpatialItem spatialItem)
Does the same thing as SpatialItemDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem) with an
additional flag called transform . |
SpatialItem |
create(SpatialItem spatialItem)
Creates an instance of fr.ifremer.allegro.referential.spatial.SpatialItem and adds it to the persistent store. |
SpatialItem |
createFromClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
|
SpatialItem |
findSpatialItemById(java.lang.Integer id)
|
java.lang.Object |
findSpatialItemById(int transform,
java.lang.Integer id)
Does the same thing as SpatialItemDao.findSpatialItemById(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findSpatialItemById(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SpatialItemDao.findSpatialItemById(int, java.lang.Integer) with an
additional argument called queryString . |
SpatialItem |
findSpatialItemById(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SpatialItemDao.findSpatialItemById(java.lang.Integer) with an
additional argument called queryString . |
SpatialItem |
findSpatialItemByNaturalId(java.lang.Integer id)
|
java.lang.Object |
findSpatialItemByNaturalId(int transform,
java.lang.Integer id)
Does the same thing as SpatialItemDao.findSpatialItemByNaturalId(java.lang.Integer) with an
additional flag called transform . |
java.lang.Object |
findSpatialItemByNaturalId(int transform,
java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.Integer) with an
additional argument called queryString . |
SpatialItem |
findSpatialItemByNaturalId(java.lang.String queryString,
java.lang.Integer id)
Does the same thing as SpatialItemDao.findSpatialItemByNaturalId(java.lang.Integer) with an
additional argument called queryString . |
java.util.Collection |
findSpatialItemBySpatialItemType(int transform,
int pageNumber,
int pageSize,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSpatialItemBySpatialItemType(int pageNumber,
int pageSize,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSpatialItemBySpatialItemType(int transform,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional flag called transform . |
java.util.Collection |
findSpatialItemBySpatialItemType(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(int, String, fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSpatialItemBySpatialItemType(int transform,
java.lang.String queryString,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional argument called queryString . |
java.util.Collection |
findSpatialItemBySpatialItemType(SpatialItemType spatialItemType)
|
java.util.Collection |
findSpatialItemBySpatialItemType(java.lang.String queryString,
int pageNumber,
int pageSize,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(String, fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
findSpatialItemBySpatialItemType(java.lang.String queryString,
SpatialItemType spatialItemType)
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType) with an
additional argument called queryString . |
ClusterSpatialItem[] |
getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
java.lang.Integer userId,
java.lang.Integer[] registrationLocationIds,
java.lang.Integer pageNumber,
java.lang.Integer pageSize)
|
java.util.Collection |
getAllSpatialItem()
|
java.util.Collection |
getAllSpatialItem(int transform)
Does the same thing as SpatialItemDao.getAllSpatialItem() with an
additional flag called transform . |
java.util.Collection |
getAllSpatialItem(int pageNumber,
int pageSize)
Does the same thing as SpatialItemDao.getAllSpatialItem() with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItem(int transform,
int pageNumber,
int pageSize)
Does the same thing as SpatialItemDao.getAllSpatialItem(int) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItem(int transform,
java.lang.String queryString)
Does the same thing as SpatialItemDao.getAllSpatialItem(int) with an
additional argument called queryString . |
java.util.Collection |
getAllSpatialItem(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as SpatialItemDao.getAllSpatialItem(int, String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItem(java.lang.String queryString)
Does the same thing as SpatialItemDao.getAllSpatialItem() with an
additional argument called queryString . |
java.util.Collection |
getAllSpatialItem(java.lang.String queryString,
int pageNumber,
int pageSize)
Does the same thing as SpatialItemDao.getAllSpatialItem(String) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(int transform,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(int transform,
java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(int transform,
java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(int transform,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp) with an
additional flag called transform . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(java.lang.String queryString,
int pageNumber,
int pageSize,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(String, java.sql.Timestamp) with an
additional two arguments called pageNumber and pageSize . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(java.lang.String queryString,
java.sql.Timestamp updateDate)
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp) with an
additional argument called queryString . |
java.util.Collection |
getAllSpatialItemSinceDateSynchro(java.sql.Timestamp updateDate)
|
protected java.security.Principal |
getPrincipal()
Gets the current principal if one has been set,
otherwise returns null . |
protected SpatialItem2LocationDao |
getSpatialItem2LocationDao()
Gets the reference to spatialItem2LocationDao . |
protected SpatialItemAreaDao |
getSpatialItemAreaDao()
Gets the reference to spatialItemAreaDao . |
protected SpatialItemLineDao |
getSpatialItemLineDao()
Gets the reference to spatialItemLineDao . |
protected SpatialItemPointDao |
getSpatialItemPointDao()
Gets the reference to spatialItemPointDao . |
protected SpatialItemTypeDao |
getSpatialItemTypeDao()
Gets the reference to spatialItemTypeDao . |
protected abstract SpatialItem |
handleCreateFromClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
Performs the core logic for createFromClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem) |
protected abstract ClusterSpatialItem[] |
handleGetAllClusterSpatialItemSinceDateSynchro(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 getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer) |
SpatialItem |
load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.referential.spatial.SpatialItem from the persistent store. |
java.lang.Object |
load(int transform,
java.lang.Integer id)
Does the same thing as SpatialItemDao.load(java.lang.Integer) with an
additional flag called transform . |
java.util.Collection |
loadAll()
Loads all entities of type SpatialItem . |
java.util.Collection |
loadAll(int transform)
Does the same thing as SpatialItemDao.loadAll() with an
additional flag called transform . |
java.util.Collection |
loadAll(int pageNumber,
int pageSize)
Does the same thing as SpatialItemDao.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 SpatialItemDao.loadAll(int) with an
additional two arguments called pageNumber and pageSize . |
void |
remoteSpatialItemFullVOToEntity(RemoteSpatialItemFullVO source,
SpatialItem target,
boolean copyIfNull)
Copies the fields of RemoteSpatialItemFullVO to the specified entity. |
void |
remoteSpatialItemFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteSpatialItemFullVO to this
DAO's entity. |
void |
remoteSpatialItemNaturalIdToEntity(RemoteSpatialItemNaturalId source,
SpatialItem target,
boolean copyIfNull)
Copies the fields of RemoteSpatialItemNaturalId to the specified entity. |
void |
remoteSpatialItemNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteSpatialItemNaturalId 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.spatial.SpatialItem having the given identifier from the persistent store. |
void |
remove(SpatialItem spatialItem)
Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem 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 SpatialItemDao.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 |
setSpatialItem2LocationDao(SpatialItem2LocationDao spatialItem2LocationDao)
Sets the reference to spatialItem2LocationDao . |
void |
setSpatialItemAreaDao(SpatialItemAreaDao spatialItemAreaDao)
Sets the reference to spatialItemAreaDao . |
void |
setSpatialItemLineDao(SpatialItemLineDao spatialItemLineDao)
Sets the reference to spatialItemLineDao . |
void |
setSpatialItemPointDao(SpatialItemPointDao spatialItemPointDao)
Sets the reference to spatialItemPointDao . |
void |
setSpatialItemTypeDao(SpatialItemTypeDao spatialItemTypeDao)
Sets the reference to spatialItemTypeDao . |
protected ClusterSpatialItem |
toClusterSpatialItem(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
ClusterSpatialItem |
toClusterSpatialItem(SpatialItem entity)
Converts this DAO's entity to an object of type ClusterSpatialItem . |
void |
toClusterSpatialItem(SpatialItem source,
ClusterSpatialItem target)
Copies the fields of the specified entity to the target value object. |
ClusterSpatialItem[] |
toClusterSpatialItemArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterSpatialItem . |
void |
toClusterSpatialItemCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterSpatialItem . |
protected SpatialItem |
toEntity(java.lang.Object[] row)
|
protected RemoteSpatialItemFullVO |
toRemoteSpatialItemFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteSpatialItemFullVO |
toRemoteSpatialItemFullVO(SpatialItem entity)
Converts this DAO's entity to an object of type RemoteSpatialItemFullVO . |
void |
toRemoteSpatialItemFullVO(SpatialItem source,
RemoteSpatialItemFullVO target)
Copies the fields of the specified entity to the target value object. |
RemoteSpatialItemFullVO[] |
toRemoteSpatialItemFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteSpatialItemFullVO . |
void |
toRemoteSpatialItemFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteSpatialItemFullVO . |
protected RemoteSpatialItemNaturalId |
toRemoteSpatialItemNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. |
RemoteSpatialItemNaturalId |
toRemoteSpatialItemNaturalId(SpatialItem entity)
Converts this DAO's entity to an object of type RemoteSpatialItemNaturalId . |
void |
toRemoteSpatialItemNaturalId(SpatialItem source,
RemoteSpatialItemNaturalId target)
Copies the fields of the specified entity to the target value object. |
RemoteSpatialItemNaturalId[] |
toRemoteSpatialItemNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteSpatialItemNaturalId . |
void |
toRemoteSpatialItemNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteSpatialItemNaturalId . |
protected void |
transformEntities(int transform,
java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.spatial.SpatialItem)
method. |
protected java.lang.Object |
transformEntity(int transform,
SpatialItem 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.spatial.SpatialItemDao , please note
that the SpatialItemDao.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(SpatialItem spatialItem)
Updates the spatialItem 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.spatial.SpatialItemDao |
---|
clusterSpatialItemToEntity, remoteSpatialItemFullVOToEntity, remoteSpatialItemNaturalIdToEntity |
Constructor Detail |
---|
public SpatialItemDaoBase()
Method Detail |
---|
public void setSpatialItemTypeDao(SpatialItemTypeDao spatialItemTypeDao)
spatialItemTypeDao
.
protected SpatialItemTypeDao getSpatialItemTypeDao()
spatialItemTypeDao
.
public void setSpatialItemAreaDao(SpatialItemAreaDao spatialItemAreaDao)
spatialItemAreaDao
.
protected SpatialItemAreaDao getSpatialItemAreaDao()
spatialItemAreaDao
.
public void setSpatialItemLineDao(SpatialItemLineDao spatialItemLineDao)
spatialItemLineDao
.
protected SpatialItemLineDao getSpatialItemLineDao()
spatialItemLineDao
.
public void setSpatialItemPointDao(SpatialItemPointDao spatialItemPointDao)
spatialItemPointDao
.
protected SpatialItemPointDao getSpatialItemPointDao()
spatialItemPointDao
.
public void setSpatialItem2LocationDao(SpatialItem2LocationDao spatialItem2LocationDao)
spatialItem2LocationDao
.
protected SpatialItem2LocationDao getSpatialItem2LocationDao()
spatialItem2LocationDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.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 SpatialItemDao
id
- identifier of the entity to load
SpatialItemDao.load(int, java.lang.Integer)
public SpatialItem load(java.lang.Integer id)
SpatialItemDao
load
in interface SpatialItemDao
SpatialItemDao.load(java.lang.Integer)
public java.util.Collection loadAll()
SpatialItemDao
SpatialItem
.
loadAll
in interface SpatialItemDao
SpatialItemDao.loadAll()
public java.util.Collection loadAll(int transform)
SpatialItemDao
Does the same thing as SpatialItemDao.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 SpatialItemDao
transform
- the flag indicating what transformation to use.
SpatialItemDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
SpatialItemDao
Does the same thing as SpatialItemDao.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 SpatialItemDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
SpatialItemDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
SpatialItemDao
Does the same thing as SpatialItemDao.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 SpatialItemDao
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.
SpatialItemDao.loadAll(int, int, int)
public SpatialItem create(SpatialItem spatialItem)
SpatialItemDao
create
in interface SpatialItemDao
SpatialItemDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem)
public java.lang.Object create(int transform, SpatialItem spatialItem)
SpatialItemDao
Does the same thing as SpatialItemDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem)
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 SpatialItemDao
SpatialItemDao.create(int transform, fr.ifremer.allegro.referential.spatial.SpatialItem)
public java.util.Collection create(java.util.Collection entities)
SpatialItemDao
entities
collection
create
in interface SpatialItemDao
entities
- the collection of fr.ifremer.allegro.referential.spatial.SpatialItem
instances to create.
SpatialItemDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
SpatialItemDao
Does the same thing as SpatialItemDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem)
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 SpatialItemDao
SpatialItemDao.create(int, java.util.Collection)
public SpatialItem create(java.lang.Integer objectId, java.sql.Timestamp updateDate, java.util.Collection spatialItemLines, java.util.Collection spatialItemAreas, java.util.Collection spatialItemPoints, SpatialItemType spatialItemType, java.util.Collection spatialItem2Locations)
SpatialItemDao
Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem
instance from all attributes and
properties and adds it to the persistent store.
create
in interface SpatialItemDao
SpatialItemDao.create(java.lang.Integer,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.spatial.SpatialItemType,java.util.Collection)
public java.lang.Object create(int transform, java.lang.Integer objectId, java.sql.Timestamp updateDate, java.util.Collection spatialItemLines, java.util.Collection spatialItemAreas, java.util.Collection spatialItemPoints, SpatialItemType spatialItemType, java.util.Collection spatialItem2Locations)
SpatialItemDao
Does the same thing as SpatialItemDao.create(java.lang.Integer,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.spatial.SpatialItemType,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 SpatialItemDao
SpatialItemDao.create(int, java.lang.Integer,java.sql.Timestamp,java.util.Collection,java.util.Collection,java.util.Collection,fr.ifremer.allegro.referential.spatial.SpatialItemType,java.util.Collection)
public SpatialItem create(java.lang.Integer objectId, SpatialItemType spatialItemType)
SpatialItemDao
Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem
instance from only required properties (attributes
and association ends) and adds it to the persistent store.
create
in interface SpatialItemDao
SpatialItemDao.create(java.lang.Integer,fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.lang.Object create(int transform, java.lang.Integer objectId, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.create(java.lang.Integer,fr.ifremer.allegro.referential.spatial.SpatialItemType)
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 SpatialItemDao
SpatialItemDao.create(int, java.lang.Integer,fr.ifremer.allegro.referential.spatial.SpatialItemType)
public void update(SpatialItem spatialItem)
SpatialItemDao
spatialItem
instance in the persistent store.
update
in interface SpatialItemDao
SpatialItemDao.update(fr.ifremer.allegro.referential.spatial.SpatialItem)
public void update(java.util.Collection entities)
SpatialItemDao
entities
collection in the persistent store.
update
in interface SpatialItemDao
SpatialItemDao.update(java.util.Collection)
public void remove(SpatialItem spatialItem)
SpatialItemDao
remove
in interface SpatialItemDao
SpatialItemDao.remove(fr.ifremer.allegro.referential.spatial.SpatialItem)
public void remove(java.lang.Integer id)
SpatialItemDao
identifier
from the persistent store.
remove
in interface SpatialItemDao
SpatialItemDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
SpatialItemDao
entities collection.
- Specified by:
remove
in interface SpatialItemDao
- See Also:
SpatialItemDao.remove(java.util.Collection)
public java.util.Collection getAllSpatialItem()
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem()
public java.util.Collection getAllSpatialItem(int transform)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem()
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.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(int)
public java.util.Collection getAllSpatialItem(java.lang.String queryString)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem()
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.getAllSpatialItem()
.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(java.lang.String)
public java.util.Collection getAllSpatialItem(int pageNumber, int pageSize)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem()
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.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(int, int)
public java.util.Collection getAllSpatialItem(java.lang.String queryString, int pageNumber, int pageSize)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem(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.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(String, int, int)
public java.util.Collection getAllSpatialItem(int transform, java.lang.String queryString)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem(int)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.getAllSpatialItem(int)
.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(int, String)
public java.util.Collection getAllSpatialItem(int transform, int pageNumber, int pageSize)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem(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.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(int, int, int)
public java.util.Collection getAllSpatialItem(int transform, java.lang.String queryString, int pageNumber, int pageSize)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItem(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.
getAllSpatialItem
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItem(int, java.lang.String, int, int)
public SpatialItem findSpatialItemById(java.lang.Integer id)
findSpatialItemById
in interface SpatialItemDao
SpatialItemDao.findSpatialItemById(java.lang.Integer)
public java.lang.Object findSpatialItemById(int transform, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemById(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.
findSpatialItemById
in interface SpatialItemDao
SpatialItemDao.findSpatialItemById(int, java.lang.Integer)
public SpatialItem findSpatialItemById(java.lang.String queryString, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemById(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.findSpatialItemById(java.lang.Integer)
.
findSpatialItemById
in interface SpatialItemDao
SpatialItemDao.findSpatialItemById(java.lang.String, java.lang.Integer)
public java.lang.Object findSpatialItemById(int transform, java.lang.String queryString, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemById(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.findSpatialItemById(int, java.lang.Integer id)
.
findSpatialItemById
in interface SpatialItemDao
SpatialItemDao.findSpatialItemById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findSpatialItemBySpatialItemType(SpatialItemType spatialItemType)
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(int transform, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType)
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.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(java.lang.String queryString, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType)
.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(int pageNumber, int pageSize, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType)
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.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(java.lang.String queryString, int pageNumber, int pageSize, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(String, fr.ifremer.allegro.referential.spatial.SpatialItemType)
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.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(String, int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(int transform, java.lang.String queryString, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType spatialItemType)
.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(int, String, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(int transform, int pageNumber, int pageSize, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
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.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(int, int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public java.util.Collection findSpatialItemBySpatialItemType(int transform, java.lang.String queryString, int pageNumber, int pageSize, SpatialItemType spatialItemType)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemBySpatialItemType(int, String, fr.ifremer.allegro.referential.spatial.SpatialItemType)
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.
findSpatialItemBySpatialItemType
in interface SpatialItemDao
SpatialItemDao.findSpatialItemBySpatialItemType(int, java.lang.String, int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)
public SpatialItem findSpatialItemByNaturalId(java.lang.Integer id)
findSpatialItemByNaturalId
in interface SpatialItemDao
SpatialItemDao.findSpatialItemByNaturalId(java.lang.Integer)
public java.lang.Object findSpatialItemByNaturalId(int transform, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemByNaturalId(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.
findSpatialItemByNaturalId
in interface SpatialItemDao
SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.Integer)
public SpatialItem findSpatialItemByNaturalId(java.lang.String queryString, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemByNaturalId(java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.findSpatialItemByNaturalId(java.lang.Integer)
.
findSpatialItemByNaturalId
in interface SpatialItemDao
SpatialItemDao.findSpatialItemByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findSpatialItemByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
SpatialItemDao
Does the same thing as SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.Integer)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.Integer id)
.
findSpatialItemByNaturalId
in interface SpatialItemDao
SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllSpatialItemSinceDateSynchro(java.sql.Timestamp updateDate)
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(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.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp)
.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(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.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(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.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.sql.Timestamp)
with an
additional argument called queryString
. This queryString
argument allows you to override the query string defined in SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.sql.Timestamp updateDate)
.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(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.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
SpatialItemDao
Does the same thing as SpatialItemDao.getAllSpatialItemSinceDateSynchro(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.
getAllSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public SpatialItem createFromClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
createFromClusterSpatialItem
in interface SpatialItemDao
SpatialItemDao.createFromClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)
protected abstract SpatialItem handleCreateFromClusterSpatialItem(ClusterSpatialItem clusterSpatialItem) throws java.lang.Exception
createFromClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)
java.lang.Exception
public ClusterSpatialItem[] getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterSpatialItemSinceDateSynchro
in interface SpatialItemDao
SpatialItemDao.getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract ClusterSpatialItem[] handleGetAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize) throws java.lang.Exception
getAllClusterSpatialItemSinceDateSynchro(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, SpatialItem entity)
transform
flag is set to one of the constants defined in fr.ifremer.allegro.referential.spatial.SpatialItemDao
, please note
that the SpatialItemDao.TRANSFORM_NONE
constant denotes no transformation, so the entity itself
will be returned.
This method will return instances of these types:
SpatialItem
- SpatialItemDao.TRANSFORM_NONE
RemoteSpatialItemFullVO
- TRANSFORM_REMOTESPATIALITEMFULLVO
RemoteSpatialItemNaturalId
- TRANSFORM_REMOTESPATIALITEMNATURALID
ClusterSpatialItem
- TRANSFORM_CLUSTERSPATIALITEM
SpatialItemDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in SpatialItemDao
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.spatial.SpatialItem)
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.spatial.SpatialItemDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.referential.spatial.SpatialItem)
protected SpatialItem toEntity(java.lang.Object[] row)
public final void toRemoteSpatialItemFullVOCollection(java.util.Collection entities)
SpatialItemDao
RemoteSpatialItemFullVO
.
toRemoteSpatialItemFullVOCollection
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemFullVOCollection(java.util.Collection)
public final RemoteSpatialItemFullVO[] toRemoteSpatialItemFullVOArray(java.util.Collection entities)
SpatialItemDao
RemoteSpatialItemFullVO
.
toRemoteSpatialItemFullVOArray
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemFullVOArray(java.util.Collection)
protected RemoteSpatialItemFullVO toRemoteSpatialItemFullVO(java.lang.Object[] row)
SpatialItemDaoImpl
class if you intend to use reporting queries.
SpatialItemDao.toRemoteSpatialItemFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem)
public final void remoteSpatialItemFullVOToEntityCollection(java.util.Collection instances)
SpatialItemDao
RemoteSpatialItemFullVO
to this
DAO's entity.
remoteSpatialItemFullVOToEntityCollection
in interface SpatialItemDao
SpatialItemDao.remoteSpatialItemFullVOToEntityCollection(java.util.Collection)
public void toRemoteSpatialItemFullVO(SpatialItem source, RemoteSpatialItemFullVO target)
SpatialItemDao
toRemoteSpatialItemFullVO
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)
public RemoteSpatialItemFullVO toRemoteSpatialItemFullVO(SpatialItem entity)
SpatialItemDao
RemoteSpatialItemFullVO
.
toRemoteSpatialItemFullVO
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem)
public void remoteSpatialItemFullVOToEntity(RemoteSpatialItemFullVO source, SpatialItem target, boolean copyIfNull)
SpatialItemDao
RemoteSpatialItemFullVO
to the specified entity.
remoteSpatialItemFullVOToEntity
in interface SpatialItemDao
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.spatial.SpatialItemDao#remoteSpatialItemFullVOToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.SpatialItem)
public final void toRemoteSpatialItemNaturalIdCollection(java.util.Collection entities)
SpatialItemDao
RemoteSpatialItemNaturalId
.
toRemoteSpatialItemNaturalIdCollection
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemNaturalIdCollection(java.util.Collection)
public final RemoteSpatialItemNaturalId[] toRemoteSpatialItemNaturalIdArray(java.util.Collection entities)
SpatialItemDao
RemoteSpatialItemNaturalId
.
toRemoteSpatialItemNaturalIdArray
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemNaturalIdArray(java.util.Collection)
protected RemoteSpatialItemNaturalId toRemoteSpatialItemNaturalId(java.lang.Object[] row)
SpatialItemDaoImpl
class if you intend to use reporting queries.
SpatialItemDao.toRemoteSpatialItemNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem)
public final void remoteSpatialItemNaturalIdToEntityCollection(java.util.Collection instances)
SpatialItemDao
RemoteSpatialItemNaturalId
to this
DAO's entity.
remoteSpatialItemNaturalIdToEntityCollection
in interface SpatialItemDao
SpatialItemDao.remoteSpatialItemNaturalIdToEntityCollection(java.util.Collection)
public void toRemoteSpatialItemNaturalId(SpatialItem source, RemoteSpatialItemNaturalId target)
SpatialItemDao
toRemoteSpatialItemNaturalId
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId)
public RemoteSpatialItemNaturalId toRemoteSpatialItemNaturalId(SpatialItem entity)
SpatialItemDao
RemoteSpatialItemNaturalId
.
toRemoteSpatialItemNaturalId
in interface SpatialItemDao
SpatialItemDao.toRemoteSpatialItemNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem)
public void remoteSpatialItemNaturalIdToEntity(RemoteSpatialItemNaturalId source, SpatialItem target, boolean copyIfNull)
SpatialItemDao
RemoteSpatialItemNaturalId
to the specified entity.
remoteSpatialItemNaturalIdToEntity
in interface SpatialItemDao
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.spatial.SpatialItemDao#remoteSpatialItemNaturalIdToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId, fr.ifremer.allegro.referential.spatial.SpatialItem)
public final void toClusterSpatialItemCollection(java.util.Collection entities)
SpatialItemDao
ClusterSpatialItem
.
toClusterSpatialItemCollection
in interface SpatialItemDao
SpatialItemDao.toClusterSpatialItemCollection(java.util.Collection)
public final ClusterSpatialItem[] toClusterSpatialItemArray(java.util.Collection entities)
SpatialItemDao
ClusterSpatialItem
.
toClusterSpatialItemArray
in interface SpatialItemDao
SpatialItemDao.toClusterSpatialItemArray(java.util.Collection)
protected ClusterSpatialItem toClusterSpatialItem(java.lang.Object[] row)
SpatialItemDaoImpl
class if you intend to use reporting queries.
SpatialItemDao.toClusterSpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem)
public final void clusterSpatialItemToEntityCollection(java.util.Collection instances)
SpatialItemDao
ClusterSpatialItem
to this
DAO's entity.
clusterSpatialItemToEntityCollection
in interface SpatialItemDao
SpatialItemDao.clusterSpatialItemToEntityCollection(java.util.Collection)
public void toClusterSpatialItem(SpatialItem source, ClusterSpatialItem target)
SpatialItemDao
toClusterSpatialItem
in interface SpatialItemDao
SpatialItemDao.toClusterSpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)
public ClusterSpatialItem toClusterSpatialItem(SpatialItem entity)
SpatialItemDao
ClusterSpatialItem
.
toClusterSpatialItem
in interface SpatialItemDao
SpatialItemDao.toClusterSpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem)
public void clusterSpatialItemToEntity(ClusterSpatialItem source, SpatialItem target, boolean copyIfNull)
SpatialItemDao
ClusterSpatialItem
to the specified entity.
clusterSpatialItemToEntity
in interface SpatialItemDao
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.spatial.SpatialItemDao#clusterSpatialItemToEntity(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem, fr.ifremer.allegro.referential.spatial.SpatialItem)
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)
SpatialItemDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface SpatialItemDao
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.SpatialItemDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
SpatialItemDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface SpatialItemDao
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.SpatialItemDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
SpatialItemDao
SpatialItemDao.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 SpatialItemDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
SpatialItemDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
SpatialItemDao
search
object.
search
in interface SpatialItemDao
search
- the search object which provides the search parameters and pagination specification.
SpatialItemDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |