fr.ifremer.allegro.referential.gear
Class GearClassificationDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.gear.GearClassificationDaoBase
All Implemented Interfaces:
GearClassificationDao
Direct Known Subclasses:
GearClassificationDaoImpl

public abstract class GearClassificationDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements GearClassificationDao

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

See Also:
GearClassification

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.gear.GearClassificationDao
TRANSFORM_CLUSTERGEARCLASSIFICATION, TRANSFORM_NONE, TRANSFORM_REMOTEGEARCLASSIFICATIONFULLVO, TRANSFORM_REMOTEGEARCLASSIFICATIONNATURALID
 
Constructor Summary
GearClassificationDaoBase()
           
 
Method Summary
 void clusterGearClassificationToEntity(ClusterGearClassification source, GearClassification target, boolean copyIfNull)
          Copies the fields of ClusterGearClassification to the specified entity.
 void clusterGearClassificationToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterGearClassification to this DAO's entity.
 GearClassification create(java.lang.Boolean isAggregation, java.lang.String name)
           Creates a new fr.ifremer.allegro.referential.gear.GearClassification instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.gear.GearClassification and adds from the passed in entities collection
 GearClassification create(GearClassification gearClassification)
          Creates an instance of fr.ifremer.allegro.referential.gear.GearClassification and adds it to the persistent store.
 java.lang.Object create(int transform, java.lang.Boolean isAggregation, java.lang.String name)
           Does the same thing as GearClassificationDao.create(java.lang.Boolean,java.lang.String) with an additional flag called transform.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as GearClassificationDao.create(fr.ifremer.allegro.referential.gear.GearClassification) with an additional flag called transform.
 java.lang.Object create(int transform, GearClassification gearClassification)
           Does the same thing as GearClassificationDao.create(fr.ifremer.allegro.referential.gear.GearClassification) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.lang.Boolean isAggregation, java.sql.Timestamp updateDate, java.util.Collection gears, java.util.Collection associatedGearClassifications)
           Does the same thing as GearClassificationDao.create(java.lang.String,java.lang.String,java.lang.Boolean,java.sql.Timestamp,java.util.Collection,java.util.Collection) with an additional flag called transform.
 GearClassification create(java.lang.String name, java.lang.String description, java.lang.Boolean isAggregation, java.sql.Timestamp updateDate, java.util.Collection gears, java.util.Collection associatedGearClassifications)
           Creates a new fr.ifremer.allegro.referential.gear.GearClassification instance from all attributes and properties and adds it to the persistent store.
 GearClassification createFromClusterGearClassification(ClusterGearClassification clusterGearClassification)
           
 GearClassification findGearClassificationById(java.lang.Integer id)
           
 java.lang.Object findGearClassificationById(int transform, java.lang.Integer id)
           Does the same thing as GearClassificationDao.findGearClassificationById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findGearClassificationById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearClassificationDao.findGearClassificationById(int, java.lang.Integer) with an additional argument called queryString.
 GearClassification findGearClassificationById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearClassificationDao.findGearClassificationById(java.lang.Integer) with an additional argument called queryString.
 GearClassification findGearClassificationByNaturalId(java.lang.Integer id)
           
 java.lang.Object findGearClassificationByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as GearClassificationDao.findGearClassificationByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findGearClassificationByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearClassificationDao.findGearClassificationByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 GearClassification findGearClassificationByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearClassificationDao.findGearClassificationByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterGearClassification[] getAllClusterGearClassificationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllGearClassification()
           
 java.util.Collection getAllGearClassification(int transform)
           Does the same thing as GearClassificationDao.getAllGearClassification() with an additional flag called transform.
 java.util.Collection getAllGearClassification(int pageNumber, int pageSize)
           Does the same thing as GearClassificationDao.getAllGearClassification() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassification(int transform, int pageNumber, int pageSize)
           Does the same thing as GearClassificationDao.getAllGearClassification(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassification(int transform, java.lang.String queryString)
           Does the same thing as GearClassificationDao.getAllGearClassification(int) with an additional argument called queryString.
 java.util.Collection getAllGearClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as GearClassificationDao.getAllGearClassification(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassification(java.lang.String queryString)
           Does the same thing as GearClassificationDao.getAllGearClassification() with an additional argument called queryString.
 java.util.Collection getAllGearClassification(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as GearClassificationDao.getAllGearClassification(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassificationSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassificationSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassificationSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassificationSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllGearClassificationSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllGearClassificationSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearClassificationSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllGearClassificationSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  GearClassificationAssociationDao getGearClassificationAssociationDao()
          Gets the reference to gearClassificationAssociationDao.
protected  GearDao getGearDao()
          Gets the reference to gearDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected abstract  GearClassification handleCreateFromClusterGearClassification(ClusterGearClassification clusterGearClassification)
          Performs the core logic for createFromClusterGearClassification(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGearClassification)
protected abstract  ClusterGearClassification[] handleGetAllClusterGearClassificationSinceDateSynchro(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 getAllClusterGearClassificationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 GearClassification load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.gear.GearClassification from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as GearClassificationDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type GearClassification.
 java.util.Collection loadAll(int transform)
           Does the same thing as GearClassificationDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as GearClassificationDao.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 GearClassificationDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteGearClassificationFullVOToEntity(RemoteGearClassificationFullVO source, GearClassification target, boolean copyIfNull)
          Copies the fields of RemoteGearClassificationFullVO to the specified entity.
 void remoteGearClassificationFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteGearClassificationFullVO to this DAO's entity.
 void remoteGearClassificationNaturalIdToEntity(RemoteGearClassificationNaturalId source, GearClassification target, boolean copyIfNull)
          Copies the fields of RemoteGearClassificationNaturalId to the specified entity.
 void remoteGearClassificationNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteGearClassificationNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(GearClassification gearClassification)
          Removes the instance of fr.ifremer.allegro.referential.gear.GearClassification from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.gear.GearClassification having the given identifier 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 GearClassificationDao.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 setGearClassificationAssociationDao(GearClassificationAssociationDao gearClassificationAssociationDao)
          Sets the reference to gearClassificationAssociationDao.
 void setGearDao(GearDao gearDao)
          Sets the reference to gearDao.
 ClusterGearClassification toClusterGearClassification(GearClassification entity)
          Converts this DAO's entity to an object of type ClusterGearClassification.
 void toClusterGearClassification(GearClassification source, ClusterGearClassification target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterGearClassification toClusterGearClassification(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterGearClassification[] toClusterGearClassificationArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterGearClassification.
 void toClusterGearClassificationCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterGearClassification.
protected  GearClassification toEntity(java.lang.Object[] row)
           
 RemoteGearClassificationFullVO toRemoteGearClassificationFullVO(GearClassification entity)
          Converts this DAO's entity to an object of type RemoteGearClassificationFullVO.
 void toRemoteGearClassificationFullVO(GearClassification source, RemoteGearClassificationFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteGearClassificationFullVO toRemoteGearClassificationFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteGearClassificationFullVO[] toRemoteGearClassificationFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteGearClassificationFullVO.
 void toRemoteGearClassificationFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteGearClassificationFullVO.
 RemoteGearClassificationNaturalId toRemoteGearClassificationNaturalId(GearClassification entity)
          Converts this DAO's entity to an object of type RemoteGearClassificationNaturalId.
 void toRemoteGearClassificationNaturalId(GearClassification source, RemoteGearClassificationNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteGearClassificationNaturalId toRemoteGearClassificationNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteGearClassificationNaturalId[] toRemoteGearClassificationNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteGearClassificationNaturalId.
 void toRemoteGearClassificationNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteGearClassificationNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.gear.GearClassification) method.
protected  java.lang.Object transformEntity(int transform, GearClassification 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.gear.GearClassificationDao, please note that the GearClassificationDao.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(GearClassification gearClassification)
          Updates the gearClassification 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.gear.GearClassificationDao
clusterGearClassificationToEntity, remoteGearClassificationFullVOToEntity, remoteGearClassificationNaturalIdToEntity
 

Constructor Detail

GearClassificationDaoBase

public GearClassificationDaoBase()
Method Detail

setGearDao

public void setGearDao(GearDao gearDao)
Sets the reference to gearDao.


getGearDao

protected GearDao getGearDao()
Gets the reference to gearDao.


setGearClassificationAssociationDao

public void setGearClassificationAssociationDao(GearClassificationAssociationDao gearClassificationAssociationDao)
Sets the reference to gearClassificationAssociationDao.


getGearClassificationAssociationDao

protected GearClassificationAssociationDao getGearClassificationAssociationDao()
Gets the reference to gearClassificationAssociationDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public GearClassification create(GearClassification gearClassification)
Description copied from interface: GearClassificationDao
Creates an instance of fr.ifremer.allegro.referential.gear.GearClassification and adds it to the persistent store.

Specified by:
create in interface GearClassificationDao
See Also:
GearClassificationDao.create(fr.ifremer.allegro.referential.gear.GearClassification)

create

public java.lang.Object create(int transform,
                               GearClassification gearClassification)
Description copied from interface: GearClassificationDao

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

create

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

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

create

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

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

create

public GearClassification create(java.lang.String name,
                                 java.lang.String description,
                                 java.lang.Boolean isAggregation,
                                 java.sql.Timestamp updateDate,
                                 java.util.Collection gears,
                                 java.util.Collection associatedGearClassifications)
Description copied from interface: GearClassificationDao

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

Specified by:
create in interface GearClassificationDao
See Also:
GearClassificationDao.create(java.lang.String,java.lang.String,java.lang.Boolean,java.sql.Timestamp,java.util.Collection,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.Boolean isAggregation,
                               java.sql.Timestamp updateDate,
                               java.util.Collection gears,
                               java.util.Collection associatedGearClassifications)
Description copied from interface: GearClassificationDao

Does the same thing as GearClassificationDao.create(java.lang.String,java.lang.String,java.lang.Boolean,java.sql.Timestamp,java.util.Collection,java.util.Collection) 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 GearClassificationDao
See Also:
GearClassificationDao.create(int, java.lang.String,java.lang.String,java.lang.Boolean,java.sql.Timestamp,java.util.Collection,java.util.Collection)

create

public GearClassification create(java.lang.Boolean isAggregation,
                                 java.lang.String name)
Description copied from interface: GearClassificationDao

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

Specified by:
create in interface GearClassificationDao
See Also:
GearClassificationDao.create(java.lang.Boolean,java.lang.String)

create

public java.lang.Object create(int transform,
                               java.lang.Boolean isAggregation,
                               java.lang.String name)
Description copied from interface: GearClassificationDao

Does the same thing as GearClassificationDao.create(java.lang.Boolean,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 GearClassificationDao
See Also:
GearClassificationDao.create(int, java.lang.Boolean,java.lang.String)

update

public void update(GearClassification gearClassification)
Description copied from interface: GearClassificationDao
Updates the gearClassification instance in the persistent store.

Specified by:
update in interface GearClassificationDao
See Also:
GearClassificationDao.update(fr.ifremer.allegro.referential.gear.GearClassification)

update

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

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

remove

public void remove(GearClassification gearClassification)
Description copied from interface: GearClassificationDao
Removes the instance of fr.ifremer.allegro.referential.gear.GearClassification from the persistent store.

Specified by:
remove in interface GearClassificationDao
See Also:
GearClassificationDao.remove(fr.ifremer.allegro.referential.gear.GearClassification)

remove

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

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

remove

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

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

getAllGearClassification

public java.util.Collection getAllGearClassification()
Specified by:
getAllGearClassification in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassification()

getAllGearClassification

public java.util.Collection getAllGearClassification(int transform)
Description copied from interface: GearClassificationDao

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

getAllGearClassification

public java.util.Collection getAllGearClassification(java.lang.String queryString)
Description copied from interface: GearClassificationDao

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

Specified by:
getAllGearClassification in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassification(java.lang.String)

getAllGearClassification

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

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

getAllGearClassification

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

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

getAllGearClassification

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

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

Specified by:
getAllGearClassification in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassification(int, String)

getAllGearClassification

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

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

getAllGearClassification

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

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

findGearClassificationById

public GearClassification findGearClassificationById(java.lang.Integer id)
Specified by:
findGearClassificationById in interface GearClassificationDao
See Also:
GearClassificationDao.findGearClassificationById(java.lang.Integer)

findGearClassificationById

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

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

findGearClassificationById

public GearClassification findGearClassificationById(java.lang.String queryString,
                                                     java.lang.Integer id)
Description copied from interface: GearClassificationDao

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

Specified by:
findGearClassificationById in interface GearClassificationDao
See Also:
GearClassificationDao.findGearClassificationById(java.lang.String, java.lang.Integer)

findGearClassificationById

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

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

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

findGearClassificationByNaturalId

public GearClassification findGearClassificationByNaturalId(java.lang.Integer id)
Specified by:
findGearClassificationByNaturalId in interface GearClassificationDao
See Also:
GearClassificationDao.findGearClassificationByNaturalId(java.lang.Integer)

findGearClassificationByNaturalId

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

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

findGearClassificationByNaturalId

public GearClassification findGearClassificationByNaturalId(java.lang.String queryString,
                                                            java.lang.Integer id)
Description copied from interface: GearClassificationDao

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

Specified by:
findGearClassificationByNaturalId in interface GearClassificationDao
See Also:
GearClassificationDao.findGearClassificationByNaturalId(java.lang.String, java.lang.Integer)

findGearClassificationByNaturalId

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

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

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

getAllGearClassificationSinceDateSynchro

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

getAllGearClassificationSinceDateSynchro

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

Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(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:
getAllGearClassificationSinceDateSynchro in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassificationSinceDateSynchro(int, java.sql.Timestamp)

getAllGearClassificationSinceDateSynchro

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

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

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

getAllGearClassificationSinceDateSynchro

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

Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(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:
getAllGearClassificationSinceDateSynchro in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassificationSinceDateSynchro(int, int, java.sql.Timestamp)

getAllGearClassificationSinceDateSynchro

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

Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(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:
getAllGearClassificationSinceDateSynchro in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassificationSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllGearClassificationSinceDateSynchro

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

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

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

getAllGearClassificationSinceDateSynchro

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

Does the same thing as GearClassificationDao.getAllGearClassificationSinceDateSynchro(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:
getAllGearClassificationSinceDateSynchro in interface GearClassificationDao
See Also:
GearClassificationDao.getAllGearClassificationSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllGearClassificationSinceDateSynchro

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

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

createFromClusterGearClassification

public GearClassification createFromClusterGearClassification(ClusterGearClassification clusterGearClassification)
Specified by:
createFromClusterGearClassification in interface GearClassificationDao
See Also:
GearClassificationDao.createFromClusterGearClassification(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGearClassification)

handleCreateFromClusterGearClassification

protected abstract GearClassification handleCreateFromClusterGearClassification(ClusterGearClassification clusterGearClassification)
                                                                         throws java.lang.Exception
Performs the core logic for createFromClusterGearClassification(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGearClassification)

Throws:
java.lang.Exception

getAllClusterGearClassificationSinceDateSynchro

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

handleGetAllClusterGearClassificationSinceDateSynchro

protected abstract ClusterGearClassification[] handleGetAllClusterGearClassificationSinceDateSynchro(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 getAllClusterGearClassificationSinceDateSynchro(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,
                                           GearClassification 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.gear.GearClassificationDao, please note that the GearClassificationDao.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 GearClassificationDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteGearClassificationFullVOCollection

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

Specified by:
toRemoteGearClassificationFullVOCollection in interface GearClassificationDao
See Also:
GearClassificationDao.toRemoteGearClassificationFullVOCollection(java.util.Collection)

toRemoteGearClassificationFullVOArray

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

Specified by:
toRemoteGearClassificationFullVOArray in interface GearClassificationDao
See Also:
GearClassificationDao.toRemoteGearClassificationFullVOArray(java.util.Collection)

toRemoteGearClassificationFullVO

protected RemoteGearClassificationFullVO toRemoteGearClassificationFullVO(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 GearClassificationDaoImpl class if you intend to use reporting queries.

See Also:
GearClassificationDao.toRemoteGearClassificationFullVO(fr.ifremer.allegro.referential.gear.GearClassification)

remoteGearClassificationFullVOToEntityCollection

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

Specified by:
remoteGearClassificationFullVOToEntityCollection in interface GearClassificationDao
See Also:
GearClassificationDao.remoteGearClassificationFullVOToEntityCollection(java.util.Collection)

toRemoteGearClassificationFullVO

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

toRemoteGearClassificationFullVO

public RemoteGearClassificationFullVO toRemoteGearClassificationFullVO(GearClassification entity)
Description copied from interface: GearClassificationDao
Converts this DAO's entity to an object of type RemoteGearClassificationFullVO.

Specified by:
toRemoteGearClassificationFullVO in interface GearClassificationDao
See Also:
GearClassificationDao.toRemoteGearClassificationFullVO(fr.ifremer.allegro.referential.gear.GearClassification)

remoteGearClassificationFullVOToEntity

public void remoteGearClassificationFullVOToEntity(RemoteGearClassificationFullVO source,
                                                   GearClassification target,
                                                   boolean copyIfNull)
Description copied from interface: GearClassificationDao
Copies the fields of RemoteGearClassificationFullVO to the specified entity.

Specified by:
remoteGearClassificationFullVOToEntity in interface GearClassificationDao
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.gear.GearClassificationDao#remoteGearClassificationFullVOToEntity(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearClassificationFullVO, fr.ifremer.allegro.referential.gear.GearClassification)

toRemoteGearClassificationNaturalIdCollection

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

Specified by:
toRemoteGearClassificationNaturalIdCollection in interface GearClassificationDao
See Also:
GearClassificationDao.toRemoteGearClassificationNaturalIdCollection(java.util.Collection)

toRemoteGearClassificationNaturalIdArray

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

Specified by:
toRemoteGearClassificationNaturalIdArray in interface GearClassificationDao
See Also:
GearClassificationDao.toRemoteGearClassificationNaturalIdArray(java.util.Collection)

toRemoteGearClassificationNaturalId

protected RemoteGearClassificationNaturalId toRemoteGearClassificationNaturalId(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 GearClassificationDaoImpl class if you intend to use reporting queries.

See Also:
GearClassificationDao.toRemoteGearClassificationNaturalId(fr.ifremer.allegro.referential.gear.GearClassification)

remoteGearClassificationNaturalIdToEntityCollection

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

Specified by:
remoteGearClassificationNaturalIdToEntityCollection in interface GearClassificationDao
See Also:
GearClassificationDao.remoteGearClassificationNaturalIdToEntityCollection(java.util.Collection)

toRemoteGearClassificationNaturalId

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

toRemoteGearClassificationNaturalId

public RemoteGearClassificationNaturalId toRemoteGearClassificationNaturalId(GearClassification entity)
Description copied from interface: GearClassificationDao
Converts this DAO's entity to an object of type RemoteGearClassificationNaturalId.

Specified by:
toRemoteGearClassificationNaturalId in interface GearClassificationDao
See Also:
GearClassificationDao.toRemoteGearClassificationNaturalId(fr.ifremer.allegro.referential.gear.GearClassification)

remoteGearClassificationNaturalIdToEntity

public void remoteGearClassificationNaturalIdToEntity(RemoteGearClassificationNaturalId source,
                                                      GearClassification target,
                                                      boolean copyIfNull)
Description copied from interface: GearClassificationDao
Copies the fields of RemoteGearClassificationNaturalId to the specified entity.

Specified by:
remoteGearClassificationNaturalIdToEntity in interface GearClassificationDao
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.gear.GearClassificationDao#remoteGearClassificationNaturalIdToEntity(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearClassificationNaturalId, fr.ifremer.allegro.referential.gear.GearClassification)

toClusterGearClassificationCollection

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

Specified by:
toClusterGearClassificationCollection in interface GearClassificationDao
See Also:
GearClassificationDao.toClusterGearClassificationCollection(java.util.Collection)

toClusterGearClassificationArray

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

Specified by:
toClusterGearClassificationArray in interface GearClassificationDao
See Also:
GearClassificationDao.toClusterGearClassificationArray(java.util.Collection)

toClusterGearClassification

protected ClusterGearClassification toClusterGearClassification(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 GearClassificationDaoImpl class if you intend to use reporting queries.

See Also:
GearClassificationDao.toClusterGearClassification(fr.ifremer.allegro.referential.gear.GearClassification)

clusterGearClassificationToEntityCollection

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

Specified by:
clusterGearClassificationToEntityCollection in interface GearClassificationDao
See Also:
GearClassificationDao.clusterGearClassificationToEntityCollection(java.util.Collection)

toClusterGearClassification

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

toClusterGearClassification

public ClusterGearClassification toClusterGearClassification(GearClassification entity)
Description copied from interface: GearClassificationDao
Converts this DAO's entity to an object of type ClusterGearClassification.

Specified by:
toClusterGearClassification in interface GearClassificationDao
See Also:
GearClassificationDao.toClusterGearClassification(fr.ifremer.allegro.referential.gear.GearClassification)

clusterGearClassificationToEntity

public void clusterGearClassificationToEntity(ClusterGearClassification source,
                                              GearClassification target,
                                              boolean copyIfNull)
Description copied from interface: GearClassificationDao
Copies the fields of ClusterGearClassification to the specified entity.

Specified by:
clusterGearClassificationToEntity in interface GearClassificationDao
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.gear.GearClassificationDao#clusterGearClassificationToEntity(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGearClassification, fr.ifremer.allegro.referential.gear.GearClassification)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.