fr.ifremer.allegro.referential.spatial
Class SpatialItemAreaDaoBase

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

public abstract class SpatialItemAreaDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements SpatialItemAreaDao

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

See Also:
SpatialItemArea

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.spatial.SpatialItemAreaDao
TRANSFORM_CLUSTERSPATIALITEMAREA, TRANSFORM_NONE, TRANSFORM_REMOTESPATIALITEMAREAFULLVO, TRANSFORM_REMOTESPATIALITEMAREANATURALID
 
Constructor Summary
SpatialItemAreaDaoBase()
           
 
Method Summary
 void clusterSpatialItemAreaToEntity(ClusterSpatialItemArea source, SpatialItemArea target, boolean copyIfNull)
          Copies the fields of ClusterSpatialItemArea to the specified entity.
 void clusterSpatialItemAreaToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterSpatialItemArea to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.spatial.SpatialItemArea and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as SpatialItemAreaDao.create(fr.ifremer.allegro.referential.spatial.SpatialItemArea) with an additional flag called transform.
 java.lang.Object create(int transform, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional flag called transform.
 java.lang.Object create(int transform, SpatialItemArea spatialItemArea)
           Does the same thing as SpatialItemAreaDao.create(fr.ifremer.allegro.referential.spatial.SpatialItemArea) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String localizedName, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.create(java.lang.String,fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional flag called transform.
 SpatialItemArea create(SpatialItem spatialItem)
           Creates a new fr.ifremer.allegro.referential.spatial.SpatialItemArea instance from only required properties (attributes and association ends) and adds it to the persistent store.
 SpatialItemArea create(SpatialItemArea spatialItemArea)
          Creates an instance of fr.ifremer.allegro.referential.spatial.SpatialItemArea and adds it to the persistent store.
 SpatialItemArea create(java.lang.String localizedName, SpatialItem spatialItem)
           Creates a new fr.ifremer.allegro.referential.spatial.SpatialItemArea instance from all attributes and properties and adds it to the persistent store.
 SpatialItemArea createFromClusterSpatialItemArea(ClusterSpatialItemArea clusterSpatialItemArea)
           
 SpatialItemArea findSpatialItemAreaById(java.lang.Integer id)
           
 java.lang.Object findSpatialItemAreaById(int transform, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findSpatialItemAreaById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaById(int, java.lang.Integer) with an additional argument called queryString.
 SpatialItemArea findSpatialItemAreaById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaById(java.lang.Integer) with an additional argument called queryString.
 SpatialItemArea findSpatialItemAreaByNaturalId(java.lang.Integer id)
           
 java.lang.Object findSpatialItemAreaByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findSpatialItemAreaByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 SpatialItemArea findSpatialItemAreaByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findSpatialItemAreaBySpatialItem(int transform, int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItemAreaBySpatialItem(int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItemAreaBySpatialItem(int transform, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional flag called transform.
 java.util.Collection findSpatialItemAreaBySpatialItem(int transform, java.lang.String queryString, int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, String, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItemAreaBySpatialItem(int transform, java.lang.String queryString, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional argument called queryString.
 java.util.Collection findSpatialItemAreaBySpatialItem(SpatialItem spatialItem)
           
 java.util.Collection findSpatialItemAreaBySpatialItem(java.lang.String queryString, int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(String, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItemAreaBySpatialItem(java.lang.String queryString, SpatialItem spatialItem)
           Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional argument called queryString.
 java.util.Collection getAllSpatialItemArea()
           
 java.util.Collection getAllSpatialItemArea(int transform)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea() with an additional flag called transform.
 java.util.Collection getAllSpatialItemArea(int pageNumber, int pageSize)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSpatialItemArea(int transform, int pageNumber, int pageSize)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSpatialItemArea(int transform, java.lang.String queryString)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(int) with an additional argument called queryString.
 java.util.Collection getAllSpatialItemArea(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSpatialItemArea(java.lang.String queryString)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea() with an additional argument called queryString.
 java.util.Collection getAllSpatialItemArea(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(String) with an additional two arguments called pageNumber and pageSize.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  SpatialItemDao getSpatialItemDao()
          Gets the reference to spatialItemDao.
protected abstract  SpatialItemArea handleCreateFromClusterSpatialItemArea(ClusterSpatialItemArea clusterSpatialItemArea)
          Performs the core logic for createFromClusterSpatialItemArea(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItemArea)
 SpatialItemArea load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.spatial.SpatialItemArea from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as SpatialItemAreaDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type SpatialItemArea.
 java.util.Collection loadAll(int transform)
           Does the same thing as SpatialItemAreaDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as SpatialItemAreaDao.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 SpatialItemAreaDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteSpatialItemAreaFullVOToEntity(RemoteSpatialItemAreaFullVO source, SpatialItemArea target, boolean copyIfNull)
          Copies the fields of RemoteSpatialItemAreaFullVO to the specified entity.
 void remoteSpatialItemAreaFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteSpatialItemAreaFullVO to this DAO's entity.
 void remoteSpatialItemAreaNaturalIdToEntity(RemoteSpatialItemAreaNaturalId source, SpatialItemArea target, boolean copyIfNull)
          Copies the fields of RemoteSpatialItemAreaNaturalId to the specified entity.
 void remoteSpatialItemAreaNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteSpatialItemAreaNaturalId 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.SpatialItemArea having the given identifier from the persistent store.
 void remove(SpatialItemArea spatialItemArea)
          Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItemArea 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 SpatialItemAreaDao.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 setSpatialItemDao(SpatialItemDao spatialItemDao)
          Sets the reference to spatialItemDao.
protected  ClusterSpatialItemArea toClusterSpatialItemArea(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterSpatialItemArea toClusterSpatialItemArea(SpatialItemArea entity)
          Converts this DAO's entity to an object of type ClusterSpatialItemArea.
 void toClusterSpatialItemArea(SpatialItemArea source, ClusterSpatialItemArea target)
          Copies the fields of the specified entity to the target value object.
 ClusterSpatialItemArea[] toClusterSpatialItemAreaArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterSpatialItemArea.
 void toClusterSpatialItemAreaCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterSpatialItemArea.
protected  SpatialItemArea toEntity(java.lang.Object[] row)
           
protected  RemoteSpatialItemAreaFullVO toRemoteSpatialItemAreaFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteSpatialItemAreaFullVO toRemoteSpatialItemAreaFullVO(SpatialItemArea entity)
          Converts this DAO's entity to an object of type RemoteSpatialItemAreaFullVO.
 void toRemoteSpatialItemAreaFullVO(SpatialItemArea source, RemoteSpatialItemAreaFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteSpatialItemAreaFullVO[] toRemoteSpatialItemAreaFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteSpatialItemAreaFullVO.
 void toRemoteSpatialItemAreaFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteSpatialItemAreaFullVO.
protected  RemoteSpatialItemAreaNaturalId toRemoteSpatialItemAreaNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteSpatialItemAreaNaturalId toRemoteSpatialItemAreaNaturalId(SpatialItemArea entity)
          Converts this DAO's entity to an object of type RemoteSpatialItemAreaNaturalId.
 void toRemoteSpatialItemAreaNaturalId(SpatialItemArea source, RemoteSpatialItemAreaNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteSpatialItemAreaNaturalId[] toRemoteSpatialItemAreaNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteSpatialItemAreaNaturalId.
 void toRemoteSpatialItemAreaNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteSpatialItemAreaNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.spatial.SpatialItemArea) method.
protected  java.lang.Object transformEntity(int transform, SpatialItemArea 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.SpatialItemAreaDao, please note that the SpatialItemAreaDao.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(SpatialItemArea spatialItemArea)
          Updates the spatialItemArea 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.SpatialItemAreaDao
clusterSpatialItemAreaToEntity, remoteSpatialItemAreaFullVOToEntity, remoteSpatialItemAreaNaturalIdToEntity
 

Constructor Detail

SpatialItemAreaDaoBase

public SpatialItemAreaDaoBase()
Method Detail

setSpatialItemDao

public void setSpatialItemDao(SpatialItemDao spatialItemDao)
Sets the reference to spatialItemDao.


getSpatialItemDao

protected SpatialItemDao getSpatialItemDao()
Gets the reference to spatialItemDao.


load

public java.lang.Object load(int transform,
                             java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.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 SpatialItemAreaDao
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
SpatialItemAreaDao.load(int, java.lang.Integer)

load

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

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

loadAll

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

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

loadAll

public java.util.Collection loadAll(int transform)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.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 SpatialItemAreaDao
Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.
See Also:
SpatialItemAreaDao.loadAll(int)

loadAll

public java.util.Collection loadAll(int pageNumber,
                                    int pageSize)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.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 SpatialItemAreaDao
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:
SpatialItemAreaDao.loadAll(int, int)

loadAll

public java.util.Collection loadAll(int transform,
                                    int pageNumber,
                                    int pageSize)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.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 SpatialItemAreaDao
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:
SpatialItemAreaDao.loadAll(int, int, int)

create

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

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

create

public java.lang.Object create(int transform,
                               SpatialItemArea spatialItemArea)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.create(fr.ifremer.allegro.referential.spatial.SpatialItemArea) 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 SpatialItemAreaDao
See Also:
SpatialItemAreaDao.create(int transform, fr.ifremer.allegro.referential.spatial.SpatialItemArea)

create

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

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

create

public java.util.Collection create(int transform,
                                   java.util.Collection entities)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.create(fr.ifremer.allegro.referential.spatial.SpatialItemArea) 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 SpatialItemAreaDao
See Also:
SpatialItemAreaDao.create(int, java.util.Collection)

create

public SpatialItemArea create(java.lang.String localizedName,
                              SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

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

Specified by:
create in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.create(java.lang.String,fr.ifremer.allegro.referential.spatial.SpatialItem)

create

public java.lang.Object create(int transform,
                               java.lang.String localizedName,
                               SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.create(java.lang.String,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 SpatialItemAreaDao
See Also:
SpatialItemAreaDao.create(int, java.lang.String,fr.ifremer.allegro.referential.spatial.SpatialItem)

create

public SpatialItemArea create(SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Creates a new fr.ifremer.allegro.referential.spatial.SpatialItemArea instance from only required properties (attributes and association ends) and adds it to the persistent store.

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

create

public java.lang.Object create(int transform,
                               SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.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 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 SpatialItemAreaDao
See Also:
SpatialItemAreaDao.create(int, fr.ifremer.allegro.referential.spatial.SpatialItem)

update

public void update(SpatialItemArea spatialItemArea)
Description copied from interface: SpatialItemAreaDao
Updates the spatialItemArea instance in the persistent store.

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

update

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

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

remove

public void remove(SpatialItemArea spatialItemArea)
Description copied from interface: SpatialItemAreaDao
Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItemArea from the persistent store.

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

remove

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

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

remove

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

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

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea()
Specified by:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea()

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(int transform)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea() 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:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(int)

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(java.lang.String queryString)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea() with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.getAllSpatialItemArea().

Specified by:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(java.lang.String)

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(int pageNumber,
                                                  int pageSize)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea() 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:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(int, int)

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(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:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(String, int, int)

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(int transform,
                                                  java.lang.String queryString)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(int) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.getAllSpatialItemArea(int).

Specified by:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(int, String)

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(int transform,
                                                  int pageNumber,
                                                  int pageSize)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(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:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(int, int, int)

getAllSpatialItemArea

public java.util.Collection getAllSpatialItemArea(int transform,
                                                  java.lang.String queryString,
                                                  int pageNumber,
                                                  int pageSize)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.getAllSpatialItemArea(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:
getAllSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.getAllSpatialItemArea(int, java.lang.String, int, int)

findSpatialItemAreaById

public SpatialItemArea findSpatialItemAreaById(java.lang.Integer id)
Specified by:
findSpatialItemAreaById in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaById(java.lang.Integer)

findSpatialItemAreaById

public java.lang.Object findSpatialItemAreaById(int transform,
                                                java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaById(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:
findSpatialItemAreaById in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaById(int, java.lang.Integer)

findSpatialItemAreaById

public SpatialItemArea findSpatialItemAreaById(java.lang.String queryString,
                                               java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaById(java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.findSpatialItemAreaById(java.lang.Integer).

Specified by:
findSpatialItemAreaById in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaById(java.lang.String, java.lang.Integer)

findSpatialItemAreaById

public java.lang.Object findSpatialItemAreaById(int transform,
                                                java.lang.String queryString,
                                                java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaById(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.findSpatialItemAreaById(int, java.lang.Integer id).

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

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(SpatialItem spatialItem)
Specified by:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(int transform,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) 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:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(java.lang.String queryString,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem).

Specified by:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(int pageNumber,
                                                             int pageSize,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) 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:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, int, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(String, fr.ifremer.allegro.referential.spatial.SpatialItem) 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:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(String, int, int, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(int transform,
                                                             java.lang.String queryString,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem spatialItem).

Specified by:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, String, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(int transform,
                                                             int pageNumber,
                                                             int pageSize,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem) 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:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, int, int, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaBySpatialItem

public java.util.Collection findSpatialItemAreaBySpatialItem(int transform,
                                                             java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             SpatialItem spatialItem)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, String, fr.ifremer.allegro.referential.spatial.SpatialItem) 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:
findSpatialItemAreaBySpatialItem in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaBySpatialItem(int, java.lang.String, int, int, fr.ifremer.allegro.referential.spatial.SpatialItem)

findSpatialItemAreaByNaturalId

public SpatialItemArea findSpatialItemAreaByNaturalId(java.lang.Integer id)
Specified by:
findSpatialItemAreaByNaturalId in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaByNaturalId(java.lang.Integer)

findSpatialItemAreaByNaturalId

public java.lang.Object findSpatialItemAreaByNaturalId(int transform,
                                                       java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaByNaturalId(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:
findSpatialItemAreaByNaturalId in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaByNaturalId(int, java.lang.Integer)

findSpatialItemAreaByNaturalId

public SpatialItemArea findSpatialItemAreaByNaturalId(java.lang.String queryString,
                                                      java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaByNaturalId(java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.findSpatialItemAreaByNaturalId(java.lang.Integer).

Specified by:
findSpatialItemAreaByNaturalId in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.findSpatialItemAreaByNaturalId(java.lang.String, java.lang.Integer)

findSpatialItemAreaByNaturalId

public java.lang.Object findSpatialItemAreaByNaturalId(int transform,
                                                       java.lang.String queryString,
                                                       java.lang.Integer id)
Description copied from interface: SpatialItemAreaDao

Does the same thing as SpatialItemAreaDao.findSpatialItemAreaByNaturalId(int, java.lang.Integer) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItemAreaDao.findSpatialItemAreaByNaturalId(int, java.lang.Integer id).

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

createFromClusterSpatialItemArea

public SpatialItemArea createFromClusterSpatialItemArea(ClusterSpatialItemArea clusterSpatialItemArea)
Specified by:
createFromClusterSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.createFromClusterSpatialItemArea(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItemArea)

handleCreateFromClusterSpatialItemArea

protected abstract SpatialItemArea handleCreateFromClusterSpatialItemArea(ClusterSpatialItemArea clusterSpatialItemArea)
                                                                   throws java.lang.Exception
Performs the core logic for createFromClusterSpatialItemArea(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItemArea)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           SpatialItemArea 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.SpatialItemAreaDao, please note that the SpatialItemAreaDao.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 SpatialItemAreaDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in SpatialItemAreaDao
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.SpatialItemArea) 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.SpatialItemAreaDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.spatial.SpatialItemArea)

toEntity

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

toRemoteSpatialItemAreaFullVOCollection

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

Specified by:
toRemoteSpatialItemAreaFullVOCollection in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaFullVOCollection(java.util.Collection)

toRemoteSpatialItemAreaFullVOArray

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

Specified by:
toRemoteSpatialItemAreaFullVOArray in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaFullVOArray(java.util.Collection)

toRemoteSpatialItemAreaFullVO

protected RemoteSpatialItemAreaFullVO toRemoteSpatialItemAreaFullVO(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 SpatialItemAreaDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaFullVO(fr.ifremer.allegro.referential.spatial.SpatialItemArea)

remoteSpatialItemAreaFullVOToEntityCollection

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

Specified by:
remoteSpatialItemAreaFullVOToEntityCollection in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.remoteSpatialItemAreaFullVOToEntityCollection(java.util.Collection)

toRemoteSpatialItemAreaFullVO

public void toRemoteSpatialItemAreaFullVO(SpatialItemArea source,
                                          RemoteSpatialItemAreaFullVO target)
Description copied from interface: SpatialItemAreaDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSpatialItemAreaFullVO(), 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:
toRemoteSpatialItemAreaFullVO in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaFullVO(fr.ifremer.allegro.referential.spatial.SpatialItemArea, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemAreaFullVO)

toRemoteSpatialItemAreaFullVO

public RemoteSpatialItemAreaFullVO toRemoteSpatialItemAreaFullVO(SpatialItemArea entity)
Description copied from interface: SpatialItemAreaDao
Converts this DAO's entity to an object of type RemoteSpatialItemAreaFullVO.

Specified by:
toRemoteSpatialItemAreaFullVO in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaFullVO(fr.ifremer.allegro.referential.spatial.SpatialItemArea)

remoteSpatialItemAreaFullVOToEntity

public void remoteSpatialItemAreaFullVOToEntity(RemoteSpatialItemAreaFullVO source,
                                                SpatialItemArea target,
                                                boolean copyIfNull)
Description copied from interface: SpatialItemAreaDao
Copies the fields of RemoteSpatialItemAreaFullVO to the specified entity.

Specified by:
remoteSpatialItemAreaFullVOToEntity in interface SpatialItemAreaDao
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.SpatialItemAreaDao#remoteSpatialItemAreaFullVOToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemAreaFullVO, fr.ifremer.allegro.referential.spatial.SpatialItemArea)

toRemoteSpatialItemAreaNaturalIdCollection

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

Specified by:
toRemoteSpatialItemAreaNaturalIdCollection in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaNaturalIdCollection(java.util.Collection)

toRemoteSpatialItemAreaNaturalIdArray

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

Specified by:
toRemoteSpatialItemAreaNaturalIdArray in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaNaturalIdArray(java.util.Collection)

toRemoteSpatialItemAreaNaturalId

protected RemoteSpatialItemAreaNaturalId toRemoteSpatialItemAreaNaturalId(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 SpatialItemAreaDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItemArea)

remoteSpatialItemAreaNaturalIdToEntityCollection

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

Specified by:
remoteSpatialItemAreaNaturalIdToEntityCollection in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.remoteSpatialItemAreaNaturalIdToEntityCollection(java.util.Collection)

toRemoteSpatialItemAreaNaturalId

public void toRemoteSpatialItemAreaNaturalId(SpatialItemArea source,
                                             RemoteSpatialItemAreaNaturalId target)
Description copied from interface: SpatialItemAreaDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteSpatialItemAreaNaturalId(), 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:
toRemoteSpatialItemAreaNaturalId in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItemArea, fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemAreaNaturalId)

toRemoteSpatialItemAreaNaturalId

public RemoteSpatialItemAreaNaturalId toRemoteSpatialItemAreaNaturalId(SpatialItemArea entity)
Description copied from interface: SpatialItemAreaDao
Converts this DAO's entity to an object of type RemoteSpatialItemAreaNaturalId.

Specified by:
toRemoteSpatialItemAreaNaturalId in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toRemoteSpatialItemAreaNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItemArea)

remoteSpatialItemAreaNaturalIdToEntity

public void remoteSpatialItemAreaNaturalIdToEntity(RemoteSpatialItemAreaNaturalId source,
                                                   SpatialItemArea target,
                                                   boolean copyIfNull)
Description copied from interface: SpatialItemAreaDao
Copies the fields of RemoteSpatialItemAreaNaturalId to the specified entity.

Specified by:
remoteSpatialItemAreaNaturalIdToEntity in interface SpatialItemAreaDao
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.SpatialItemAreaDao#remoteSpatialItemAreaNaturalIdToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItemAreaNaturalId, fr.ifremer.allegro.referential.spatial.SpatialItemArea)

toClusterSpatialItemAreaCollection

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

Specified by:
toClusterSpatialItemAreaCollection in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toClusterSpatialItemAreaCollection(java.util.Collection)

toClusterSpatialItemAreaArray

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

Specified by:
toClusterSpatialItemAreaArray in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toClusterSpatialItemAreaArray(java.util.Collection)

toClusterSpatialItemArea

protected ClusterSpatialItemArea toClusterSpatialItemArea(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 SpatialItemAreaDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItemAreaDao.toClusterSpatialItemArea(fr.ifremer.allegro.referential.spatial.SpatialItemArea)

clusterSpatialItemAreaToEntityCollection

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

Specified by:
clusterSpatialItemAreaToEntityCollection in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.clusterSpatialItemAreaToEntityCollection(java.util.Collection)

toClusterSpatialItemArea

public void toClusterSpatialItemArea(SpatialItemArea source,
                                     ClusterSpatialItemArea target)
Description copied from interface: SpatialItemAreaDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterSpatialItemArea(), 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:
toClusterSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toClusterSpatialItemArea(fr.ifremer.allegro.referential.spatial.SpatialItemArea, fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItemArea)

toClusterSpatialItemArea

public ClusterSpatialItemArea toClusterSpatialItemArea(SpatialItemArea entity)
Description copied from interface: SpatialItemAreaDao
Converts this DAO's entity to an object of type ClusterSpatialItemArea.

Specified by:
toClusterSpatialItemArea in interface SpatialItemAreaDao
See Also:
SpatialItemAreaDao.toClusterSpatialItemArea(fr.ifremer.allegro.referential.spatial.SpatialItemArea)

clusterSpatialItemAreaToEntity

public void clusterSpatialItemAreaToEntity(ClusterSpatialItemArea source,
                                           SpatialItemArea target,
                                           boolean copyIfNull)
Description copied from interface: SpatialItemAreaDao
Copies the fields of ClusterSpatialItemArea to the specified entity.

Specified by:
clusterSpatialItemAreaToEntity in interface SpatialItemAreaDao
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.SpatialItemAreaDao#clusterSpatialItemAreaToEntity(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItemArea, fr.ifremer.allegro.referential.spatial.SpatialItemArea)

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: SpatialItemAreaDao
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 SpatialItemAreaDao
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:
SpatialItemAreaDao.search(int, int, int, fr.ifremer.allegro.Search)

search

public PaginationResult search(int pageNumber,
                               int pageSize,
                               Search search)
Description copied from interface: SpatialItemAreaDao
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 SpatialItemAreaDao
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:
SpatialItemAreaDao.search(int, int, fr.ifremer.allegro.Search)

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.