fr.ifremer.allegro.referential.spatial
Class SpatialItem2LocationDaoBase

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

public abstract class SpatialItem2LocationDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements SpatialItem2LocationDao

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

See Also:
SpatialItem2Location

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.spatial.SpatialItem2LocationDao
TRANSFORM_CLUSTERSPATIALITEM2LOCATION, TRANSFORM_NONE, TRANSFORM_REMOTESPATIALITEM2LOCATIONFULLVO, TRANSFORM_REMOTESPATIALITEM2LOCATIONNATURALID
 
Constructor Summary
SpatialItem2LocationDaoBase()
           
 
Method Summary
 void clusterSpatialItem2LocationToEntity(ClusterSpatialItem2Location source, SpatialItem2Location target, boolean copyIfNull)
          Copies the fields of ClusterSpatialItem2Location to the specified entity.
 void clusterSpatialItem2LocationToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterSpatialItem2Location to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as SpatialItem2LocationDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem2Location) with an additional flag called transform.
 java.lang.Object create(int transform, Location location, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.create(fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional flag called transform.
 java.lang.Object create(int transform, SpatialItem2Location spatialItem2Location)
           Does the same thing as SpatialItem2LocationDao.create(fr.ifremer.allegro.referential.spatial.SpatialItem2Location) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String localizedName, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.create(java.lang.String,fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 SpatialItem2Location create(Location location, SpatialItem spatialItem)
           Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem2Location instance from only required properties (attributes and association ends) and adds it to the persistent store.
 SpatialItem2Location create(SpatialItem2Location spatialItem2Location)
          Creates an instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location and adds it to the persistent store.
 SpatialItem2Location create(java.lang.String localizedName, SpatialItem spatialItem, Location location)
           Creates a new fr.ifremer.allegro.referential.spatial.SpatialItem2Location instance from all attributes and properties and adds it to the persistent store.
 SpatialItem2Location createFromClusterSpatialItem2Location(ClusterSpatialItem2Location clusterSpatialItem2Location)
           
 java.lang.Object findSpatialItem2LocationByIdentifiers(int transform, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object findSpatialItem2LocationByIdentifiers(int transform, java.lang.String queryString, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(int, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 SpatialItem2Location findSpatialItem2LocationByIdentifiers(SpatialItem spatialItem, Location location)
           
 SpatialItem2Location findSpatialItem2LocationByIdentifiers(java.lang.String queryString, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findSpatialItem2LocationByLocation(int transform, int pageNumber, int pageSize, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationByLocation(int pageNumber, int pageSize, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationByLocation(int transform, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findSpatialItem2LocationByLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationByLocation(int transform, java.lang.String queryString, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findSpatialItem2LocationByLocation(Location location)
           
 java.util.Collection findSpatialItem2LocationByLocation(java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationByLocation(java.lang.String queryString, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.lang.Object findSpatialItem2LocationByNaturalId(int transform, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object findSpatialItem2LocationByNaturalId(int transform, java.lang.String queryString, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(int, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 SpatialItem2Location findSpatialItem2LocationByNaturalId(SpatialItem spatialItem, Location location)
           
 SpatialItem2Location findSpatialItem2LocationByNaturalId(java.lang.String queryString, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findSpatialItem2LocationBySpatialItem(int transform, int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationBySpatialItem(int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationBySpatialItem(int transform, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional flag called transform.
 java.util.Collection findSpatialItem2LocationBySpatialItem(int transform, java.lang.String queryString, int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(int, String, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationBySpatialItem(int transform, java.lang.String queryString, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional argument called queryString.
 java.util.Collection findSpatialItem2LocationBySpatialItem(SpatialItem spatialItem)
           
 java.util.Collection findSpatialItem2LocationBySpatialItem(java.lang.String queryString, int pageNumber, int pageSize, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(String, fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findSpatialItem2LocationBySpatialItem(java.lang.String queryString, SpatialItem spatialItem)
           Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(fr.ifremer.allegro.referential.spatial.SpatialItem) with an additional argument called queryString.
 java.util.Collection getAllSpatialItem2Location()
           
 java.util.Collection getAllSpatialItem2Location(int transform)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location() with an additional flag called transform.
 java.util.Collection getAllSpatialItem2Location(int pageNumber, int pageSize)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSpatialItem2Location(int transform, int pageNumber, int pageSize)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSpatialItem2Location(int transform, java.lang.String queryString)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location(int) with an additional argument called queryString.
 java.util.Collection getAllSpatialItem2Location(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllSpatialItem2Location(java.lang.String queryString)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location() with an additional argument called queryString.
 java.util.Collection getAllSpatialItem2Location(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as SpatialItem2LocationDao.getAllSpatialItem2Location(String) with an additional two arguments called pageNumber and pageSize.
protected  LocationDao getLocationDao()
          Gets the reference to locationDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  SpatialItemDao getSpatialItemDao()
          Gets the reference to spatialItemDao.
protected abstract  SpatialItem2Location handleCreateFromClusterSpatialItem2Location(ClusterSpatialItem2Location clusterSpatialItem2Location)
          Performs the core logic for createFromClusterSpatialItem2Location(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem2Location)
 java.lang.Object load(int transform, SpatialItem spatialItem, Location location)
           Does the same thing as SpatialItem2LocationDao.load(fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 SpatialItem2Location load(SpatialItem spatialItem, Location location)
          Loads an instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type SpatialItem2Location.
 java.util.Collection loadAll(int transform)
           Does the same thing as SpatialItem2LocationDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as SpatialItem2LocationDao.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 SpatialItem2LocationDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteSpatialItem2LocationFullVOToEntity(RemoteSpatialItem2LocationFullVO source, SpatialItem2Location target, boolean copyIfNull)
          Copies the fields of RemoteSpatialItem2LocationFullVO to the specified entity.
 void remoteSpatialItem2LocationFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteSpatialItem2LocationFullVO to this DAO's entity.
 void remoteSpatialItem2LocationNaturalIdToEntity(RemoteSpatialItem2LocationNaturalId source, SpatialItem2Location target, boolean copyIfNull)
          Copies the fields of RemoteSpatialItem2LocationNaturalId to the specified entity.
 void remoteSpatialItem2LocationNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteSpatialItem2LocationNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(SpatialItem2Location spatialItem2Location)
          Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location from the persistent store.
 void remove(SpatialItem spatialItem, Location location)
          Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location having the given identifiers 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 SpatialItem2LocationDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setLocationDao(LocationDao locationDao)
          Sets the reference to locationDao.
 void setSpatialItemDao(SpatialItemDao spatialItemDao)
          Sets the reference to spatialItemDao.
protected  ClusterSpatialItem2Location toClusterSpatialItem2Location(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterSpatialItem2Location toClusterSpatialItem2Location(SpatialItem2Location entity)
          Converts this DAO's entity to an object of type ClusterSpatialItem2Location.
 void toClusterSpatialItem2Location(SpatialItem2Location source, ClusterSpatialItem2Location target)
          Copies the fields of the specified entity to the target value object.
 ClusterSpatialItem2Location[] toClusterSpatialItem2LocationArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterSpatialItem2Location.
 void toClusterSpatialItem2LocationCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterSpatialItem2Location.
protected  SpatialItem2Location toEntity(java.lang.Object[] row)
           
protected  RemoteSpatialItem2LocationFullVO toRemoteSpatialItem2LocationFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteSpatialItem2LocationFullVO toRemoteSpatialItem2LocationFullVO(SpatialItem2Location entity)
          Converts this DAO's entity to an object of type RemoteSpatialItem2LocationFullVO.
 void toRemoteSpatialItem2LocationFullVO(SpatialItem2Location source, RemoteSpatialItem2LocationFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteSpatialItem2LocationFullVO[] toRemoteSpatialItem2LocationFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteSpatialItem2LocationFullVO.
 void toRemoteSpatialItem2LocationFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteSpatialItem2LocationFullVO.
protected  RemoteSpatialItem2LocationNaturalId toRemoteSpatialItem2LocationNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteSpatialItem2LocationNaturalId toRemoteSpatialItem2LocationNaturalId(SpatialItem2Location entity)
          Converts this DAO's entity to an object of type RemoteSpatialItem2LocationNaturalId.
 void toRemoteSpatialItem2LocationNaturalId(SpatialItem2Location source, RemoteSpatialItem2LocationNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteSpatialItem2LocationNaturalId[] toRemoteSpatialItem2LocationNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteSpatialItem2LocationNaturalId.
 void toRemoteSpatialItem2LocationNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteSpatialItem2LocationNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.spatial.SpatialItem2Location) method.
protected  java.lang.Object transformEntity(int transform, SpatialItem2Location 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.SpatialItem2LocationDao, please note that the SpatialItem2LocationDao.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(SpatialItem2Location spatialItem2Location)
          Updates the spatialItem2Location 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.SpatialItem2LocationDao
clusterSpatialItem2LocationToEntity, remoteSpatialItem2LocationFullVOToEntity, remoteSpatialItem2LocationNaturalIdToEntity
 

Constructor Detail

SpatialItem2LocationDaoBase

public SpatialItem2LocationDaoBase()
Method Detail

setSpatialItemDao

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


getSpatialItemDao

protected SpatialItemDao getSpatialItemDao()
Gets the reference to spatialItemDao.


setLocationDao

public void setLocationDao(LocationDao locationDao)
Sets the reference to locationDao.


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to locationDao.


load

public java.lang.Object load(int transform,
                             SpatialItem spatialItem,
                             Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.load(fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined 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 SpatialItem2LocationDao
spatialItem - identifier of the entity to load
location - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
SpatialItem2LocationDao.load(int, fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location)

load

public SpatialItem2Location load(SpatialItem spatialItem,
                                 Location location)
Description copied from interface: SpatialItem2LocationDao
Loads an instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location from the persistent store.

Specified by:
load in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.load(fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location)

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               SpatialItem2Location spatialItem2Location)
Description copied from interface: SpatialItem2LocationDao

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

create

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

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

create

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

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

create

public SpatialItem2Location create(java.lang.String localizedName,
                                   SpatialItem spatialItem,
                                   Location location)
Description copied from interface: SpatialItem2LocationDao

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

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

create

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

Does the same thing as SpatialItem2LocationDao.create(java.lang.String,fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

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

create

public SpatialItem2Location create(Location location,
                                   SpatialItem spatialItem)
Description copied from interface: SpatialItem2LocationDao

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

Specified by:
create in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.create(fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.spatial.SpatialItem)

create

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

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

update

public void update(SpatialItem2Location spatialItem2Location)
Description copied from interface: SpatialItem2LocationDao
Updates the spatialItem2Location instance in the persistent store.

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

update

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

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

remove

public void remove(SpatialItem2Location spatialItem2Location)
Description copied from interface: SpatialItem2LocationDao
Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location from the persistent store.

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

remove

public void remove(SpatialItem spatialItem,
                   Location location)
Description copied from interface: SpatialItem2LocationDao
Removes the instance of fr.ifremer.allegro.referential.spatial.SpatialItem2Location having the given identifiers from the persistent store.

Specified by:
remove in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.remove(fr.ifremer.allegro.referential.spatial.SpatialItem,fr.ifremer.allegro.referential.location.Location)

remove

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

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

getAllSpatialItem2Location

public java.util.Collection getAllSpatialItem2Location()
Specified by:
getAllSpatialItem2Location in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.getAllSpatialItem2Location()

getAllSpatialItem2Location

public java.util.Collection getAllSpatialItem2Location(int transform)
Description copied from interface: SpatialItem2LocationDao

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

getAllSpatialItem2Location

public java.util.Collection getAllSpatialItem2Location(java.lang.String queryString)
Description copied from interface: SpatialItem2LocationDao

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

Specified by:
getAllSpatialItem2Location in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.getAllSpatialItem2Location(java.lang.String)

getAllSpatialItem2Location

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

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

getAllSpatialItem2Location

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

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

getAllSpatialItem2Location

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

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

Specified by:
getAllSpatialItem2Location in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.getAllSpatialItem2Location(int, String)

getAllSpatialItem2Location

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

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

getAllSpatialItem2Location

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

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

findSpatialItem2LocationBySpatialItem

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

findSpatialItem2LocationBySpatialItem

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

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

findSpatialItem2LocationBySpatialItem

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

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

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

findSpatialItem2LocationBySpatialItem

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

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

findSpatialItem2LocationBySpatialItem

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

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

findSpatialItem2LocationBySpatialItem

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

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(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 SpatialItem2LocationDao.findSpatialItem2LocationBySpatialItem(int, fr.ifremer.allegro.referential.spatial.SpatialItem spatialItem).

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

findSpatialItem2LocationBySpatialItem

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

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

findSpatialItem2LocationBySpatialItem

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

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

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(Location location)
Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(int transform,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(java.lang.String queryString,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location).

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(java.lang.String, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(int pageNumber,
                                                               int pageSize,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, int, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(java.lang.String queryString,
                                                               int pageNumber,
                                                               int pageSize,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(String, int, int, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(int transform,
                                                               java.lang.String queryString,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString. This queryString argument allows you to override the query string defined in SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, fr.ifremer.allegro.referential.location.Location location).

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, String, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(int transform,
                                                               int pageNumber,
                                                               int pageSize,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, int, int, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByLocation

public java.util.Collection findSpatialItem2LocationByLocation(int transform,
                                                               java.lang.String queryString,
                                                               int pageNumber,
                                                               int pageSize,
                                                               Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findSpatialItem2LocationByLocation in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByLocation(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByIdentifiers

public SpatialItem2Location findSpatialItem2LocationByIdentifiers(SpatialItem spatialItem,
                                                                  Location location)
Specified by:
findSpatialItem2LocationByIdentifiers in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByIdentifiers

public java.lang.Object findSpatialItem2LocationByIdentifiers(int transform,
                                                              SpatialItem spatialItem,
                                                              Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findSpatialItem2LocationByIdentifiers in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(int, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByIdentifiers

public SpatialItem2Location findSpatialItem2LocationByIdentifiers(java.lang.String queryString,
                                                                  SpatialItem spatialItem,
                                                                  Location location)
Description copied from interface: SpatialItem2LocationDao

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

Specified by:
findSpatialItem2LocationByIdentifiers in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByIdentifiers

public java.lang.Object findSpatialItem2LocationByIdentifiers(int transform,
                                                              java.lang.String queryString,
                                                              SpatialItem spatialItem,
                                                              Location location)
Description copied from interface: SpatialItem2LocationDao

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

Specified by:
findSpatialItem2LocationByIdentifiers in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByIdentifiers(int, java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByNaturalId

public SpatialItem2Location findSpatialItem2LocationByNaturalId(SpatialItem spatialItem,
                                                                Location location)
Specified by:
findSpatialItem2LocationByNaturalId in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByNaturalId

public java.lang.Object findSpatialItem2LocationByNaturalId(int transform,
                                                            SpatialItem spatialItem,
                                                            Location location)
Description copied from interface: SpatialItem2LocationDao

Does the same thing as SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findSpatialItem2LocationByNaturalId in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(int, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByNaturalId

public SpatialItem2Location findSpatialItem2LocationByNaturalId(java.lang.String queryString,
                                                                SpatialItem spatialItem,
                                                                Location location)
Description copied from interface: SpatialItem2LocationDao

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

Specified by:
findSpatialItem2LocationByNaturalId in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

findSpatialItem2LocationByNaturalId

public java.lang.Object findSpatialItem2LocationByNaturalId(int transform,
                                                            java.lang.String queryString,
                                                            SpatialItem spatialItem,
                                                            Location location)
Description copied from interface: SpatialItem2LocationDao

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

Specified by:
findSpatialItem2LocationByNaturalId in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.findSpatialItem2LocationByNaturalId(int, java.lang.String, fr.ifremer.allegro.referential.spatial.SpatialItem, fr.ifremer.allegro.referential.location.Location)

createFromClusterSpatialItem2Location

public SpatialItem2Location createFromClusterSpatialItem2Location(ClusterSpatialItem2Location clusterSpatialItem2Location)
Specified by:
createFromClusterSpatialItem2Location in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.createFromClusterSpatialItem2Location(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem2Location)

handleCreateFromClusterSpatialItem2Location

protected abstract SpatialItem2Location handleCreateFromClusterSpatialItem2Location(ClusterSpatialItem2Location clusterSpatialItem2Location)
                                                                             throws java.lang.Exception
Performs the core logic for createFromClusterSpatialItem2Location(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem2Location)

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteSpatialItem2LocationFullVOCollection

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

Specified by:
toRemoteSpatialItem2LocationFullVOCollection in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationFullVOCollection(java.util.Collection)

toRemoteSpatialItem2LocationFullVOArray

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

Specified by:
toRemoteSpatialItem2LocationFullVOArray in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationFullVOArray(java.util.Collection)

toRemoteSpatialItem2LocationFullVO

protected RemoteSpatialItem2LocationFullVO toRemoteSpatialItem2LocationFullVO(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 SpatialItem2LocationDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

remoteSpatialItem2LocationFullVOToEntityCollection

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

Specified by:
remoteSpatialItem2LocationFullVOToEntityCollection in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.remoteSpatialItem2LocationFullVOToEntityCollection(java.util.Collection)

toRemoteSpatialItem2LocationFullVO

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

toRemoteSpatialItem2LocationFullVO

public RemoteSpatialItem2LocationFullVO toRemoteSpatialItem2LocationFullVO(SpatialItem2Location entity)
Description copied from interface: SpatialItem2LocationDao
Converts this DAO's entity to an object of type RemoteSpatialItem2LocationFullVO.

Specified by:
toRemoteSpatialItem2LocationFullVO in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationFullVO(fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

remoteSpatialItem2LocationFullVOToEntity

public void remoteSpatialItem2LocationFullVOToEntity(RemoteSpatialItem2LocationFullVO source,
                                                     SpatialItem2Location target,
                                                     boolean copyIfNull)
Description copied from interface: SpatialItem2LocationDao
Copies the fields of RemoteSpatialItem2LocationFullVO to the specified entity.

Specified by:
remoteSpatialItem2LocationFullVOToEntity in interface SpatialItem2LocationDao
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.SpatialItem2LocationDao#remoteSpatialItem2LocationFullVOToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItem2LocationFullVO, fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

toRemoteSpatialItem2LocationNaturalIdCollection

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

Specified by:
toRemoteSpatialItem2LocationNaturalIdCollection in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationNaturalIdCollection(java.util.Collection)

toRemoteSpatialItem2LocationNaturalIdArray

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

Specified by:
toRemoteSpatialItem2LocationNaturalIdArray in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationNaturalIdArray(java.util.Collection)

toRemoteSpatialItem2LocationNaturalId

protected RemoteSpatialItem2LocationNaturalId toRemoteSpatialItem2LocationNaturalId(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 SpatialItem2LocationDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

remoteSpatialItem2LocationNaturalIdToEntityCollection

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

Specified by:
remoteSpatialItem2LocationNaturalIdToEntityCollection in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.remoteSpatialItem2LocationNaturalIdToEntityCollection(java.util.Collection)

toRemoteSpatialItem2LocationNaturalId

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

toRemoteSpatialItem2LocationNaturalId

public RemoteSpatialItem2LocationNaturalId toRemoteSpatialItem2LocationNaturalId(SpatialItem2Location entity)
Description copied from interface: SpatialItem2LocationDao
Converts this DAO's entity to an object of type RemoteSpatialItem2LocationNaturalId.

Specified by:
toRemoteSpatialItem2LocationNaturalId in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toRemoteSpatialItem2LocationNaturalId(fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

remoteSpatialItem2LocationNaturalIdToEntity

public void remoteSpatialItem2LocationNaturalIdToEntity(RemoteSpatialItem2LocationNaturalId source,
                                                        SpatialItem2Location target,
                                                        boolean copyIfNull)
Description copied from interface: SpatialItem2LocationDao
Copies the fields of RemoteSpatialItem2LocationNaturalId to the specified entity.

Specified by:
remoteSpatialItem2LocationNaturalIdToEntity in interface SpatialItem2LocationDao
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.SpatialItem2LocationDao#remoteSpatialItem2LocationNaturalIdToEntity(fr.ifremer.allegro.referential.spatial.generic.vo.RemoteSpatialItem2LocationNaturalId, fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

toClusterSpatialItem2LocationCollection

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

Specified by:
toClusterSpatialItem2LocationCollection in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toClusterSpatialItem2LocationCollection(java.util.Collection)

toClusterSpatialItem2LocationArray

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

Specified by:
toClusterSpatialItem2LocationArray in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toClusterSpatialItem2LocationArray(java.util.Collection)

toClusterSpatialItem2Location

protected ClusterSpatialItem2Location toClusterSpatialItem2Location(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 SpatialItem2LocationDaoImpl class if you intend to use reporting queries.

See Also:
SpatialItem2LocationDao.toClusterSpatialItem2Location(fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

clusterSpatialItem2LocationToEntityCollection

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

Specified by:
clusterSpatialItem2LocationToEntityCollection in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.clusterSpatialItem2LocationToEntityCollection(java.util.Collection)

toClusterSpatialItem2Location

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

toClusterSpatialItem2Location

public ClusterSpatialItem2Location toClusterSpatialItem2Location(SpatialItem2Location entity)
Description copied from interface: SpatialItem2LocationDao
Converts this DAO's entity to an object of type ClusterSpatialItem2Location.

Specified by:
toClusterSpatialItem2Location in interface SpatialItem2LocationDao
See Also:
SpatialItem2LocationDao.toClusterSpatialItem2Location(fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

clusterSpatialItem2LocationToEntity

public void clusterSpatialItem2LocationToEntity(ClusterSpatialItem2Location source,
                                                SpatialItem2Location target,
                                                boolean copyIfNull)
Description copied from interface: SpatialItem2LocationDao
Copies the fields of ClusterSpatialItem2Location to the specified entity.

Specified by:
clusterSpatialItem2LocationToEntity in interface SpatialItem2LocationDao
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.SpatialItem2LocationDao#clusterSpatialItem2LocationToEntity(fr.ifremer.allegro.referential.spatial.generic.cluster.ClusterSpatialItem2Location, fr.ifremer.allegro.referential.spatial.SpatialItem2Location)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.