fr.ifremer.allegro.referential.location
Class LocationLineDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.location.LocationLineDaoBase
All Implemented Interfaces:
LocationLineDao
Direct Known Subclasses:
LocationLineDaoImpl

public abstract class LocationLineDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements LocationLineDao

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

See Also:
LocationLine

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.location.LocationLineDao
TRANSFORM_CLUSTERLOCATIONLINE, TRANSFORM_NONE, TRANSFORM_REMOTELOCATIONLINEFULLVO, TRANSFORM_REMOTELOCATIONLINENATURALID
 
Constructor Summary
LocationLineDaoBase()
           
 
Method Summary
 void clusterLocationLineToEntity(ClusterLocationLine source, LocationLine target, boolean copyIfNull)
          Copies the fields of ClusterLocationLine to the specified entity.
 void clusterLocationLineToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterLocationLine to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.location.LocationLine and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as LocationLineDao.create(fr.ifremer.allegro.referential.location.LocationLine) with an additional flag called transform.
 java.lang.Object create(int transform, Location location)
           Does the same thing as LocationLineDao.create(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.lang.Object create(int transform, LocationLine locationLine)
           Does the same thing as LocationLineDao.create(fr.ifremer.allegro.referential.location.LocationLine) with an additional flag called transform.
 LocationLine create(Location location)
           Creates a new fr.ifremer.allegro.referential.location.LocationLine instance from all attributes and properties and adds it to the persistent store.
 LocationLine create(LocationLine locationLine)
          Creates an instance of fr.ifremer.allegro.referential.location.LocationLine and adds it to the persistent store.
 LocationLine createFromClusterLocationLine(ClusterLocationLine clusterLocationLine)
           
 LocationLine findLocationLineById(java.lang.Integer id)
           
 java.lang.Object findLocationLineById(int transform, java.lang.Integer id)
           Does the same thing as LocationLineDao.findLocationLineById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findLocationLineById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLineDao.findLocationLineById(int, java.lang.Integer) with an additional argument called queryString.
 LocationLine findLocationLineById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLineDao.findLocationLineById(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationLineByLocation(int transform, int pageNumber, int pageSize, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLineByLocation(int pageNumber, int pageSize, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLineByLocation(int transform, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findLocationLineByLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLineByLocation(int transform, java.lang.String queryString, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findLocationLineByLocation(Location location)
           
 java.util.Collection findLocationLineByLocation(java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLineByLocation(java.lang.String queryString, Location location)
           Does the same thing as LocationLineDao.findLocationLineByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 LocationLine findLocationLineByNaturalId(java.lang.Integer id)
           
 java.lang.Object findLocationLineByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as LocationLineDao.findLocationLineByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findLocationLineByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLineDao.findLocationLineByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 LocationLine findLocationLineByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLineDao.findLocationLineByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection getAllLocationLine()
           
 java.util.Collection getAllLocationLine(int transform)
           Does the same thing as LocationLineDao.getAllLocationLine() with an additional flag called transform.
 java.util.Collection getAllLocationLine(int pageNumber, int pageSize)
           Does the same thing as LocationLineDao.getAllLocationLine() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLine(int transform, int pageNumber, int pageSize)
           Does the same thing as LocationLineDao.getAllLocationLine(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLine(int transform, java.lang.String queryString)
           Does the same thing as LocationLineDao.getAllLocationLine(int) with an additional argument called queryString.
 java.util.Collection getAllLocationLine(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as LocationLineDao.getAllLocationLine(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLine(java.lang.String queryString)
           Does the same thing as LocationLineDao.getAllLocationLine() with an additional argument called queryString.
 java.util.Collection getAllLocationLine(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as LocationLineDao.getAllLocationLine(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  LocationLine handleCreateFromClusterLocationLine(ClusterLocationLine clusterLocationLine)
          Performs the core logic for createFromClusterLocationLine(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLine)
 LocationLine load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.location.LocationLine from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as LocationLineDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type LocationLine.
 java.util.Collection loadAll(int transform)
           Does the same thing as LocationLineDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as LocationLineDao.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 LocationLineDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteLocationLineFullVOToEntity(RemoteLocationLineFullVO source, LocationLine target, boolean copyIfNull)
          Copies the fields of RemoteLocationLineFullVO to the specified entity.
 void remoteLocationLineFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteLocationLineFullVO to this DAO's entity.
 void remoteLocationLineNaturalIdToEntity(RemoteLocationLineNaturalId source, LocationLine target, boolean copyIfNull)
          Copies the fields of RemoteLocationLineNaturalId to the specified entity.
 void remoteLocationLineNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteLocationLineNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.location.LocationLine having the given identifier from the persistent store.
 void remove(LocationLine locationLine)
          Removes the instance of fr.ifremer.allegro.referential.location.LocationLine 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 LocationLineDao.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.
 ClusterLocationLine toClusterLocationLine(LocationLine entity)
          Converts this DAO's entity to an object of type ClusterLocationLine.
 void toClusterLocationLine(LocationLine source, ClusterLocationLine target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterLocationLine toClusterLocationLine(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterLocationLine[] toClusterLocationLineArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterLocationLine.
 void toClusterLocationLineCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterLocationLine.
protected  LocationLine toEntity(java.lang.Object[] row)
           
 RemoteLocationLineFullVO toRemoteLocationLineFullVO(LocationLine entity)
          Converts this DAO's entity to an object of type RemoteLocationLineFullVO.
 void toRemoteLocationLineFullVO(LocationLine source, RemoteLocationLineFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteLocationLineFullVO toRemoteLocationLineFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteLocationLineFullVO[] toRemoteLocationLineFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteLocationLineFullVO.
 void toRemoteLocationLineFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteLocationLineFullVO.
 RemoteLocationLineNaturalId toRemoteLocationLineNaturalId(LocationLine entity)
          Converts this DAO's entity to an object of type RemoteLocationLineNaturalId.
 void toRemoteLocationLineNaturalId(LocationLine source, RemoteLocationLineNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteLocationLineNaturalId toRemoteLocationLineNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteLocationLineNaturalId[] toRemoteLocationLineNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteLocationLineNaturalId.
 void toRemoteLocationLineNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteLocationLineNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.location.LocationLine) method.
protected  java.lang.Object transformEntity(int transform, LocationLine 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.location.LocationLineDao, please note that the LocationLineDao.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(LocationLine locationLine)
          Updates the locationLine 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.location.LocationLineDao
clusterLocationLineToEntity, remoteLocationLineFullVOToEntity, remoteLocationLineNaturalIdToEntity
 

Constructor Detail

LocationLineDaoBase

public LocationLineDaoBase()
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,
                             java.lang.Integer id)
Description copied from interface: LocationLineDao

Does the same thing as LocationLineDao.load(java.lang.Integer) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined in this class then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public LocationLine create(LocationLine locationLine)
Description copied from interface: LocationLineDao
Creates an instance of fr.ifremer.allegro.referential.location.LocationLine and adds it to the persistent store.

Specified by:
create in interface LocationLineDao
See Also:
LocationLineDao.create(fr.ifremer.allegro.referential.location.LocationLine)

create

public java.lang.Object create(int transform,
                               LocationLine locationLine)
Description copied from interface: LocationLineDao

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

create

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

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

create

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

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

create

public LocationLine create(Location location)
Description copied from interface: LocationLineDao

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

Specified by:
create in interface LocationLineDao
See Also:
LocationLineDao.create(fr.ifremer.allegro.referential.location.Location)

create

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

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

update

public void update(LocationLine locationLine)
Description copied from interface: LocationLineDao
Updates the locationLine instance in the persistent store.

Specified by:
update in interface LocationLineDao
See Also:
LocationLineDao.update(fr.ifremer.allegro.referential.location.LocationLine)

update

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

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

remove

public void remove(LocationLine locationLine)
Description copied from interface: LocationLineDao
Removes the instance of fr.ifremer.allegro.referential.location.LocationLine from the persistent store.

Specified by:
remove in interface LocationLineDao
See Also:
LocationLineDao.remove(fr.ifremer.allegro.referential.location.LocationLine)

remove

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

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

remove

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

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

getAllLocationLine

public java.util.Collection getAllLocationLine()
Specified by:
getAllLocationLine in interface LocationLineDao
See Also:
LocationLineDao.getAllLocationLine()

getAllLocationLine

public java.util.Collection getAllLocationLine(int transform)
Description copied from interface: LocationLineDao

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

getAllLocationLine

public java.util.Collection getAllLocationLine(java.lang.String queryString)
Description copied from interface: LocationLineDao

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

Specified by:
getAllLocationLine in interface LocationLineDao
See Also:
LocationLineDao.getAllLocationLine(java.lang.String)

getAllLocationLine

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

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

getAllLocationLine

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

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

getAllLocationLine

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

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

Specified by:
getAllLocationLine in interface LocationLineDao
See Also:
LocationLineDao.getAllLocationLine(int, String)

getAllLocationLine

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

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

getAllLocationLine

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

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

findLocationLineById

public LocationLine findLocationLineById(java.lang.Integer id)
Specified by:
findLocationLineById in interface LocationLineDao
See Also:
LocationLineDao.findLocationLineById(java.lang.Integer)

findLocationLineById

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

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

findLocationLineById

public LocationLine findLocationLineById(java.lang.String queryString,
                                         java.lang.Integer id)
Description copied from interface: LocationLineDao

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

Specified by:
findLocationLineById in interface LocationLineDao
See Also:
LocationLineDao.findLocationLineById(java.lang.String, java.lang.Integer)

findLocationLineById

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

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

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

findLocationLineByLocation

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

findLocationLineByLocation

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

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

findLocationLineByLocation

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

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

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

findLocationLineByLocation

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

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

findLocationLineByLocation

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

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

findLocationLineByLocation

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

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

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

findLocationLineByLocation

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

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

findLocationLineByLocation

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

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

findLocationLineByNaturalId

public LocationLine findLocationLineByNaturalId(java.lang.Integer id)
Specified by:
findLocationLineByNaturalId in interface LocationLineDao
See Also:
LocationLineDao.findLocationLineByNaturalId(java.lang.Integer)

findLocationLineByNaturalId

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

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

findLocationLineByNaturalId

public LocationLine findLocationLineByNaturalId(java.lang.String queryString,
                                                java.lang.Integer id)
Description copied from interface: LocationLineDao

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

Specified by:
findLocationLineByNaturalId in interface LocationLineDao
See Also:
LocationLineDao.findLocationLineByNaturalId(java.lang.String, java.lang.Integer)

findLocationLineByNaturalId

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

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

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

createFromClusterLocationLine

public LocationLine createFromClusterLocationLine(ClusterLocationLine clusterLocationLine)
Specified by:
createFromClusterLocationLine in interface LocationLineDao
See Also:
LocationLineDao.createFromClusterLocationLine(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLine)

handleCreateFromClusterLocationLine

protected abstract LocationLine handleCreateFromClusterLocationLine(ClusterLocationLine clusterLocationLine)
                                                             throws java.lang.Exception
Performs the core logic for createFromClusterLocationLine(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLine)

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteLocationLineFullVOCollection

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

Specified by:
toRemoteLocationLineFullVOCollection in interface LocationLineDao
See Also:
LocationLineDao.toRemoteLocationLineFullVOCollection(java.util.Collection)

toRemoteLocationLineFullVOArray

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

Specified by:
toRemoteLocationLineFullVOArray in interface LocationLineDao
See Also:
LocationLineDao.toRemoteLocationLineFullVOArray(java.util.Collection)

toRemoteLocationLineFullVO

protected RemoteLocationLineFullVO toRemoteLocationLineFullVO(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 LocationLineDaoImpl class if you intend to use reporting queries.

See Also:
LocationLineDao.toRemoteLocationLineFullVO(fr.ifremer.allegro.referential.location.LocationLine)

remoteLocationLineFullVOToEntityCollection

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

Specified by:
remoteLocationLineFullVOToEntityCollection in interface LocationLineDao
See Also:
LocationLineDao.remoteLocationLineFullVOToEntityCollection(java.util.Collection)

toRemoteLocationLineFullVO

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

toRemoteLocationLineFullVO

public RemoteLocationLineFullVO toRemoteLocationLineFullVO(LocationLine entity)
Description copied from interface: LocationLineDao
Converts this DAO's entity to an object of type RemoteLocationLineFullVO.

Specified by:
toRemoteLocationLineFullVO in interface LocationLineDao
See Also:
LocationLineDao.toRemoteLocationLineFullVO(fr.ifremer.allegro.referential.location.LocationLine)

remoteLocationLineFullVOToEntity

public void remoteLocationLineFullVOToEntity(RemoteLocationLineFullVO source,
                                             LocationLine target,
                                             boolean copyIfNull)
Description copied from interface: LocationLineDao
Copies the fields of RemoteLocationLineFullVO to the specified entity.

Specified by:
remoteLocationLineFullVOToEntity in interface LocationLineDao
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.location.LocationLineDao#remoteLocationLineFullVOToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationLineFullVO, fr.ifremer.allegro.referential.location.LocationLine)

toRemoteLocationLineNaturalIdCollection

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

Specified by:
toRemoteLocationLineNaturalIdCollection in interface LocationLineDao
See Also:
LocationLineDao.toRemoteLocationLineNaturalIdCollection(java.util.Collection)

toRemoteLocationLineNaturalIdArray

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

Specified by:
toRemoteLocationLineNaturalIdArray in interface LocationLineDao
See Also:
LocationLineDao.toRemoteLocationLineNaturalIdArray(java.util.Collection)

toRemoteLocationLineNaturalId

protected RemoteLocationLineNaturalId toRemoteLocationLineNaturalId(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 LocationLineDaoImpl class if you intend to use reporting queries.

See Also:
LocationLineDao.toRemoteLocationLineNaturalId(fr.ifremer.allegro.referential.location.LocationLine)

remoteLocationLineNaturalIdToEntityCollection

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

Specified by:
remoteLocationLineNaturalIdToEntityCollection in interface LocationLineDao
See Also:
LocationLineDao.remoteLocationLineNaturalIdToEntityCollection(java.util.Collection)

toRemoteLocationLineNaturalId

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

toRemoteLocationLineNaturalId

public RemoteLocationLineNaturalId toRemoteLocationLineNaturalId(LocationLine entity)
Description copied from interface: LocationLineDao
Converts this DAO's entity to an object of type RemoteLocationLineNaturalId.

Specified by:
toRemoteLocationLineNaturalId in interface LocationLineDao
See Also:
LocationLineDao.toRemoteLocationLineNaturalId(fr.ifremer.allegro.referential.location.LocationLine)

remoteLocationLineNaturalIdToEntity

public void remoteLocationLineNaturalIdToEntity(RemoteLocationLineNaturalId source,
                                                LocationLine target,
                                                boolean copyIfNull)
Description copied from interface: LocationLineDao
Copies the fields of RemoteLocationLineNaturalId to the specified entity.

Specified by:
remoteLocationLineNaturalIdToEntity in interface LocationLineDao
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.location.LocationLineDao#remoteLocationLineNaturalIdToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationLineNaturalId, fr.ifremer.allegro.referential.location.LocationLine)

toClusterLocationLineCollection

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

Specified by:
toClusterLocationLineCollection in interface LocationLineDao
See Also:
LocationLineDao.toClusterLocationLineCollection(java.util.Collection)

toClusterLocationLineArray

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

Specified by:
toClusterLocationLineArray in interface LocationLineDao
See Also:
LocationLineDao.toClusterLocationLineArray(java.util.Collection)

toClusterLocationLine

protected ClusterLocationLine toClusterLocationLine(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 LocationLineDaoImpl class if you intend to use reporting queries.

See Also:
LocationLineDao.toClusterLocationLine(fr.ifremer.allegro.referential.location.LocationLine)

clusterLocationLineToEntityCollection

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

Specified by:
clusterLocationLineToEntityCollection in interface LocationLineDao
See Also:
LocationLineDao.clusterLocationLineToEntityCollection(java.util.Collection)

toClusterLocationLine

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

toClusterLocationLine

public ClusterLocationLine toClusterLocationLine(LocationLine entity)
Description copied from interface: LocationLineDao
Converts this DAO's entity to an object of type ClusterLocationLine.

Specified by:
toClusterLocationLine in interface LocationLineDao
See Also:
LocationLineDao.toClusterLocationLine(fr.ifremer.allegro.referential.location.LocationLine)

clusterLocationLineToEntity

public void clusterLocationLineToEntity(ClusterLocationLine source,
                                        LocationLine target,
                                        boolean copyIfNull)
Description copied from interface: LocationLineDao
Copies the fields of ClusterLocationLine to the specified entity.

Specified by:
clusterLocationLineToEntity in interface LocationLineDao
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.location.LocationLineDao#clusterLocationLineToEntity(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLine, fr.ifremer.allegro.referential.location.LocationLine)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.