fr.ifremer.allegro.referential.gear
Class GearDaoBase

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

public abstract class GearDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements GearDao

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

See Also:
Gear

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.gear.GearDao
TRANSFORM_CLUSTERGEAR, TRANSFORM_NONE, TRANSFORM_REMOTEGEARFULLVO, TRANSFORM_REMOTEGEARNATURALID
 
Constructor Summary
GearDaoBase()
           
 
Method Summary
 void clusterGearToEntity(ClusterGear source, Gear target, boolean copyIfNull)
          Copies the fields of ClusterGear to the specified entity.
 void clusterGearToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterGear to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.gear.Gear and adds from the passed in entities collection
 Gear create(Gear gear)
          Creates an instance of fr.ifremer.allegro.referential.gear.Gear and adds it to the persistent store.
 Gear create(GearClassification gearClassification, java.lang.String label, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.gear.Gear instance from only required properties (attributes and association ends) and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as GearDao.create(fr.ifremer.allegro.referential.gear.Gear) with an additional flag called transform.
 java.lang.Object create(int transform, Gear gear)
           Does the same thing as GearDao.create(fr.ifremer.allegro.referential.gear.Gear) with an additional flag called transform.
 java.lang.Object create(int transform, GearClassification gearClassification, java.lang.String label, java.lang.String name, Status status)
           Does the same thing as GearDao.create(fr.ifremer.allegro.referential.gear.GearClassification,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String label, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, GearClassification gearClassification, java.util.Collection childGears, Gear parentGear, Status status, java.util.Collection associatedGears)
           Does the same thing as GearDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.referential.Status,java.util.Collection) with an additional flag called transform.
 Gear create(java.lang.String label, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate, GearClassification gearClassification, java.util.Collection childGears, Gear parentGear, Status status, java.util.Collection associatedGears)
           Creates a new fr.ifremer.allegro.referential.gear.Gear instance from all attributes and properties and adds it to the persistent store.
 Gear createFromClusterGear(ClusterGear clusterGear)
           
 java.util.Collection findGearByGearClassification(GearClassification gearClassification)
           
 java.util.Collection findGearByGearClassification(int transform, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional flag called transform.
 java.util.Collection findGearByGearClassification(int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByGearClassification(int transform, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByGearClassification(int transform, java.lang.String queryString, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString.
 java.util.Collection findGearByGearClassification(int transform, java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByGearClassification(java.lang.String queryString, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString.
 java.util.Collection findGearByGearClassification(java.lang.String queryString, int pageNumber, int pageSize, GearClassification gearClassification)
           Does the same thing as GearDao.findGearByGearClassification(String, fr.ifremer.allegro.referential.gear.GearClassification) with an additional two arguments called pageNumber and pageSize.
 Gear findGearById(java.lang.Integer id)
           
 java.lang.Object findGearById(int transform, java.lang.Integer id)
           Does the same thing as GearDao.findGearById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findGearById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearDao.findGearById(int, java.lang.Integer) with an additional argument called queryString.
 Gear findGearById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearDao.findGearById(java.lang.Integer) with an additional argument called queryString.
 Gear findGearByNaturalId(java.lang.Integer id)
           
 java.lang.Object findGearByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as GearDao.findGearByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findGearByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearDao.findGearByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Gear findGearByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as GearDao.findGearByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findGearByParentGear(Gear parentGear)
           
 java.util.Collection findGearByParentGear(int transform, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear) with an additional flag called transform.
 java.util.Collection findGearByParentGear(int pageNumber, int pageSize, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByParentGear(int transform, int pageNumber, int pageSize, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(int, fr.ifremer.allegro.referential.gear.Gear) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByParentGear(int transform, java.lang.String queryString, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(int, fr.ifremer.allegro.referential.gear.Gear) with an additional argument called queryString.
 java.util.Collection findGearByParentGear(int transform, java.lang.String queryString, int pageNumber, int pageSize, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(int, String, fr.ifremer.allegro.referential.gear.Gear) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByParentGear(java.lang.String queryString, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear) with an additional argument called queryString.
 java.util.Collection findGearByParentGear(java.lang.String queryString, int pageNumber, int pageSize, Gear parentGear)
           Does the same thing as GearDao.findGearByParentGear(String, fr.ifremer.allegro.referential.gear.Gear) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as GearDao.findGearByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByStatus(int transform, Status status)
           Does the same thing as GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findGearByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as GearDao.findGearByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as GearDao.findGearByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findGearByStatus(Status status)
           
 java.util.Collection findGearByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as GearDao.findGearByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findGearByStatus(java.lang.String queryString, Status status)
           Does the same thing as GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterGear[] getAllClusterGearSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllGear()
           
 java.util.Collection getAllGear(int transform)
           Does the same thing as GearDao.getAllGear() with an additional flag called transform.
 java.util.Collection getAllGear(int pageNumber, int pageSize)
           Does the same thing as GearDao.getAllGear() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGear(int transform, int pageNumber, int pageSize)
           Does the same thing as GearDao.getAllGear(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGear(int transform, java.lang.String queryString)
           Does the same thing as GearDao.getAllGear(int) with an additional argument called queryString.
 java.util.Collection getAllGear(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as GearDao.getAllGear(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGear(java.lang.String queryString)
           Does the same thing as GearDao.getAllGear() with an additional argument called queryString.
 java.util.Collection getAllGear(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as GearDao.getAllGear(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllGearSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllGearSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllGearSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as GearDao.getAllGearSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllGearSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  GearAssociationDao getGearAssociationDao()
          Gets the reference to gearAssociationDao.
protected  GearClassificationDao getGearClassificationDao()
          Gets the reference to gearClassificationDao.
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  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  Gear handleCreateFromClusterGear(ClusterGear clusterGear)
          Performs the core logic for createFromClusterGear(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear)
protected abstract  ClusterGear[] handleGetAllClusterGearSinceDateSynchro(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 getAllClusterGearSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Gear load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.gear.Gear from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as GearDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Gear.
 java.util.Collection loadAll(int transform)
           Does the same thing as GearDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as GearDao.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 GearDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteGearFullVOToEntity(RemoteGearFullVO source, Gear target, boolean copyIfNull)
          Copies the fields of RemoteGearFullVO to the specified entity.
 void remoteGearFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteGearFullVO to this DAO's entity.
 void remoteGearNaturalIdToEntity(RemoteGearNaturalId source, Gear target, boolean copyIfNull)
          Copies the fields of RemoteGearNaturalId to the specified entity.
 void remoteGearNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteGearNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Gear gear)
          Removes the instance of fr.ifremer.allegro.referential.gear.Gear from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.gear.Gear 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 GearDao.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 setGearAssociationDao(GearAssociationDao gearAssociationDao)
          Sets the reference to gearAssociationDao.
 void setGearClassificationDao(GearClassificationDao gearClassificationDao)
          Sets the reference to gearClassificationDao.
 void setGearDao(GearDao gearDao)
          Sets the reference to gearDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterGear toClusterGear(Gear entity)
          Converts this DAO's entity to an object of type ClusterGear.
 void toClusterGear(Gear source, ClusterGear target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterGear toClusterGear(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterGear[] toClusterGearArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterGear.
 void toClusterGearCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterGear.
protected  Gear toEntity(java.lang.Object[] row)
           
 RemoteGearFullVO toRemoteGearFullVO(Gear entity)
          Converts this DAO's entity to an object of type RemoteGearFullVO.
 void toRemoteGearFullVO(Gear source, RemoteGearFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteGearFullVO toRemoteGearFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteGearFullVO[] toRemoteGearFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteGearFullVO.
 void toRemoteGearFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteGearFullVO.
 RemoteGearNaturalId toRemoteGearNaturalId(Gear entity)
          Converts this DAO's entity to an object of type RemoteGearNaturalId.
 void toRemoteGearNaturalId(Gear source, RemoteGearNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteGearNaturalId toRemoteGearNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteGearNaturalId[] toRemoteGearNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteGearNaturalId.
 void toRemoteGearNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteGearNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.gear.Gear) method.
protected  java.lang.Object transformEntity(int transform, Gear 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.GearDao, please note that the GearDao.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(Gear gear)
          Updates the gear 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.GearDao
clusterGearToEntity, remoteGearFullVOToEntity, remoteGearNaturalIdToEntity
 

Constructor Detail

GearDaoBase

public GearDaoBase()
Method Detail

setGearDao

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


getGearDao

protected GearDao getGearDao()
Gets the reference to gearDao.


setGearClassificationDao

public void setGearClassificationDao(GearClassificationDao gearClassificationDao)
Sets the reference to gearClassificationDao.


getGearClassificationDao

protected GearClassificationDao getGearClassificationDao()
Gets the reference to gearClassificationDao.


setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to statusDao.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setGearAssociationDao

public void setGearAssociationDao(GearAssociationDao gearAssociationDao)
Sets the reference to gearAssociationDao.


getGearAssociationDao

protected GearAssociationDao getGearAssociationDao()
Gets the reference to gearAssociationDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               Gear gear)
Description copied from interface: GearDao

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

create

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

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

create

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

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

create

public Gear create(java.lang.String label,
                   java.lang.String name,
                   java.lang.String description,
                   java.sql.Timestamp updateDate,
                   GearClassification gearClassification,
                   java.util.Collection childGears,
                   Gear parentGear,
                   Status status,
                   java.util.Collection associatedGears)
Description copied from interface: GearDao

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

Specified by:
create in interface GearDao
See Also:
GearDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.referential.Status,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.lang.String label,
                               java.lang.String name,
                               java.lang.String description,
                               java.sql.Timestamp updateDate,
                               GearClassification gearClassification,
                               java.util.Collection childGears,
                               Gear parentGear,
                               Status status,
                               java.util.Collection associatedGears)
Description copied from interface: GearDao

Does the same thing as GearDao.create(java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.referential.Status,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 GearDao
See Also:
GearDao.create(int, java.lang.String,java.lang.String,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.gear.GearClassification,java.util.Collection,fr.ifremer.allegro.referential.gear.Gear,fr.ifremer.allegro.referential.Status,java.util.Collection)

create

public Gear create(GearClassification gearClassification,
                   java.lang.String label,
                   java.lang.String name,
                   Status status)
Description copied from interface: GearDao

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

Specified by:
create in interface GearDao
See Also:
GearDao.create(fr.ifremer.allegro.referential.gear.GearClassification,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               GearClassification gearClassification,
                               java.lang.String label,
                               java.lang.String name,
                               Status status)
Description copied from interface: GearDao

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

update

public void update(Gear gear)
Description copied from interface: GearDao
Updates the gear instance in the persistent store.

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

update

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

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

remove

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

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

remove

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

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

remove

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

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

getAllGear

public java.util.Collection getAllGear()
Specified by:
getAllGear in interface GearDao
See Also:
GearDao.getAllGear()

getAllGear

public java.util.Collection getAllGear(int transform)
Description copied from interface: GearDao

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

getAllGear

public java.util.Collection getAllGear(java.lang.String queryString)
Description copied from interface: GearDao

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

Specified by:
getAllGear in interface GearDao
See Also:
GearDao.getAllGear(java.lang.String)

getAllGear

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

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

getAllGear

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

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

getAllGear

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

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

Specified by:
getAllGear in interface GearDao
See Also:
GearDao.getAllGear(int, String)

getAllGear

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

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

getAllGear

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

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

findGearById

public Gear findGearById(java.lang.Integer id)
Specified by:
findGearById in interface GearDao
See Also:
GearDao.findGearById(java.lang.Integer)

findGearById

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

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

findGearById

public Gear findGearById(java.lang.String queryString,
                         java.lang.Integer id)
Description copied from interface: GearDao

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

Specified by:
findGearById in interface GearDao
See Also:
GearDao.findGearById(java.lang.String, java.lang.Integer)

findGearById

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

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

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

findGearByParentGear

public java.util.Collection findGearByParentGear(Gear parentGear)
Specified by:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(int transform,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear) 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:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(int, fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(java.lang.String queryString,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear) with an additional argument called queryString. This queryString argument allows you to override the query string defined in GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear).

Specified by:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(java.lang.String, fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(int pageNumber,
                                                 int pageSize,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(fr.ifremer.allegro.referential.gear.Gear) 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:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(int, int, fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(java.lang.String queryString,
                                                 int pageNumber,
                                                 int pageSize,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(String, fr.ifremer.allegro.referential.gear.Gear) 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:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(String, int, int, fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(int transform,
                                                 java.lang.String queryString,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(int, fr.ifremer.allegro.referential.gear.Gear) with an additional argument called queryString. This queryString argument allows you to override the query string defined in GearDao.findGearByParentGear(int, fr.ifremer.allegro.referential.gear.Gear parentGear).

Specified by:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(int, String, fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(int transform,
                                                 int pageNumber,
                                                 int pageSize,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(int, fr.ifremer.allegro.referential.gear.Gear) 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:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(int, int, int, fr.ifremer.allegro.referential.gear.Gear)

findGearByParentGear

public java.util.Collection findGearByParentGear(int transform,
                                                 java.lang.String queryString,
                                                 int pageNumber,
                                                 int pageSize,
                                                 Gear parentGear)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByParentGear(int, String, fr.ifremer.allegro.referential.gear.Gear) 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:
findGearByParentGear in interface GearDao
See Also:
GearDao.findGearByParentGear(int, java.lang.String, int, int, fr.ifremer.allegro.referential.gear.Gear)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(GearClassification gearClassification)
Specified by:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(int transform,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) 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:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(java.lang.String queryString,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString. This queryString argument allows you to override the query string defined in GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification).

Specified by:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(java.lang.String, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(int pageNumber,
                                                         int pageSize,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(fr.ifremer.allegro.referential.gear.GearClassification) 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:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(String, fr.ifremer.allegro.referential.gear.GearClassification) 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:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(String, int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(int transform,
                                                         java.lang.String queryString,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) with an additional argument called queryString. This queryString argument allows you to override the query string defined in GearDao.findGearByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification gearClassification).

Specified by:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(int transform,
                                                         int pageNumber,
                                                         int pageSize,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(int, fr.ifremer.allegro.referential.gear.GearClassification) 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:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(int, int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByGearClassification

public java.util.Collection findGearByGearClassification(int transform,
                                                         java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         GearClassification gearClassification)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByGearClassification(int, String, fr.ifremer.allegro.referential.gear.GearClassification) 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:
findGearByGearClassification in interface GearDao
See Also:
GearDao.findGearByGearClassification(int, java.lang.String, int, int, fr.ifremer.allegro.referential.gear.GearClassification)

findGearByStatus

public java.util.Collection findGearByStatus(Status status)
Specified by:
findGearByStatus in interface GearDao
See Also:
GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status)

findGearByStatus

public java.util.Collection findGearByStatus(int transform,
                                             Status status)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status) 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:
findGearByStatus in interface GearDao
See Also:
GearDao.findGearByStatus(int, fr.ifremer.allegro.referential.Status)

findGearByStatus

public java.util.Collection findGearByStatus(java.lang.String queryString,
                                             Status status)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString. This queryString argument allows you to override the query string defined in GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status).

Specified by:
findGearByStatus in interface GearDao
See Also:
GearDao.findGearByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)

findGearByStatus

public java.util.Collection findGearByStatus(int pageNumber,
                                             int pageSize,
                                             Status status)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByStatus(fr.ifremer.allegro.referential.Status) 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:
findGearByStatus in interface GearDao
See Also:
GearDao.findGearByStatus(int, int, fr.ifremer.allegro.referential.Status)

findGearByStatus

public java.util.Collection findGearByStatus(java.lang.String queryString,
                                             int pageNumber,
                                             int pageSize,
                                             Status status)
Description copied from interface: GearDao

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

findGearByStatus

public java.util.Collection findGearByStatus(int transform,
                                             java.lang.String queryString,
                                             Status status)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString. This queryString argument allows you to override the query string defined in GearDao.findGearByStatus(int, fr.ifremer.allegro.referential.Status status).

Specified by:
findGearByStatus in interface GearDao
See Also:
GearDao.findGearByStatus(int, String, fr.ifremer.allegro.referential.Status)

findGearByStatus

public java.util.Collection findGearByStatus(int transform,
                                             int pageNumber,
                                             int pageSize,
                                             Status status)
Description copied from interface: GearDao

Does the same thing as GearDao.findGearByStatus(int, fr.ifremer.allegro.referential.Status) 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:
findGearByStatus in interface GearDao
See Also:
GearDao.findGearByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findGearByStatus

public java.util.Collection findGearByStatus(int transform,
                                             java.lang.String queryString,
                                             int pageNumber,
                                             int pageSize,
                                             Status status)
Description copied from interface: GearDao

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

findGearByNaturalId

public Gear findGearByNaturalId(java.lang.Integer id)
Specified by:
findGearByNaturalId in interface GearDao
See Also:
GearDao.findGearByNaturalId(java.lang.Integer)

findGearByNaturalId

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

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

findGearByNaturalId

public Gear findGearByNaturalId(java.lang.String queryString,
                                java.lang.Integer id)
Description copied from interface: GearDao

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

Specified by:
findGearByNaturalId in interface GearDao
See Also:
GearDao.findGearByNaturalId(java.lang.String, java.lang.Integer)

findGearByNaturalId

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

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

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

getAllGearSinceDateSynchro

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

getAllGearSinceDateSynchro

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

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

getAllGearSinceDateSynchro

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

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

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

getAllGearSinceDateSynchro

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

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

getAllGearSinceDateSynchro

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

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

getAllGearSinceDateSynchro

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

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

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

getAllGearSinceDateSynchro

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

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

getAllGearSinceDateSynchro

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

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

createFromClusterGear

public Gear createFromClusterGear(ClusterGear clusterGear)
Specified by:
createFromClusterGear in interface GearDao
See Also:
GearDao.createFromClusterGear(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear)

handleCreateFromClusterGear

protected abstract Gear handleCreateFromClusterGear(ClusterGear clusterGear)
                                             throws java.lang.Exception
Performs the core logic for createFromClusterGear(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear)

Throws:
java.lang.Exception

getAllClusterGearSinceDateSynchro

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

handleGetAllClusterGearSinceDateSynchro

protected abstract ClusterGear[] handleGetAllClusterGearSinceDateSynchro(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 getAllClusterGearSinceDateSynchro(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,
                                           Gear 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.GearDao, please note that the GearDao.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 GearDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteGearFullVOCollection

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

Specified by:
toRemoteGearFullVOCollection in interface GearDao
See Also:
GearDao.toRemoteGearFullVOCollection(java.util.Collection)

toRemoteGearFullVOArray

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

Specified by:
toRemoteGearFullVOArray in interface GearDao
See Also:
GearDao.toRemoteGearFullVOArray(java.util.Collection)

toRemoteGearFullVO

protected RemoteGearFullVO toRemoteGearFullVO(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 GearDaoImpl class if you intend to use reporting queries.

See Also:
GearDao.toRemoteGearFullVO(fr.ifremer.allegro.referential.gear.Gear)

remoteGearFullVOToEntityCollection

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

Specified by:
remoteGearFullVOToEntityCollection in interface GearDao
See Also:
GearDao.remoteGearFullVOToEntityCollection(java.util.Collection)

toRemoteGearFullVO

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

toRemoteGearFullVO

public RemoteGearFullVO toRemoteGearFullVO(Gear entity)
Description copied from interface: GearDao
Converts this DAO's entity to an object of type RemoteGearFullVO.

Specified by:
toRemoteGearFullVO in interface GearDao
See Also:
GearDao.toRemoteGearFullVO(fr.ifremer.allegro.referential.gear.Gear)

remoteGearFullVOToEntity

public void remoteGearFullVOToEntity(RemoteGearFullVO source,
                                     Gear target,
                                     boolean copyIfNull)
Description copied from interface: GearDao
Copies the fields of RemoteGearFullVO to the specified entity.

Specified by:
remoteGearFullVOToEntity in interface GearDao
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.GearDao#remoteGearFullVOToEntity(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearFullVO, fr.ifremer.allegro.referential.gear.Gear)

toRemoteGearNaturalIdCollection

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

Specified by:
toRemoteGearNaturalIdCollection in interface GearDao
See Also:
GearDao.toRemoteGearNaturalIdCollection(java.util.Collection)

toRemoteGearNaturalIdArray

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

Specified by:
toRemoteGearNaturalIdArray in interface GearDao
See Also:
GearDao.toRemoteGearNaturalIdArray(java.util.Collection)

toRemoteGearNaturalId

protected RemoteGearNaturalId toRemoteGearNaturalId(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 GearDaoImpl class if you intend to use reporting queries.

See Also:
GearDao.toRemoteGearNaturalId(fr.ifremer.allegro.referential.gear.Gear)

remoteGearNaturalIdToEntityCollection

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

Specified by:
remoteGearNaturalIdToEntityCollection in interface GearDao
See Also:
GearDao.remoteGearNaturalIdToEntityCollection(java.util.Collection)

toRemoteGearNaturalId

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

toRemoteGearNaturalId

public RemoteGearNaturalId toRemoteGearNaturalId(Gear entity)
Description copied from interface: GearDao
Converts this DAO's entity to an object of type RemoteGearNaturalId.

Specified by:
toRemoteGearNaturalId in interface GearDao
See Also:
GearDao.toRemoteGearNaturalId(fr.ifremer.allegro.referential.gear.Gear)

remoteGearNaturalIdToEntity

public void remoteGearNaturalIdToEntity(RemoteGearNaturalId source,
                                        Gear target,
                                        boolean copyIfNull)
Description copied from interface: GearDao
Copies the fields of RemoteGearNaturalId to the specified entity.

Specified by:
remoteGearNaturalIdToEntity in interface GearDao
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.GearDao#remoteGearNaturalIdToEntity(fr.ifremer.allegro.referential.gear.generic.vo.RemoteGearNaturalId, fr.ifremer.allegro.referential.gear.Gear)

toClusterGearCollection

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

Specified by:
toClusterGearCollection in interface GearDao
See Also:
GearDao.toClusterGearCollection(java.util.Collection)

toClusterGearArray

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

Specified by:
toClusterGearArray in interface GearDao
See Also:
GearDao.toClusterGearArray(java.util.Collection)

toClusterGear

protected ClusterGear toClusterGear(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 GearDaoImpl class if you intend to use reporting queries.

See Also:
GearDao.toClusterGear(fr.ifremer.allegro.referential.gear.Gear)

clusterGearToEntityCollection

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

Specified by:
clusterGearToEntityCollection in interface GearDao
See Also:
GearDao.clusterGearToEntityCollection(java.util.Collection)

toClusterGear

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

toClusterGear

public ClusterGear toClusterGear(Gear entity)
Description copied from interface: GearDao
Converts this DAO's entity to an object of type ClusterGear.

Specified by:
toClusterGear in interface GearDao
See Also:
GearDao.toClusterGear(fr.ifremer.allegro.referential.gear.Gear)

clusterGearToEntity

public void clusterGearToEntity(ClusterGear source,
                                Gear target,
                                boolean copyIfNull)
Description copied from interface: GearDao
Copies the fields of ClusterGear to the specified entity.

Specified by:
clusterGearToEntity in interface GearDao
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.GearDao#clusterGearToEntity(fr.ifremer.allegro.referential.gear.generic.cluster.ClusterGear, fr.ifremer.allegro.referential.gear.Gear)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.