fr.ifremer.allegro.referential.location
Class LocationLevelDaoBase

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

public abstract class LocationLevelDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements LocationLevelDao

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

See Also:
LocationLevel

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.location.LocationLevelDao
TRANSFORM_CLUSTERLOCATIONLEVEL, TRANSFORM_NONE, TRANSFORM_REMOTELOCATIONLEVELFULLVO, TRANSFORM_REMOTELOCATIONLEVELNATURALID
 
Constructor Summary
LocationLevelDaoBase()
           
 
Method Summary
 void clusterLocationLevelToEntity(ClusterLocationLevel source, LocationLevel target, boolean copyIfNull)
          Copies the fields of ClusterLocationLevel to the specified entity.
 void clusterLocationLevelToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterLocationLevel to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.location.LocationLevel and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as LocationLevelDao.create(fr.ifremer.allegro.referential.location.LocationLevel) with an additional flag called transform.
 java.lang.Object create(int transform, LocationClassification locationClassification, java.lang.String name)
           Does the same thing as LocationLevelDao.create(fr.ifremer.allegro.referential.location.LocationClassification,java.lang.String) with an additional flag called transform.
 java.lang.Object create(int transform, LocationLevel locationLevel)
           Does the same thing as LocationLevelDao.create(fr.ifremer.allegro.referential.location.LocationLevel) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection locationLevels, LocationLevel parentLocationLevel, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification) with an additional flag called transform.
 LocationLevel create(LocationClassification locationClassification, java.lang.String name)
           Creates a new fr.ifremer.allegro.referential.location.LocationLevel instance from only required properties (attributes and association ends) and adds it to the persistent store.
 LocationLevel create(LocationLevel locationLevel)
          Creates an instance of fr.ifremer.allegro.referential.location.LocationLevel and adds it to the persistent store.
 LocationLevel create(java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection locationLevels, LocationLevel parentLocationLevel, LocationClassification locationClassification)
           Creates a new fr.ifremer.allegro.referential.location.LocationLevel instance from all attributes and properties and adds it to the persistent store.
 LocationLevel createFromClusterLocationLevel(ClusterLocationLevel clusterLocationLevel)
           
 LocationLevel findLocationLevelById(java.lang.Integer id)
           
 java.lang.Object findLocationLevelById(int transform, java.lang.Integer id)
           Does the same thing as LocationLevelDao.findLocationLevelById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findLocationLevelById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLevelDao.findLocationLevelById(int, java.lang.Integer) with an additional argument called queryString.
 LocationLevel findLocationLevelById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLevelDao.findLocationLevelById(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationLevelByLocationClassification(int transform, int pageNumber, int pageSize, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByLocationClassification(int pageNumber, int pageSize, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByLocationClassification(int transform, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification) with an additional flag called transform.
 java.util.Collection findLocationLevelByLocationClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(int, String, fr.ifremer.allegro.referential.location.LocationClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByLocationClassification(int transform, java.lang.String queryString, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(int, fr.ifremer.allegro.referential.location.LocationClassification) with an additional argument called queryString.
 java.util.Collection findLocationLevelByLocationClassification(LocationClassification locationClassification)
           
 java.util.Collection findLocationLevelByLocationClassification(java.lang.String queryString, int pageNumber, int pageSize, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(String, fr.ifremer.allegro.referential.location.LocationClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByLocationClassification(java.lang.String queryString, LocationClassification locationClassification)
           Does the same thing as LocationLevelDao.findLocationLevelByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification) with an additional argument called queryString.
 LocationLevel findLocationLevelByNaturalId(java.lang.Integer id)
           
 java.lang.Object findLocationLevelByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as LocationLevelDao.findLocationLevelByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findLocationLevelByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLevelDao.findLocationLevelByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 LocationLevel findLocationLevelByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as LocationLevelDao.findLocationLevelByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findLocationLevelByParentLocationLevel(int transform, int pageNumber, int pageSize, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByParentLocationLevel(int pageNumber, int pageSize, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByParentLocationLevel(int transform, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel) with an additional flag called transform.
 java.util.Collection findLocationLevelByParentLocationLevel(int transform, java.lang.String queryString, int pageNumber, int pageSize, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(int, String, fr.ifremer.allegro.referential.location.LocationLevel) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByParentLocationLevel(int transform, java.lang.String queryString, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(int, fr.ifremer.allegro.referential.location.LocationLevel) with an additional argument called queryString.
 java.util.Collection findLocationLevelByParentLocationLevel(LocationLevel parentLocationLevel)
           
 java.util.Collection findLocationLevelByParentLocationLevel(java.lang.String queryString, int pageNumber, int pageSize, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(String, fr.ifremer.allegro.referential.location.LocationLevel) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findLocationLevelByParentLocationLevel(java.lang.String queryString, LocationLevel parentLocationLevel)
           Does the same thing as LocationLevelDao.findLocationLevelByParentLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel) with an additional argument called queryString.
 ClusterLocationLevel[] getAllClusterLocationLevelSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllLocationLevel()
           
 java.util.Collection getAllLocationLevel(int transform)
           Does the same thing as LocationLevelDao.getAllLocationLevel() with an additional flag called transform.
 java.util.Collection getAllLocationLevel(int pageNumber, int pageSize)
           Does the same thing as LocationLevelDao.getAllLocationLevel() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevel(int transform, int pageNumber, int pageSize)
           Does the same thing as LocationLevelDao.getAllLocationLevel(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevel(int transform, java.lang.String queryString)
           Does the same thing as LocationLevelDao.getAllLocationLevel(int) with an additional argument called queryString.
 java.util.Collection getAllLocationLevel(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as LocationLevelDao.getAllLocationLevel(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevel(java.lang.String queryString)
           Does the same thing as LocationLevelDao.getAllLocationLevel() with an additional argument called queryString.
 java.util.Collection getAllLocationLevel(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as LocationLevelDao.getAllLocationLevel(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevelSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevelSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevelSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevelSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllLocationLevelSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllLocationLevelSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllLocationLevelSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllLocationLevelSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  LocationClassificationDao getLocationClassificationDao()
          Gets the reference to locationClassificationDao.
protected  LocationLevelDao getLocationLevelDao()
          Gets the reference to locationLevelDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected abstract  LocationLevel handleCreateFromClusterLocationLevel(ClusterLocationLevel clusterLocationLevel)
          Performs the core logic for createFromClusterLocationLevel(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLevel)
protected abstract  ClusterLocationLevel[] handleGetAllClusterLocationLevelSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterLocationLevelSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 LocationLevel load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.location.LocationLevel from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as LocationLevelDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type LocationLevel.
 java.util.Collection loadAll(int transform)
           Does the same thing as LocationLevelDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as LocationLevelDao.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 LocationLevelDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteLocationLevelFullVOToEntity(RemoteLocationLevelFullVO source, LocationLevel target, boolean copyIfNull)
          Copies the fields of RemoteLocationLevelFullVO to the specified entity.
 void remoteLocationLevelFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteLocationLevelFullVO to this DAO's entity.
 void remoteLocationLevelNaturalIdToEntity(RemoteLocationLevelNaturalId source, LocationLevel target, boolean copyIfNull)
          Copies the fields of RemoteLocationLevelNaturalId to the specified entity.
 void remoteLocationLevelNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteLocationLevelNaturalId 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.LocationLevel having the given identifier from the persistent store.
 void remove(LocationLevel locationLevel)
          Removes the instance of fr.ifremer.allegro.referential.location.LocationLevel 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 LocationLevelDao.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 setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
          Sets the reference to locationClassificationDao.
 void setLocationLevelDao(LocationLevelDao locationLevelDao)
          Sets the reference to locationLevelDao.
 ClusterLocationLevel toClusterLocationLevel(LocationLevel entity)
          Converts this DAO's entity to an object of type ClusterLocationLevel.
 void toClusterLocationLevel(LocationLevel source, ClusterLocationLevel target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterLocationLevel toClusterLocationLevel(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterLocationLevel[] toClusterLocationLevelArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterLocationLevel.
 void toClusterLocationLevelCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterLocationLevel.
protected  LocationLevel toEntity(java.lang.Object[] row)
           
 RemoteLocationLevelFullVO toRemoteLocationLevelFullVO(LocationLevel entity)
          Converts this DAO's entity to an object of type RemoteLocationLevelFullVO.
 void toRemoteLocationLevelFullVO(LocationLevel source, RemoteLocationLevelFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteLocationLevelFullVO toRemoteLocationLevelFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteLocationLevelFullVO[] toRemoteLocationLevelFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteLocationLevelFullVO.
 void toRemoteLocationLevelFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteLocationLevelFullVO.
 RemoteLocationLevelNaturalId toRemoteLocationLevelNaturalId(LocationLevel entity)
          Converts this DAO's entity to an object of type RemoteLocationLevelNaturalId.
 void toRemoteLocationLevelNaturalId(LocationLevel source, RemoteLocationLevelNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteLocationLevelNaturalId toRemoteLocationLevelNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteLocationLevelNaturalId[] toRemoteLocationLevelNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteLocationLevelNaturalId.
 void toRemoteLocationLevelNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteLocationLevelNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.location.LocationLevel) method.
protected  java.lang.Object transformEntity(int transform, LocationLevel 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.LocationLevelDao, please note that the LocationLevelDao.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(LocationLevel locationLevel)
          Updates the locationLevel 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.LocationLevelDao
clusterLocationLevelToEntity, remoteLocationLevelFullVOToEntity, remoteLocationLevelNaturalIdToEntity
 

Constructor Detail

LocationLevelDaoBase

public LocationLevelDaoBase()
Method Detail

setLocationLevelDao

public void setLocationLevelDao(LocationLevelDao locationLevelDao)
Sets the reference to locationLevelDao.


getLocationLevelDao

protected LocationLevelDao getLocationLevelDao()
Gets the reference to locationLevelDao.


setLocationClassificationDao

public void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
Sets the reference to locationClassificationDao.


getLocationClassificationDao

protected LocationClassificationDao getLocationClassificationDao()
Gets the reference to locationClassificationDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               LocationLevel locationLevel)
Description copied from interface: LocationLevelDao

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

create

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

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

create

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

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

create

public LocationLevel create(java.lang.String name,
                            java.sql.Timestamp updateDate,
                            java.util.Collection locationLevels,
                            LocationLevel parentLocationLevel,
                            LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

Specified by:
create in interface LocationLevelDao
See Also:
LocationLevelDao.create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.sql.Timestamp updateDate,
                               java.util.Collection locationLevels,
                               LocationLevel parentLocationLevel,
                               LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.create(java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification) 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 LocationLevelDao
See Also:
LocationLevelDao.create(int, java.lang.String,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.location.LocationLevel,fr.ifremer.allegro.referential.location.LocationClassification)

create

public LocationLevel create(LocationClassification locationClassification,
                            java.lang.String name)
Description copied from interface: LocationLevelDao

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

Specified by:
create in interface LocationLevelDao
See Also:
LocationLevelDao.create(fr.ifremer.allegro.referential.location.LocationClassification,java.lang.String)

create

public java.lang.Object create(int transform,
                               LocationClassification locationClassification,
                               java.lang.String name)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.create(fr.ifremer.allegro.referential.location.LocationClassification,java.lang.String) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOTWILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface LocationLevelDao
See Also:
LocationLevelDao.create(int, fr.ifremer.allegro.referential.location.LocationClassification,java.lang.String)

update

public void update(LocationLevel locationLevel)
Description copied from interface: LocationLevelDao
Updates the locationLevel instance in the persistent store.

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

update

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

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

remove

public void remove(LocationLevel locationLevel)
Description copied from interface: LocationLevelDao
Removes the instance of fr.ifremer.allegro.referential.location.LocationLevel from the persistent store.

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

remove

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

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

remove

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

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

getAllLocationLevel

public java.util.Collection getAllLocationLevel()
Specified by:
getAllLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.getAllLocationLevel()

getAllLocationLevel

public java.util.Collection getAllLocationLevel(int transform)
Description copied from interface: LocationLevelDao

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

getAllLocationLevel

public java.util.Collection getAllLocationLevel(java.lang.String queryString)
Description copied from interface: LocationLevelDao

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

Specified by:
getAllLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.getAllLocationLevel(java.lang.String)

getAllLocationLevel

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

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

getAllLocationLevel

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

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

getAllLocationLevel

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

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

Specified by:
getAllLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.getAllLocationLevel(int, String)

getAllLocationLevel

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

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

getAllLocationLevel

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

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

findLocationLevelById

public LocationLevel findLocationLevelById(java.lang.Integer id)
Specified by:
findLocationLevelById in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelById(java.lang.Integer)

findLocationLevelById

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

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

findLocationLevelById

public LocationLevel findLocationLevelById(java.lang.String queryString,
                                           java.lang.Integer id)
Description copied from interface: LocationLevelDao

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

Specified by:
findLocationLevelById in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelById(java.lang.String, java.lang.Integer)

findLocationLevelById

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

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

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

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(LocationLevel parentLocationLevel)
Specified by:
findLocationLevelByParentLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByParentLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(int transform,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(java.lang.String queryString,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

Specified by:
findLocationLevelByParentLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByParentLocationLevel(java.lang.String, fr.ifremer.allegro.referential.location.LocationLevel)

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(int pageNumber,
                                                                   int pageSize,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(java.lang.String queryString,
                                                                   int pageNumber,
                                                                   int pageSize,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(int transform,
                                                                   java.lang.String queryString,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

Specified by:
findLocationLevelByParentLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByParentLocationLevel(int, String, fr.ifremer.allegro.referential.location.LocationLevel)

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(int transform,
                                                                   int pageNumber,
                                                                   int pageSize,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

findLocationLevelByParentLocationLevel

public java.util.Collection findLocationLevelByParentLocationLevel(int transform,
                                                                   java.lang.String queryString,
                                                                   int pageNumber,
                                                                   int pageSize,
                                                                   LocationLevel parentLocationLevel)
Description copied from interface: LocationLevelDao

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

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(LocationClassification locationClassification)
Specified by:
findLocationLevelByLocationClassification in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByLocationClassification(fr.ifremer.allegro.referential.location.LocationClassification)

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(int transform,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(java.lang.String queryString,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

Specified by:
findLocationLevelByLocationClassification in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByLocationClassification(java.lang.String, fr.ifremer.allegro.referential.location.LocationClassification)

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(int pageNumber,
                                                                      int pageSize,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(java.lang.String queryString,
                                                                      int pageNumber,
                                                                      int pageSize,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(int transform,
                                                                      java.lang.String queryString,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

Specified by:
findLocationLevelByLocationClassification in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByLocationClassification(int, String, fr.ifremer.allegro.referential.location.LocationClassification)

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(int transform,
                                                                      int pageNumber,
                                                                      int pageSize,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

findLocationLevelByLocationClassification

public java.util.Collection findLocationLevelByLocationClassification(int transform,
                                                                      java.lang.String queryString,
                                                                      int pageNumber,
                                                                      int pageSize,
                                                                      LocationClassification locationClassification)
Description copied from interface: LocationLevelDao

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

findLocationLevelByNaturalId

public LocationLevel findLocationLevelByNaturalId(java.lang.Integer id)
Specified by:
findLocationLevelByNaturalId in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByNaturalId(java.lang.Integer)

findLocationLevelByNaturalId

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

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

findLocationLevelByNaturalId

public LocationLevel findLocationLevelByNaturalId(java.lang.String queryString,
                                                  java.lang.Integer id)
Description copied from interface: LocationLevelDao

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

Specified by:
findLocationLevelByNaturalId in interface LocationLevelDao
See Also:
LocationLevelDao.findLocationLevelByNaturalId(java.lang.String, java.lang.Integer)

findLocationLevelByNaturalId

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

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

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

getAllLocationLevelSinceDateSynchro

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

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(int transform,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

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

Specified by:
getAllLocationLevelSinceDateSynchro in interface LocationLevelDao
See Also:
LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, java.sql.Timestamp)

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(java.lang.String queryString,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in LocationLevelDao.getAllLocationLevelSinceDateSynchro(java.sql.Timestamp).

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

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(int pageNumber,
                                                                int pageSize,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllLocationLevelSinceDateSynchro in interface LocationLevelDao
See Also:
LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, int, java.sql.Timestamp)

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(java.lang.String queryString,
                                                                int pageNumber,
                                                                int pageSize,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(int transform,
                                                                java.lang.String queryString,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString. This queryString argument allows you to override the query string defined in LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, java.sql.Timestamp updateDate).

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

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(int transform,
                                                                int pageNumber,
                                                                int pageSize,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllLocationLevelSinceDateSynchro in interface LocationLevelDao
See Also:
LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllLocationLevelSinceDateSynchro

public java.util.Collection getAllLocationLevelSinceDateSynchro(int transform,
                                                                java.lang.String queryString,
                                                                int pageNumber,
                                                                int pageSize,
                                                                java.sql.Timestamp updateDate)
Description copied from interface: LocationLevelDao

Does the same thing as LocationLevelDao.getAllLocationLevelSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

createFromClusterLocationLevel

public LocationLevel createFromClusterLocationLevel(ClusterLocationLevel clusterLocationLevel)
Specified by:
createFromClusterLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.createFromClusterLocationLevel(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLevel)

handleCreateFromClusterLocationLevel

protected abstract LocationLevel handleCreateFromClusterLocationLevel(ClusterLocationLevel clusterLocationLevel)
                                                               throws java.lang.Exception
Performs the core logic for createFromClusterLocationLevel(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLevel)

Throws:
java.lang.Exception

getAllClusterLocationLevelSinceDateSynchro

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

handleGetAllClusterLocationLevelSinceDateSynchro

protected abstract ClusterLocationLevel[] handleGetAllClusterLocationLevelSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                                           java.lang.Integer userId,
                                                                                           java.lang.Integer[] registrationLocationIds,
                                                                                           java.lang.Integer pageNumber,
                                                                                           java.lang.Integer pageSize)
                                                                                    throws java.lang.Exception
Performs the core logic for getAllClusterLocationLevelSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteLocationLevelFullVOCollection

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

Specified by:
toRemoteLocationLevelFullVOCollection in interface LocationLevelDao
See Also:
LocationLevelDao.toRemoteLocationLevelFullVOCollection(java.util.Collection)

toRemoteLocationLevelFullVOArray

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

Specified by:
toRemoteLocationLevelFullVOArray in interface LocationLevelDao
See Also:
LocationLevelDao.toRemoteLocationLevelFullVOArray(java.util.Collection)

toRemoteLocationLevelFullVO

protected RemoteLocationLevelFullVO toRemoteLocationLevelFullVO(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 LocationLevelDaoImpl class if you intend to use reporting queries.

See Also:
LocationLevelDao.toRemoteLocationLevelFullVO(fr.ifremer.allegro.referential.location.LocationLevel)

remoteLocationLevelFullVOToEntityCollection

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

Specified by:
remoteLocationLevelFullVOToEntityCollection in interface LocationLevelDao
See Also:
LocationLevelDao.remoteLocationLevelFullVOToEntityCollection(java.util.Collection)

toRemoteLocationLevelFullVO

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

toRemoteLocationLevelFullVO

public RemoteLocationLevelFullVO toRemoteLocationLevelFullVO(LocationLevel entity)
Description copied from interface: LocationLevelDao
Converts this DAO's entity to an object of type RemoteLocationLevelFullVO.

Specified by:
toRemoteLocationLevelFullVO in interface LocationLevelDao
See Also:
LocationLevelDao.toRemoteLocationLevelFullVO(fr.ifremer.allegro.referential.location.LocationLevel)

remoteLocationLevelFullVOToEntity

public void remoteLocationLevelFullVOToEntity(RemoteLocationLevelFullVO source,
                                              LocationLevel target,
                                              boolean copyIfNull)
Description copied from interface: LocationLevelDao
Copies the fields of RemoteLocationLevelFullVO to the specified entity.

Specified by:
remoteLocationLevelFullVOToEntity in interface LocationLevelDao
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.LocationLevelDao#remoteLocationLevelFullVOToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationLevelFullVO, fr.ifremer.allegro.referential.location.LocationLevel)

toRemoteLocationLevelNaturalIdCollection

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

Specified by:
toRemoteLocationLevelNaturalIdCollection in interface LocationLevelDao
See Also:
LocationLevelDao.toRemoteLocationLevelNaturalIdCollection(java.util.Collection)

toRemoteLocationLevelNaturalIdArray

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

Specified by:
toRemoteLocationLevelNaturalIdArray in interface LocationLevelDao
See Also:
LocationLevelDao.toRemoteLocationLevelNaturalIdArray(java.util.Collection)

toRemoteLocationLevelNaturalId

protected RemoteLocationLevelNaturalId toRemoteLocationLevelNaturalId(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 LocationLevelDaoImpl class if you intend to use reporting queries.

See Also:
LocationLevelDao.toRemoteLocationLevelNaturalId(fr.ifremer.allegro.referential.location.LocationLevel)

remoteLocationLevelNaturalIdToEntityCollection

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

Specified by:
remoteLocationLevelNaturalIdToEntityCollection in interface LocationLevelDao
See Also:
LocationLevelDao.remoteLocationLevelNaturalIdToEntityCollection(java.util.Collection)

toRemoteLocationLevelNaturalId

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

toRemoteLocationLevelNaturalId

public RemoteLocationLevelNaturalId toRemoteLocationLevelNaturalId(LocationLevel entity)
Description copied from interface: LocationLevelDao
Converts this DAO's entity to an object of type RemoteLocationLevelNaturalId.

Specified by:
toRemoteLocationLevelNaturalId in interface LocationLevelDao
See Also:
LocationLevelDao.toRemoteLocationLevelNaturalId(fr.ifremer.allegro.referential.location.LocationLevel)

remoteLocationLevelNaturalIdToEntity

public void remoteLocationLevelNaturalIdToEntity(RemoteLocationLevelNaturalId source,
                                                 LocationLevel target,
                                                 boolean copyIfNull)
Description copied from interface: LocationLevelDao
Copies the fields of RemoteLocationLevelNaturalId to the specified entity.

Specified by:
remoteLocationLevelNaturalIdToEntity in interface LocationLevelDao
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.LocationLevelDao#remoteLocationLevelNaturalIdToEntity(fr.ifremer.allegro.referential.location.generic.vo.RemoteLocationLevelNaturalId, fr.ifremer.allegro.referential.location.LocationLevel)

toClusterLocationLevelCollection

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

Specified by:
toClusterLocationLevelCollection in interface LocationLevelDao
See Also:
LocationLevelDao.toClusterLocationLevelCollection(java.util.Collection)

toClusterLocationLevelArray

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

Specified by:
toClusterLocationLevelArray in interface LocationLevelDao
See Also:
LocationLevelDao.toClusterLocationLevelArray(java.util.Collection)

toClusterLocationLevel

protected ClusterLocationLevel toClusterLocationLevel(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 LocationLevelDaoImpl class if you intend to use reporting queries.

See Also:
LocationLevelDao.toClusterLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)

clusterLocationLevelToEntityCollection

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

Specified by:
clusterLocationLevelToEntityCollection in interface LocationLevelDao
See Also:
LocationLevelDao.clusterLocationLevelToEntityCollection(java.util.Collection)

toClusterLocationLevel

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

toClusterLocationLevel

public ClusterLocationLevel toClusterLocationLevel(LocationLevel entity)
Description copied from interface: LocationLevelDao
Converts this DAO's entity to an object of type ClusterLocationLevel.

Specified by:
toClusterLocationLevel in interface LocationLevelDao
See Also:
LocationLevelDao.toClusterLocationLevel(fr.ifremer.allegro.referential.location.LocationLevel)

clusterLocationLevelToEntity

public void clusterLocationLevelToEntity(ClusterLocationLevel source,
                                         LocationLevel target,
                                         boolean copyIfNull)
Description copied from interface: LocationLevelDao
Copies the fields of ClusterLocationLevel to the specified entity.

Specified by:
clusterLocationLevelToEntity in interface LocationLevelDao
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.LocationLevelDao#clusterLocationLevelToEntity(fr.ifremer.allegro.referential.location.generic.cluster.ClusterLocationLevel, fr.ifremer.allegro.referential.location.LocationLevel)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.