fr.ifremer.allegro.technical.optimization.location
Class LocationHierarchyDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.technical.optimization.location.LocationHierarchyDaoBase
All Implemented Interfaces:
LocationHierarchyDao
Direct Known Subclasses:
LocationHierarchyDaoImpl

public abstract class LocationHierarchyDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements LocationHierarchyDao

Base Spring DAO Class: is able to create, update, remove, load, and find objects of type fr.ifremer.allegro.technical.optimization.location.LocationHierarchy.

See Also:
LocationHierarchy

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.technical.optimization.location.LocationHierarchyDao
TRANSFORM_CLUSTERLOCATIONHIERARCHY, TRANSFORM_NONE, TRANSFORM_REMOTELOCATIONHIERARCHYFULLVO, TRANSFORM_REMOTELOCATIONHIERARCHYNATURALID
 
Constructor Summary
LocationHierarchyDaoBase()
           
 
Method Summary
 void clusterLocationHierarchyToEntity(ClusterLocationHierarchy source, LocationHierarchy target, boolean copyIfNull)
          Copies the fields of ClusterLocationHierarchy to the specified entity.
 void clusterLocationHierarchyToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterLocationHierarchy to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy and adds from the passed in entities collection
 LocationHierarchy create(java.lang.Float childSurfaceRatio, Location location, Location parent)
           Creates a new fr.ifremer.allegro.technical.optimization.location.LocationHierarchy instance from all attributes and properties and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as LocationHierarchyDao.create(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.Float childSurfaceRatio, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.create(java.lang.Float,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object create(int transform, LocationHierarchy locationHierarchy)
           Does the same thing as LocationHierarchyDao.create(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy) with an additional flag called transform.
 LocationHierarchy create(LocationHierarchy locationHierarchy)
          Creates an instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy and adds it to the persistent store.
 LocationHierarchy createFromClusterLocationHierarchy(ClusterLocationHierarchy clusterLocationHierarchy)
           
 java.util.Collection findLocationHierarchiesByFatherId(java.lang.Integer fatherId)
           
 java.util.Collection findLocationHierarchiesByFatherId(int transform, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(java.lang.Integer) with an additional flag called transform.
 java.util.Collection findLocationHierarchiesByFatherId(int pageNumber, int pageSize, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesByFatherId(int transform, int pageNumber, int pageSize, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(int, java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesByFatherId(int transform, java.lang.String queryString, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(int, java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationHierarchiesByFatherId(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(int, String, java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesByFatherId(java.lang.String queryString, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationHierarchiesByFatherId(java.lang.String queryString, int pageNumber, int pageSize, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesByFatherId(String, java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesById(java.lang.Integer id)
           
 java.util.Collection findLocationHierarchiesById(int transform, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(java.lang.Integer) with an additional flag called transform.
 java.util.Collection findLocationHierarchiesById(int pageNumber, int pageSize, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesById(int transform, int pageNumber, int pageSize, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(int, java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(int, java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationHierarchiesById(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(int, String, java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchiesById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationHierarchiesById(java.lang.String queryString, int pageNumber, int pageSize, java.lang.Integer id)
           Does the same thing as LocationHierarchyDao.findLocationHierarchiesById(String, java.lang.Integer) with an additional two arguments called pageNumber and pageSize.
 LocationHierarchy findLocationHierarchyByIdentifiers(java.lang.Integer id, java.lang.Integer fatherId)
           
 java.lang.Object findLocationHierarchyByIdentifiers(int transform, java.lang.Integer id, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(java.lang.Integer, java.lang.Integer) with an additional flag called transform.
 java.lang.Object findLocationHierarchyByIdentifiers(int transform, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object findLocationHierarchyByIdentifiers(int transform, java.lang.String queryString, java.lang.Integer id, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(int, java.lang.Integer, java.lang.Integer) with an additional argument called queryString.
 java.lang.Object findLocationHierarchyByIdentifiers(int transform, java.lang.String queryString, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(int, fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 LocationHierarchy findLocationHierarchyByIdentifiers(Location location, Location parent)
           
 LocationHierarchy findLocationHierarchyByIdentifiers(java.lang.String queryString, java.lang.Integer id, java.lang.Integer fatherId)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(java.lang.Integer, java.lang.Integer) with an additional argument called queryString.
 LocationHierarchy findLocationHierarchyByIdentifiers(java.lang.String queryString, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findLocationHierarchyByLocation(int transform, int pageNumber, int pageSize, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchyByLocation(int pageNumber, int pageSize, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchyByLocation(int transform, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findLocationHierarchyByLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchyByLocation(int transform, java.lang.String queryString, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findLocationHierarchyByLocation(Location location)
           
 java.util.Collection findLocationHierarchyByLocation(java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationHierarchyByLocation(java.lang.String queryString, Location location)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.lang.Object findLocationHierarchyByNaturalId(int transform, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByNaturalId(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object findLocationHierarchyByNaturalId(int transform, java.lang.String queryString, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByNaturalId(int, fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 LocationHierarchy findLocationHierarchyByNaturalId(Location location, Location parent)
           
 LocationHierarchy findLocationHierarchyByNaturalId(java.lang.String queryString, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.findLocationHierarchyByNaturalId(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection getAllLocationHierarchy()
           
 java.util.Collection getAllLocationHierarchy(int transform)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy() with an additional flag called transform.
 java.util.Collection getAllLocationHierarchy(int pageNumber, int pageSize)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationHierarchy(int transform, int pageNumber, int pageSize)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationHierarchy(int transform, java.lang.String queryString)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy(int) with an additional argument called queryString.
 java.util.Collection getAllLocationHierarchy(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationHierarchy(java.lang.String queryString)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy() with an additional argument called queryString.
 java.util.Collection getAllLocationHierarchy(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as LocationHierarchyDao.getAllLocationHierarchy(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 abstract  LocationHierarchy handleCreateFromClusterLocationHierarchy(ClusterLocationHierarchy clusterLocationHierarchy)
          Performs the core logic for createFromClusterLocationHierarchy(fr.ifremer.allegro.technical.optimization.location.generic.cluster.ClusterLocationHierarchy)
 java.lang.Object load(int transform, Location location, Location parent)
           Does the same thing as LocationHierarchyDao.load(fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 LocationHierarchy load(Location location, Location parent)
          Loads an instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type LocationHierarchy.
 java.util.Collection loadAll(int transform)
           Does the same thing as LocationHierarchyDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as LocationHierarchyDao.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 LocationHierarchyDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteLocationHierarchyFullVOToEntity(RemoteLocationHierarchyFullVO source, LocationHierarchy target, boolean copyIfNull)
          Copies the fields of RemoteLocationHierarchyFullVO to the specified entity.
 void remoteLocationHierarchyFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteLocationHierarchyFullVO to this DAO's entity.
 void remoteLocationHierarchyNaturalIdToEntity(RemoteLocationHierarchyNaturalId source, LocationHierarchy target, boolean copyIfNull)
          Copies the fields of RemoteLocationHierarchyNaturalId to the specified entity.
 void remoteLocationHierarchyNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteLocationHierarchyNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(LocationHierarchy locationHierarchy)
          Removes the instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy from the persistent store.
 void remove(Location location, Location parent)
          Removes the instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy 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 LocationHierarchyDao.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.
 ClusterLocationHierarchy toClusterLocationHierarchy(LocationHierarchy entity)
          Converts this DAO's entity to an object of type ClusterLocationHierarchy.
 void toClusterLocationHierarchy(LocationHierarchy source, ClusterLocationHierarchy target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterLocationHierarchy toClusterLocationHierarchy(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterLocationHierarchy[] toClusterLocationHierarchyArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterLocationHierarchy.
 void toClusterLocationHierarchyCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterLocationHierarchy.
protected  LocationHierarchy toEntity(java.lang.Object[] row)
           
 RemoteLocationHierarchyFullVO toRemoteLocationHierarchyFullVO(LocationHierarchy entity)
          Converts this DAO's entity to an object of type RemoteLocationHierarchyFullVO.
 void toRemoteLocationHierarchyFullVO(LocationHierarchy source, RemoteLocationHierarchyFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteLocationHierarchyFullVO toRemoteLocationHierarchyFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteLocationHierarchyFullVO[] toRemoteLocationHierarchyFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteLocationHierarchyFullVO.
 void toRemoteLocationHierarchyFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteLocationHierarchyFullVO.
 RemoteLocationHierarchyNaturalId toRemoteLocationHierarchyNaturalId(LocationHierarchy entity)
          Converts this DAO's entity to an object of type RemoteLocationHierarchyNaturalId.
 void toRemoteLocationHierarchyNaturalId(LocationHierarchy source, RemoteLocationHierarchyNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteLocationHierarchyNaturalId toRemoteLocationHierarchyNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteLocationHierarchyNaturalId[] toRemoteLocationHierarchyNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteLocationHierarchyNaturalId.
 void toRemoteLocationHierarchyNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteLocationHierarchyNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.technical.optimization.location.LocationHierarchy) method.
protected  java.lang.Object transformEntity(int transform, LocationHierarchy 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.technical.optimization.location.LocationHierarchyDao, please note that the LocationHierarchyDao.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(LocationHierarchy locationHierarchy)
          Updates the locationHierarchy 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.technical.optimization.location.LocationHierarchyDao
clusterLocationHierarchyToEntity, remoteLocationHierarchyFullVOToEntity, remoteLocationHierarchyNaturalIdToEntity
 

Constructor Detail

LocationHierarchyDaoBase

public LocationHierarchyDaoBase()
Method Detail

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,
                             Location location,
                             Location parent)
Description copied from interface: LocationHierarchyDao

Does the same thing as LocationHierarchyDao.load(fr.ifremer.allegro.referential.location.Location,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 LocationHierarchyDao
location - identifier of the entity to load
parent - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
LocationHierarchyDao.load(int, fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.location.Location)

load

public LocationHierarchy load(Location location,
                              Location parent)
Description copied from interface: LocationHierarchyDao
Loads an instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public LocationHierarchy create(LocationHierarchy locationHierarchy)
Description copied from interface: LocationHierarchyDao
Creates an instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy and adds it to the persistent store.

Specified by:
create in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.create(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

create

public java.lang.Object create(int transform,
                               LocationHierarchy locationHierarchy)
Description copied from interface: LocationHierarchyDao

Does the same thing as LocationHierarchyDao.create(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy) 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 LocationHierarchyDao
See Also:
LocationHierarchyDao.create(int transform, fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

create

public java.util.Collection create(java.util.Collection entities)
Description copied from interface: LocationHierarchyDao
Creates a new instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy and adds from the passed in entities collection

Specified by:
create in interface LocationHierarchyDao
Parameters:
entities - the collection of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy instances to create.
Returns:
the created instances.
See Also:
LocationHierarchyDao.create(java.util.Collection)

create

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

Does the same thing as LocationHierarchyDao.create(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy) 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 LocationHierarchyDao
See Also:
LocationHierarchyDao.create(int, java.util.Collection)

create

public LocationHierarchy create(java.lang.Float childSurfaceRatio,
                                Location location,
                                Location parent)
Description copied from interface: LocationHierarchyDao

Creates a new fr.ifremer.allegro.technical.optimization.location.LocationHierarchy instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.create(java.lang.Float,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.referential.location.Location)

create

public java.lang.Object create(int transform,
                               java.lang.Float childSurfaceRatio,
                               Location location,
                               Location parent)
Description copied from interface: LocationHierarchyDao

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

update

public void update(LocationHierarchy locationHierarchy)
Description copied from interface: LocationHierarchyDao
Updates the locationHierarchy instance in the persistent store.

Specified by:
update in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.update(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

update

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

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

remove

public void remove(LocationHierarchy locationHierarchy)
Description copied from interface: LocationHierarchyDao
Removes the instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy from the persistent store.

Specified by:
remove in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.remove(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

remove

public void remove(Location location,
                   Location parent)
Description copied from interface: LocationHierarchyDao
Removes the instance of fr.ifremer.allegro.technical.optimization.location.LocationHierarchy having the given identifiers from the persistent store.

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

remove

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

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

findLocationHierarchyByIdentifiers

public LocationHierarchy findLocationHierarchyByIdentifiers(java.lang.Integer id,
                                                            java.lang.Integer fatherId)
Specified by:
findLocationHierarchyByIdentifiers in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByIdentifiers(java.lang.Integer, java.lang.Integer)

findLocationHierarchyByIdentifiers

public java.lang.Object findLocationHierarchyByIdentifiers(int transform,
                                                           java.lang.Integer id,
                                                           java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchyByIdentifiers

public LocationHierarchy findLocationHierarchyByIdentifiers(java.lang.String queryString,
                                                            java.lang.Integer id,
                                                            java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

Specified by:
findLocationHierarchyByIdentifiers in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByIdentifiers(java.lang.String, java.lang.Integer, java.lang.Integer)

findLocationHierarchyByIdentifiers

public java.lang.Object findLocationHierarchyByIdentifiers(int transform,
                                                           java.lang.String queryString,
                                                           java.lang.Integer id,
                                                           java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

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

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(java.lang.Integer id)
Specified by:
findLocationHierarchiesById in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchiesById(java.lang.Integer)

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(int transform,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(java.lang.String queryString,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

Specified by:
findLocationHierarchiesById in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchiesById(java.lang.String, java.lang.Integer)

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(int pageNumber,
                                                        int pageSize,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(java.lang.String queryString,
                                                        int pageNumber,
                                                        int pageSize,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(int transform,
                                                        java.lang.String queryString,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

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

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(int transform,
                                                        int pageNumber,
                                                        int pageSize,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesById

public java.util.Collection findLocationHierarchiesById(int transform,
                                                        java.lang.String queryString,
                                                        int pageNumber,
                                                        int pageSize,
                                                        java.lang.Integer id)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(java.lang.Integer fatherId)
Specified by:
findLocationHierarchiesByFatherId in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchiesByFatherId(java.lang.Integer)

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(int transform,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(java.lang.String queryString,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

Specified by:
findLocationHierarchiesByFatherId in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchiesByFatherId(java.lang.String, java.lang.Integer)

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(int pageNumber,
                                                              int pageSize,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(int transform,
                                                              java.lang.String queryString,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

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

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(int transform,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

findLocationHierarchiesByFatherId

public java.util.Collection findLocationHierarchiesByFatherId(int transform,
                                                              java.lang.String queryString,
                                                              int pageNumber,
                                                              int pageSize,
                                                              java.lang.Integer fatherId)
Description copied from interface: LocationHierarchyDao

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

getAllLocationHierarchy

public java.util.Collection getAllLocationHierarchy()
Specified by:
getAllLocationHierarchy in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.getAllLocationHierarchy()

getAllLocationHierarchy

public java.util.Collection getAllLocationHierarchy(int transform)
Description copied from interface: LocationHierarchyDao

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

getAllLocationHierarchy

public java.util.Collection getAllLocationHierarchy(java.lang.String queryString)
Description copied from interface: LocationHierarchyDao

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

Specified by:
getAllLocationHierarchy in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.getAllLocationHierarchy(java.lang.String)

getAllLocationHierarchy

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

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

getAllLocationHierarchy

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

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

getAllLocationHierarchy

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

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

Specified by:
getAllLocationHierarchy in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.getAllLocationHierarchy(int, String)

getAllLocationHierarchy

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

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

getAllLocationHierarchy

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

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

findLocationHierarchyByLocation

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

findLocationHierarchyByLocation

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

Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(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:
findLocationHierarchyByLocation in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByLocation(int, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByLocation

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

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

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

findLocationHierarchyByLocation

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

Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(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:
findLocationHierarchyByLocation in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByLocation(int, int, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByLocation

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

Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(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:
findLocationHierarchyByLocation in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByLocation(String, int, int, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByLocation

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

Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(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 LocationHierarchyDao.findLocationHierarchyByLocation(int, fr.ifremer.allegro.referential.location.Location location).

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

findLocationHierarchyByLocation

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

Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(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:
findLocationHierarchyByLocation in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByLocation(int, int, int, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByLocation

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

Does the same thing as LocationHierarchyDao.findLocationHierarchyByLocation(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:
findLocationHierarchyByLocation in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByLocation(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByIdentifiers

public LocationHierarchy findLocationHierarchyByIdentifiers(Location location,
                                                            Location parent)
Specified by:
findLocationHierarchyByIdentifiers in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByIdentifiers(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByIdentifiers

public java.lang.Object findLocationHierarchyByIdentifiers(int transform,
                                                           Location location,
                                                           Location parent)
Description copied from interface: LocationHierarchyDao

Does the same thing as LocationHierarchyDao.findLocationHierarchyByIdentifiers(fr.ifremer.allegro.referential.location.Location, 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:
findLocationHierarchyByIdentifiers in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByIdentifiers(int, fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByIdentifiers

public LocationHierarchy findLocationHierarchyByIdentifiers(java.lang.String queryString,
                                                            Location location,
                                                            Location parent)
Description copied from interface: LocationHierarchyDao

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

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

findLocationHierarchyByIdentifiers

public java.lang.Object findLocationHierarchyByIdentifiers(int transform,
                                                           java.lang.String queryString,
                                                           Location location,
                                                           Location parent)
Description copied from interface: LocationHierarchyDao

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

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

findLocationHierarchyByNaturalId

public LocationHierarchy findLocationHierarchyByNaturalId(Location location,
                                                          Location parent)
Specified by:
findLocationHierarchyByNaturalId in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByNaturalId(fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByNaturalId

public java.lang.Object findLocationHierarchyByNaturalId(int transform,
                                                         Location location,
                                                         Location parent)
Description copied from interface: LocationHierarchyDao

Does the same thing as LocationHierarchyDao.findLocationHierarchyByNaturalId(fr.ifremer.allegro.referential.location.Location, 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:
findLocationHierarchyByNaturalId in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.findLocationHierarchyByNaturalId(int, fr.ifremer.allegro.referential.location.Location, fr.ifremer.allegro.referential.location.Location)

findLocationHierarchyByNaturalId

public LocationHierarchy findLocationHierarchyByNaturalId(java.lang.String queryString,
                                                          Location location,
                                                          Location parent)
Description copied from interface: LocationHierarchyDao

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

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

findLocationHierarchyByNaturalId

public java.lang.Object findLocationHierarchyByNaturalId(int transform,
                                                         java.lang.String queryString,
                                                         Location location,
                                                         Location parent)
Description copied from interface: LocationHierarchyDao

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

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

createFromClusterLocationHierarchy

public LocationHierarchy createFromClusterLocationHierarchy(ClusterLocationHierarchy clusterLocationHierarchy)
Specified by:
createFromClusterLocationHierarchy in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.createFromClusterLocationHierarchy(fr.ifremer.allegro.technical.optimization.location.generic.cluster.ClusterLocationHierarchy)

handleCreateFromClusterLocationHierarchy

protected abstract LocationHierarchy handleCreateFromClusterLocationHierarchy(ClusterLocationHierarchy clusterLocationHierarchy)
                                                                       throws java.lang.Exception
Performs the core logic for createFromClusterLocationHierarchy(fr.ifremer.allegro.technical.optimization.location.generic.cluster.ClusterLocationHierarchy)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           LocationHierarchy 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.technical.optimization.location.LocationHierarchyDao, please note that the LocationHierarchyDao.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 LocationHierarchyDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in LocationHierarchyDao
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.technical.optimization.location.LocationHierarchy) 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.technical.optimization.location.LocationHierarchyDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

toEntity

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

toRemoteLocationHierarchyFullVOCollection

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

Specified by:
toRemoteLocationHierarchyFullVOCollection in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyFullVOCollection(java.util.Collection)

toRemoteLocationHierarchyFullVOArray

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

Specified by:
toRemoteLocationHierarchyFullVOArray in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyFullVOArray(java.util.Collection)

toRemoteLocationHierarchyFullVO

protected RemoteLocationHierarchyFullVO toRemoteLocationHierarchyFullVO(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 LocationHierarchyDaoImpl class if you intend to use reporting queries.

See Also:
LocationHierarchyDao.toRemoteLocationHierarchyFullVO(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

remoteLocationHierarchyFullVOToEntityCollection

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

Specified by:
remoteLocationHierarchyFullVOToEntityCollection in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.remoteLocationHierarchyFullVOToEntityCollection(java.util.Collection)

toRemoteLocationHierarchyFullVO

public void toRemoteLocationHierarchyFullVO(LocationHierarchy source,
                                            RemoteLocationHierarchyFullVO target)
Description copied from interface: LocationHierarchyDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteLocationHierarchyFullVO(), 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:
toRemoteLocationHierarchyFullVO in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyFullVO(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy, fr.ifremer.allegro.technical.optimization.location.generic.vo.RemoteLocationHierarchyFullVO)

toRemoteLocationHierarchyFullVO

public RemoteLocationHierarchyFullVO toRemoteLocationHierarchyFullVO(LocationHierarchy entity)
Description copied from interface: LocationHierarchyDao
Converts this DAO's entity to an object of type RemoteLocationHierarchyFullVO.

Specified by:
toRemoteLocationHierarchyFullVO in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyFullVO(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

remoteLocationHierarchyFullVOToEntity

public void remoteLocationHierarchyFullVOToEntity(RemoteLocationHierarchyFullVO source,
                                                  LocationHierarchy target,
                                                  boolean copyIfNull)
Description copied from interface: LocationHierarchyDao
Copies the fields of RemoteLocationHierarchyFullVO to the specified entity.

Specified by:
remoteLocationHierarchyFullVOToEntity in interface LocationHierarchyDao
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.technical.optimization.location.LocationHierarchyDao#remoteLocationHierarchyFullVOToEntity(fr.ifremer.allegro.technical.optimization.location.generic.vo.RemoteLocationHierarchyFullVO, fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

toRemoteLocationHierarchyNaturalIdCollection

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

Specified by:
toRemoteLocationHierarchyNaturalIdCollection in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyNaturalIdCollection(java.util.Collection)

toRemoteLocationHierarchyNaturalIdArray

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

Specified by:
toRemoteLocationHierarchyNaturalIdArray in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyNaturalIdArray(java.util.Collection)

toRemoteLocationHierarchyNaturalId

protected RemoteLocationHierarchyNaturalId toRemoteLocationHierarchyNaturalId(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 LocationHierarchyDaoImpl class if you intend to use reporting queries.

See Also:
LocationHierarchyDao.toRemoteLocationHierarchyNaturalId(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

remoteLocationHierarchyNaturalIdToEntityCollection

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

Specified by:
remoteLocationHierarchyNaturalIdToEntityCollection in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.remoteLocationHierarchyNaturalIdToEntityCollection(java.util.Collection)

toRemoteLocationHierarchyNaturalId

public void toRemoteLocationHierarchyNaturalId(LocationHierarchy source,
                                               RemoteLocationHierarchyNaturalId target)
Description copied from interface: LocationHierarchyDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteLocationHierarchyNaturalId(), 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:
toRemoteLocationHierarchyNaturalId in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyNaturalId(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy, fr.ifremer.allegro.technical.optimization.location.generic.vo.RemoteLocationHierarchyNaturalId)

toRemoteLocationHierarchyNaturalId

public RemoteLocationHierarchyNaturalId toRemoteLocationHierarchyNaturalId(LocationHierarchy entity)
Description copied from interface: LocationHierarchyDao
Converts this DAO's entity to an object of type RemoteLocationHierarchyNaturalId.

Specified by:
toRemoteLocationHierarchyNaturalId in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toRemoteLocationHierarchyNaturalId(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

remoteLocationHierarchyNaturalIdToEntity

public void remoteLocationHierarchyNaturalIdToEntity(RemoteLocationHierarchyNaturalId source,
                                                     LocationHierarchy target,
                                                     boolean copyIfNull)
Description copied from interface: LocationHierarchyDao
Copies the fields of RemoteLocationHierarchyNaturalId to the specified entity.

Specified by:
remoteLocationHierarchyNaturalIdToEntity in interface LocationHierarchyDao
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.technical.optimization.location.LocationHierarchyDao#remoteLocationHierarchyNaturalIdToEntity(fr.ifremer.allegro.technical.optimization.location.generic.vo.RemoteLocationHierarchyNaturalId, fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

toClusterLocationHierarchyCollection

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

Specified by:
toClusterLocationHierarchyCollection in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toClusterLocationHierarchyCollection(java.util.Collection)

toClusterLocationHierarchyArray

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

Specified by:
toClusterLocationHierarchyArray in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toClusterLocationHierarchyArray(java.util.Collection)

toClusterLocationHierarchy

protected ClusterLocationHierarchy toClusterLocationHierarchy(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 LocationHierarchyDaoImpl class if you intend to use reporting queries.

See Also:
LocationHierarchyDao.toClusterLocationHierarchy(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

clusterLocationHierarchyToEntityCollection

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

Specified by:
clusterLocationHierarchyToEntityCollection in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.clusterLocationHierarchyToEntityCollection(java.util.Collection)

toClusterLocationHierarchy

public void toClusterLocationHierarchy(LocationHierarchy source,
                                       ClusterLocationHierarchy target)
Description copied from interface: LocationHierarchyDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterLocationHierarchy(), 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:
toClusterLocationHierarchy in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toClusterLocationHierarchy(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy, fr.ifremer.allegro.technical.optimization.location.generic.cluster.ClusterLocationHierarchy)

toClusterLocationHierarchy

public ClusterLocationHierarchy toClusterLocationHierarchy(LocationHierarchy entity)
Description copied from interface: LocationHierarchyDao
Converts this DAO's entity to an object of type ClusterLocationHierarchy.

Specified by:
toClusterLocationHierarchy in interface LocationHierarchyDao
See Also:
LocationHierarchyDao.toClusterLocationHierarchy(fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

clusterLocationHierarchyToEntity

public void clusterLocationHierarchyToEntity(ClusterLocationHierarchy source,
                                             LocationHierarchy target,
                                             boolean copyIfNull)
Description copied from interface: LocationHierarchyDao
Copies the fields of ClusterLocationHierarchy to the specified entity.

Specified by:
clusterLocationHierarchyToEntity in interface LocationHierarchyDao
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.technical.optimization.location.LocationHierarchyDao#clusterLocationHierarchyToEntity(fr.ifremer.allegro.technical.optimization.location.generic.cluster.ClusterLocationHierarchy, fr.ifremer.allegro.technical.optimization.location.LocationHierarchy)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.