fr.ifremer.allegro.referential.spatial
Class SpatialItemDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.spatial.SpatialItemDaoBase
All Implemented Interfaces:
SpatialItemDao
Direct Known Subclasses:
SpatialItemDaoImpl

public abstract class SpatialItemDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements SpatialItemDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.referential.spatial.SpatialItem.

See Also:
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 collection.
 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

SpatialItemDaoBase

public SpatialItemDaoBase()
Method Detail

setSpatialItemTypeDao

public void setSpatialItemTypeDao(SpatialItemTypeDao spatialItemTypeDao)
Sets the reference to spatialItemTypeDao.


getSpatialItemTypeDao

protected SpatialItemTypeDao getSpatialItemTypeDao()
Gets the reference to spatialItemTypeDao.


setSpatialItemAreaDao

public void setSpatialItemAreaDao(SpatialItemAreaDao spatialItemAreaDao)
Sets the reference to spatialItemAreaDao.


getSpatialItemAreaDao

protected SpatialItemAreaDao getSpatialItemAreaDao()
Gets the reference to spatialItemAreaDao.


setSpatialItemLineDao

public void setSpatialItemLineDao(SpatialItemLineDao spatialItemLineDao)
Sets the reference to spatialItemLineDao.


getSpatialItemLineDao

protected SpatialItemLineDao getSpatialItemLineDao()
Gets the reference to spatialItemLineDao.


setSpatialItemPointDao

public void setSpatialItemPointDao(SpatialItemPointDao spatialItemPointDao)
Sets the reference to spatialItemPointDao.


getSpatialItemPointDao

protected SpatialItemPointDao getSpatialItemPointDao()
Gets the reference to spatialItemPointDao.


setSpatialItem2LocationDao

public void setSpatialItem2LocationDao(SpatialItem2LocationDao spatialItem2LocationDao)
Sets the reference to spatialItem2LocationDao.


getSpatialItem2LocationDao

protected SpatialItem2LocationDao getSpatialItem2LocationDao()
Gets the reference to spatialItem2LocationDao.


load

public java.lang.Object load(int transform,
                             java.lang.Integer id)
Description copied from interface: 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.

Specified by:
load in interface SpatialItemDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
SpatialItemDao.load(int, java.lang.Integer)

load

public SpatialItem load(java.lang.Integer id)
Description copied from interface: SpatialItemDao
Loads an instance of fr.ifremer.allegro.referential.spatial.SpatialItem from the persistent store.

Specified by:
load in interface SpatialItemDao
See Also:
SpatialItemDao.load(java.lang.Integer)

loadAll

public java.util.Collection loadAll()
Description copied from interface: SpatialItemDao
Loads all entities of type SpatialItem.

Specified by:
loadAll in interface SpatialItemDao
Returns:
the loaded entities.
See Also:
SpatialItemDao.loadAll()

loadAll

public java.util.Collection loadAll(int transform)
Description copied from interface: 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.

Specified by:
loadAll in interface SpatialItemDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
SpatialItemDao.loadAll(int)

loadAll

public java.util.Collection loadAll(int pageNumber,
                                    int pageSize)
Description copied from interface: 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.

Specified by:
loadAll in interface SpatialItemDao
Parameters:
pageNumber - the page number to retrieve when paging results.
pageSize - the size of the page to retrieve when paging results.
Returns:
the loaded entities.
See Also:
SpatialItemDao.loadAll(int, int)

loadAll

public java.util.Collection loadAll(int transform,
                                    int pageNumber,
                                    int pageSize)
Description copied from interface: 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.

Specified by:
loadAll in interface SpatialItemDao
Parameters:
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.
Returns:
the loaded entities.
See Also:
SpatialItemDao.loadAll(int, int, int)

create

public SpatialItem create(SpatialItem spatialItem)
Description copied from interface: SpatialItemDao
Creates an instance of fr.ifremer.allegro.referential.spatial.SpatialItem and adds it to the persistent store.

Specified by:
create in interface SpatialItemDao
See Also:
SpatialItemDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem)

create

public java.lang.Object create(int transform,
                               SpatialItem spatialItem)
Description copied from interface: 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.

Specified by:
create in interface SpatialItemDao
See Also:
SpatialItemDao.create(int transform, fr.ifremer.allegro.referential.spatial.SpatialItem)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Creates a new instance of fr.ifremer.allegro.referential.spatial.SpatialItem and adds from the passed in entities collection

Specified by:
create in interface SpatialItemDao
Parameters:
entities - the collection of fr.ifremer.allegro.referential.spatial.SpatialItem instances to create.
Returns:
the created instances.
See Also:
SpatialItemDao.create(java.util.Collection)

create

public java.util.Collection create(int transform,
                                   java.util.Collection entities)
Description copied from interface: 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.

Specified by:
create in interface SpatialItemDao
See Also:
SpatialItemDao.create(int, java.util.Collection)

create

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)
Description copied from interface: SpatialItemDao

Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface SpatialItemDao
See Also:
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)

create

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)
Description copied from interface: 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.

Specified by:
create in interface SpatialItemDao
See Also:
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)

create

public SpatialItem create(java.lang.Integer objectId,
                          SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
create in interface SpatialItemDao
See Also:
SpatialItemDao.create(java.lang.Integer,fr.ifremer.allegro.referential.spatial.SpatialItemType)

create

public java.lang.Object create(int transform,
                               java.lang.Integer objectId,
                               SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
create in interface SpatialItemDao
See Also:
SpatialItemDao.create(int, java.lang.Integer,fr.ifremer.allegro.referential.spatial.SpatialItemType)

update

public void update(SpatialItem spatialItem)
Description copied from interface: SpatialItemDao
Updates the spatialItem instance in the persistent store.

Specified by:
update in interface SpatialItemDao
See Also:
SpatialItemDao.update(fr.ifremer.allegro.referential.spatial.SpatialItem)

update

public void update(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Updates all instances in the entities collection in the persistent store.

Specified by:
update in interface SpatialItemDao
See Also:
SpatialItemDao.update(java.util.Collection)

remove

public void remove(SpatialItem spatialItem)
Description copied from interface: SpatialItemDao
Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem from the persistent store.

Specified by:
remove in interface SpatialItemDao
See Also:
SpatialItemDao.remove(fr.ifremer.allegro.referential.spatial.SpatialItem)

remove

public void remove(java.lang.Integer id)
Description copied from interface: SpatialItemDao
Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem having the given identifier from the persistent store.

Specified by:
remove in interface SpatialItemDao
See Also:
SpatialItemDao.remove(java.lang.Integer)

remove

public void remove(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Removes all entities in the given entities collection.

Specified by:
remove in interface SpatialItemDao
See Also:
SpatialItemDao.remove(java.util.Collection)

getAllSpatialItem

public java.util.Collection getAllSpatialItem()
Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem()

getAllSpatialItem

public java.util.Collection getAllSpatialItem(int transform)
Description copied from interface: 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.

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(int)

getAllSpatialItem

public java.util.Collection getAllSpatialItem(java.lang.String queryString)
Description copied from interface: 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().

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(java.lang.String)

getAllSpatialItem

public java.util.Collection getAllSpatialItem(int pageNumber,
                                              int pageSize)
Description copied from interface: 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.

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(int, int)

getAllSpatialItem

public java.util.Collection getAllSpatialItem(java.lang.String queryString,
                                              int pageNumber,
                                              int pageSize)
Description copied from interface: 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.

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(String, int, int)

getAllSpatialItem

public java.util.Collection getAllSpatialItem(int transform,
                                              java.lang.String queryString)
Description copied from interface: 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).

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(int, String)

getAllSpatialItem

public java.util.Collection getAllSpatialItem(int transform,
                                              int pageNumber,
                                              int pageSize)
Description copied from interface: 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.

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(int, int, int)

getAllSpatialItem

public java.util.Collection getAllSpatialItem(int transform,
                                              java.lang.String queryString,
                                              int pageNumber,
                                              int pageSize)
Description copied from interface: 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.

Specified by:
getAllSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItem(int, java.lang.String, int, int)

findSpatialItemById

public SpatialItem findSpatialItemById(java.lang.Integer id)
Specified by:
findSpatialItemById in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemById(java.lang.Integer)

findSpatialItemById

public java.lang.Object findSpatialItemById(int transform,
                                            java.lang.Integer id)
Description copied from interface: 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.

Specified by:
findSpatialItemById in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemById(int, java.lang.Integer)

findSpatialItemById

public SpatialItem findSpatialItemById(java.lang.String queryString,
                                       java.lang.Integer id)
Description copied from interface: 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).

Specified by:
findSpatialItemById in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemById(java.lang.String, java.lang.Integer)

findSpatialItemById

public java.lang.Object findSpatialItemById(int transform,
                                            java.lang.String queryString,
                                            java.lang.Integer id)
Description copied from interface: 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).

Specified by:
findSpatialItemById in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemById(int, java.lang.String, java.lang.Integer)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(SpatialItemType spatialItemType)
Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(int transform,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(int, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(java.lang.String queryString,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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).

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(int pageNumber,
                                                             int pageSize,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(String, int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(int transform,
                                                             java.lang.String queryString,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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).

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(int, String, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(int transform,
                                                             int pageNumber,
                                                             int pageSize,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(int, int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemBySpatialItemType

public java.util.Collection findSpatialItemBySpatialItemType(int transform,
                                                             java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             SpatialItemType spatialItemType)
Description copied from interface: 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.

Specified by:
findSpatialItemBySpatialItemType in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemBySpatialItemType(int, java.lang.String, int, int, fr.ifremer.allegro.referential.spatial.SpatialItemType)

findSpatialItemByNaturalId

public SpatialItem findSpatialItemByNaturalId(java.lang.Integer id)
Specified by:
findSpatialItemByNaturalId in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemByNaturalId(java.lang.Integer)

findSpatialItemByNaturalId

public java.lang.Object findSpatialItemByNaturalId(int transform,
                                                   java.lang.Integer id)
Description copied from interface: 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.

Specified by:
findSpatialItemByNaturalId in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.Integer)

findSpatialItemByNaturalId

public SpatialItem findSpatialItemByNaturalId(java.lang.String queryString,
                                              java.lang.Integer id)
Description copied from interface: 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).

Specified by:
findSpatialItemByNaturalId in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemByNaturalId(java.lang.String, java.lang.Integer)

findSpatialItemByNaturalId

public java.lang.Object findSpatialItemByNaturalId(int transform,
                                                   java.lang.String queryString,
                                                   java.lang.Integer id)
Description copied from interface: 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).

Specified by:
findSpatialItemByNaturalId in interface SpatialItemDao
See Also:
SpatialItemDao.findSpatialItemByNaturalId(int, java.lang.String, java.lang.Integer)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(java.sql.Timestamp updateDate)
Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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.

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(java.lang.String queryString,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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).

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(java.lang.String, java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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.

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, int, java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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.

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform,
                                                              java.lang.String queryString,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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).

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, String, java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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.

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllSpatialItemSinceDateSynchro

public java.util.Collection getAllSpatialItemSinceDateSynchro(int transform,
                                                              java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.sql.Timestamp updateDate)
Description copied from interface: 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.

Specified by:
getAllSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllSpatialItemSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterSpatialItem

public SpatialItem createFromClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
Specified by:
createFromClusterSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.createFromClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)

handleCreateFromClusterSpatialItem

protected abstract SpatialItem handleCreateFromClusterSpatialItem(ClusterSpatialItem clusterSpatialItem)
                                                           throws java.lang.Exception
Performs the core logic for createFromClusterSpatialItem(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)

Throws:
java.lang.Exception

getAllClusterSpatialItemSinceDateSynchro

public ClusterSpatialItem[] getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                     java.lang.Integer userId,
                                                                     java.lang.Integer[] registrationLocationIds,
                                                                     java.lang.Integer pageNumber,
                                                                     java.lang.Integer pageSize)
Specified by:
getAllClusterSpatialItemSinceDateSynchro in interface SpatialItemDao
See Also:
SpatialItemDao.getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterSpatialItemSinceDateSynchro

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
Performs the core logic for getAllClusterSpatialItemSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

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.

This method will return instances of these types:

If the integer argument value is unknown SpatialItemDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in SpatialItemDao
entity - an entity that was found
Returns:
the transformed entity (i.e. new value object, etc)
See Also:
transformEntities(int,java.util.Collection)

transformEntities

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. This method does not instantiate a new collection.

This method is to be used internally only.

Parameters:
transform - one of the constants declared in fr.ifremer.allegro.referential.spatial.SpatialItemDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.spatial.SpatialItem)

toEntity

protected SpatialItem toEntity(java.lang.Object[] row)

toRemoteSpatialItemFullVOCollection

public final void toRemoteSpatialItemFullVOCollection(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to a Collection of instances of type RemoteSpatialItemFullVO.

Specified by:
toRemoteSpatialItemFullVOCollection in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemFullVOCollection(java.util.Collection)

toRemoteSpatialItemFullVOArray

public final RemoteSpatialItemFullVO[] toRemoteSpatialItemFullVOArray(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to an array of instances of type RemoteSpatialItemFullVO.

Specified by:
toRemoteSpatialItemFullVOArray in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemFullVOArray(java.util.Collection)

toRemoteSpatialItemFullVO

protected RemoteSpatialItemFullVO toRemoteSpatialItemFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the SpatialItemDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItemDao.toRemoteSpatialItemFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem)

remoteSpatialItemFullVOToEntityCollection

public final void remoteSpatialItemFullVOToEntityCollection(java.util.Collection instances)
Description copied from interface: SpatialItemDao
Converts a Collection of instances of type RemoteSpatialItemFullVO to this DAO's entity.

Specified by:
remoteSpatialItemFullVOToEntityCollection in interface SpatialItemDao
See Also:
SpatialItemDao.remoteSpatialItemFullVOToEntityCollection(java.util.Collection)

toRemoteSpatialItemFullVO

public void toRemoteSpatialItemFullVO(SpatialItem source,
                                      RemoteSpatialItemFullVO target)
Description copied from interface: SpatialItemDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSpatialItemFullVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toRemoteSpatialItemFullVO in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO)

toRemoteSpatialItemFullVO

public RemoteSpatialItemFullVO toRemoteSpatialItemFullVO(SpatialItem entity)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to an object of type RemoteSpatialItemFullVO.

Specified by:
toRemoteSpatialItemFullVO in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem)

remoteSpatialItemFullVOToEntity

public void remoteSpatialItemFullVOToEntity(RemoteSpatialItemFullVO source,
                                            SpatialItem target,
                                            boolean copyIfNull)
Description copied from interface: SpatialItemDao
Copies the fields of RemoteSpatialItemFullVO to the specified entity.

Specified by:
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.
See Also:
fr.ifremer.allegro.referential.spatial.SpatialItemDao#remoteSpatialItemFullVOToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemFullVO, fr.ifremer.allegro.referential.spatial.SpatialItem)

toRemoteSpatialItemNaturalIdCollection

public final void toRemoteSpatialItemNaturalIdCollection(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to a Collection of instances of type RemoteSpatialItemNaturalId.

Specified by:
toRemoteSpatialItemNaturalIdCollection in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemNaturalIdCollection(java.util.Collection)

toRemoteSpatialItemNaturalIdArray

public final RemoteSpatialItemNaturalId[] toRemoteSpatialItemNaturalIdArray(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to an array of instances of type RemoteSpatialItemNaturalId.

Specified by:
toRemoteSpatialItemNaturalIdArray in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemNaturalIdArray(java.util.Collection)

toRemoteSpatialItemNaturalId

protected RemoteSpatialItemNaturalId toRemoteSpatialItemNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the SpatialItemDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItemDao.toRemoteSpatialItemNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem)

remoteSpatialItemNaturalIdToEntityCollection

public final void remoteSpatialItemNaturalIdToEntityCollection(java.util.Collection instances)
Description copied from interface: SpatialItemDao
Converts a Collection of instances of type RemoteSpatialItemNaturalId to this DAO's entity.

Specified by:
remoteSpatialItemNaturalIdToEntityCollection in interface SpatialItemDao
See Also:
SpatialItemDao.remoteSpatialItemNaturalIdToEntityCollection(java.util.Collection)

toRemoteSpatialItemNaturalId

public void toRemoteSpatialItemNaturalId(SpatialItem source,
                                         RemoteSpatialItemNaturalId target)
Description copied from interface: SpatialItemDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSpatialItemNaturalId(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toRemoteSpatialItemNaturalId in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId)

toRemoteSpatialItemNaturalId

public RemoteSpatialItemNaturalId toRemoteSpatialItemNaturalId(SpatialItem entity)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to an object of type RemoteSpatialItemNaturalId.

Specified by:
toRemoteSpatialItemNaturalId in interface SpatialItemDao
See Also:
SpatialItemDao.toRemoteSpatialItemNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem)

remoteSpatialItemNaturalIdToEntity

public void remoteSpatialItemNaturalIdToEntity(RemoteSpatialItemNaturalId source,
                                               SpatialItem target,
                                               boolean copyIfNull)
Description copied from interface: SpatialItemDao
Copies the fields of RemoteSpatialItemNaturalId to the specified entity.

Specified by:
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.
See Also:
fr.ifremer.allegro.referential.spatial.SpatialItemDao#remoteSpatialItemNaturalIdToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemNaturalId, fr.ifremer.allegro.referential.spatial.SpatialItem)

toClusterSpatialItemCollection

public final void toClusterSpatialItemCollection(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to a Collection of instances of type ClusterSpatialItem.

Specified by:
toClusterSpatialItemCollection in interface SpatialItemDao
See Also:
SpatialItemDao.toClusterSpatialItemCollection(java.util.Collection)

toClusterSpatialItemArray

public final ClusterSpatialItem[] toClusterSpatialItemArray(java.util.Collection entities)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to an array of instances of type ClusterSpatialItem.

Specified by:
toClusterSpatialItemArray in interface SpatialItemDao
See Also:
SpatialItemDao.toClusterSpatialItemArray(java.util.Collection)

toClusterSpatialItem

protected ClusterSpatialItem toClusterSpatialItem(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the SpatialItemDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItemDao.toClusterSpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem)

clusterSpatialItemToEntityCollection

public final void clusterSpatialItemToEntityCollection(java.util.Collection instances)
Description copied from interface: SpatialItemDao
Converts a Collection of instances of type ClusterSpatialItem to this DAO's entity.

Specified by:
clusterSpatialItemToEntityCollection in interface SpatialItemDao
See Also:
SpatialItemDao.clusterSpatialItemToEntityCollection(java.util.Collection)

toClusterSpatialItem

public void toClusterSpatialItem(SpatialItem source,
                                 ClusterSpatialItem target)
Description copied from interface: SpatialItemDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterSpatialItem(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toClusterSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.toClusterSpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem)

toClusterSpatialItem

public ClusterSpatialItem toClusterSpatialItem(SpatialItem entity)
Description copied from interface: SpatialItemDao
Converts this DAO's entity to an object of type ClusterSpatialItem.

Specified by:
toClusterSpatialItem in interface SpatialItemDao
See Also:
SpatialItemDao.toClusterSpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem)

clusterSpatialItemToEntity

public void clusterSpatialItemToEntity(ClusterSpatialItem source,
                                       SpatialItem target,
                                       boolean copyIfNull)
Description copied from interface: SpatialItemDao
Copies the fields of ClusterSpatialItem to the specified entity.

Specified by:
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.
See Also:
fr.ifremer.allegro.referential.spatial.SpatialItemDao#clusterSpatialItemToEntity(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem, fr.ifremer.allegro.referential.spatial.SpatialItem)

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

search

public PaginationResult search(int transform,
                               int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: SpatialItemDao
Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface SpatialItemDao
Parameters:
transform - the transformation flag.
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
SpatialItemDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: SpatialItemDao
Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize. These flags allow you to limit your data to a specified page number and size.

Specified by:
search in interface SpatialItemDao
Parameters:
pageNumber - the page number in the data to retrieve
pageSize - the size of the page to retrieve.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search wrapped in a PaginationResult instance.
See Also:
SpatialItemDao.search(int, int, fr.ifremer.allegro.Search)

search

public java.util.Set search(int transform,
                            Search search)
Description copied from interface: SpatialItemDao
Does the same thing as 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.

Specified by:
search in interface SpatialItemDao
Parameters:
transform - the transformation flag.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
SpatialItemDao.search(int, fr.ifremer.allegro.Search)

search

public java.util.Set search(Search search)
Description copied from interface: SpatialItemDao
Performs a search using the parameters specified in the given search object.

Specified by:
search in interface SpatialItemDao
Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.
See Also:
SpatialItemDao.search(fr.ifremer.allegro.Search)


Copyright © 2008-2010 IFREMER. All Rights Reserved.