fr.ifremer.allegro.referential.pmfm
Class MethodDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.pmfm.MethodDaoBase
All Implemented Interfaces:
MethodDao
Direct Known Subclasses:
MethodDaoImpl

public abstract class MethodDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements MethodDao

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

See Also:
Method

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.pmfm.MethodDao
TRANSFORM_CLUSTERMETHOD, TRANSFORM_NONE, TRANSFORM_REMOTEMETHODFULLVO, TRANSFORM_REMOTEMETHODNATURALID
 
Constructor Summary
MethodDaoBase()
           
 
Method Summary
 void clusterMethodToEntity(ClusterMethod source, Method target, boolean copyIfNull)
          Copies the fields of ClusterMethod to the specified entity.
 void clusterMethodToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterMethod to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.pmfm.Method and adds from the passed in entities collection
 Method create(java.util.Date creationDate, java.lang.String name, java.lang.String rank, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Method 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 MethodDao.create(fr.ifremer.allegro.referential.pmfm.Method) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date creationDate, java.lang.String name, java.lang.String rank, Status status)
           Does the same thing as MethodDao.create(java.util.Date,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, Method method)
           Does the same thing as MethodDao.create(fr.ifremer.allegro.referential.pmfm.Method) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.lang.String conditioning, java.lang.String preparation, java.lang.String conservation, java.lang.String reference, java.lang.String rank, java.lang.String handbookPath, java.util.Date creationDate, java.sql.Timestamp updateDate, Status status)
           Does the same thing as MethodDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 Method create(Method method)
          Creates an instance of fr.ifremer.allegro.referential.pmfm.Method and adds it to the persistent store.
 Method create(java.lang.String name, java.lang.String description, java.lang.String conditioning, java.lang.String preparation, java.lang.String conservation, java.lang.String reference, java.lang.String rank, java.lang.String handbookPath, java.util.Date creationDate, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.referential.pmfm.Method instance from all attributes and properties and adds it to the persistent store.
 Method createFromClusterMethod(ClusterMethod clusterMethod)
           
 Method findMethodById(java.lang.Integer id)
           
 java.lang.Object findMethodById(int transform, java.lang.Integer id)
           Does the same thing as MethodDao.findMethodById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findMethodById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MethodDao.findMethodById(int, java.lang.Integer) with an additional argument called queryString.
 Method findMethodById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MethodDao.findMethodById(java.lang.Integer) with an additional argument called queryString.
 Method findMethodByNaturalId(java.lang.Integer id)
           
 java.lang.Object findMethodByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as MethodDao.findMethodByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findMethodByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MethodDao.findMethodByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Method findMethodByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as MethodDao.findMethodByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findMethodByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as MethodDao.findMethodByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMethodByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as MethodDao.findMethodByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMethodByStatus(int transform, Status status)
           Does the same thing as MethodDao.findMethodByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findMethodByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as MethodDao.findMethodByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMethodByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as MethodDao.findMethodByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findMethodByStatus(Status status)
           
 java.util.Collection findMethodByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as MethodDao.findMethodByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findMethodByStatus(java.lang.String queryString, Status status)
           Does the same thing as MethodDao.findMethodByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterMethod[] getAllClusterMethodSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllMethod()
           
 java.util.Collection getAllMethod(int transform)
           Does the same thing as MethodDao.getAllMethod() with an additional flag called transform.
 java.util.Collection getAllMethod(int pageNumber, int pageSize)
           Does the same thing as MethodDao.getAllMethod() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethod(int transform, int pageNumber, int pageSize)
           Does the same thing as MethodDao.getAllMethod(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethod(int transform, java.lang.String queryString)
           Does the same thing as MethodDao.getAllMethod(int) with an additional argument called queryString.
 java.util.Collection getAllMethod(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as MethodDao.getAllMethod(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethod(java.lang.String queryString)
           Does the same thing as MethodDao.getAllMethod() with an additional argument called queryString.
 java.util.Collection getAllMethod(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as MethodDao.getAllMethod(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethodSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethodSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethodSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethodSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMethodSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllMethodSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllMethodSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as MethodDao.getAllMethodSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllMethodSinceDateSynchro(java.sql.Timestamp updateDate)
           
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  Method handleCreateFromClusterMethod(ClusterMethod clusterMethod)
          Performs the core logic for createFromClusterMethod(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod)
protected abstract  ClusterMethod[] handleGetAllClusterMethodSinceDateSynchro(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 getAllClusterMethodSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Method load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.pmfm.Method from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as MethodDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Method.
 java.util.Collection loadAll(int transform)
           Does the same thing as MethodDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as MethodDao.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 MethodDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteMethodFullVOToEntity(RemoteMethodFullVO source, Method target, boolean copyIfNull)
          Copies the fields of RemoteMethodFullVO to the specified entity.
 void remoteMethodFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteMethodFullVO to this DAO's entity.
 void remoteMethodNaturalIdToEntity(RemoteMethodNaturalId source, Method target, boolean copyIfNull)
          Copies the fields of RemoteMethodNaturalId to the specified entity.
 void remoteMethodNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteMethodNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Method having the given identifier from the persistent store.
 void remove(Method method)
          Removes the instance of fr.ifremer.allegro.referential.pmfm.Method 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 MethodDao.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 setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterMethod toClusterMethod(Method entity)
          Converts this DAO's entity to an object of type ClusterMethod.
 void toClusterMethod(Method source, ClusterMethod target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterMethod toClusterMethod(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterMethod[] toClusterMethodArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterMethod.
 void toClusterMethodCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterMethod.
protected  Method toEntity(java.lang.Object[] row)
           
 RemoteMethodFullVO toRemoteMethodFullVO(Method entity)
          Converts this DAO's entity to an object of type RemoteMethodFullVO.
 void toRemoteMethodFullVO(Method source, RemoteMethodFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteMethodFullVO toRemoteMethodFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteMethodFullVO[] toRemoteMethodFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteMethodFullVO.
 void toRemoteMethodFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteMethodFullVO.
 RemoteMethodNaturalId toRemoteMethodNaturalId(Method entity)
          Converts this DAO's entity to an object of type RemoteMethodNaturalId.
 void toRemoteMethodNaturalId(Method source, RemoteMethodNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteMethodNaturalId toRemoteMethodNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteMethodNaturalId[] toRemoteMethodNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteMethodNaturalId.
 void toRemoteMethodNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteMethodNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.pmfm.Method) method.
protected  java.lang.Object transformEntity(int transform, Method 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.pmfm.MethodDao, please note that the MethodDao.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(Method method)
          Updates the method 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.pmfm.MethodDao
clusterMethodToEntity, remoteMethodFullVOToEntity, remoteMethodNaturalIdToEntity
 

Constructor Detail

MethodDaoBase

public MethodDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public Method create(Method method)
Description copied from interface: MethodDao
Creates an instance of fr.ifremer.allegro.referential.pmfm.Method and adds it to the persistent store.

Specified by:
create in interface MethodDao
See Also:
MethodDao.create(fr.ifremer.allegro.referential.pmfm.Method)

create

public java.lang.Object create(int transform,
                               Method method)
Description copied from interface: MethodDao

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

create

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

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

create

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

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

create

public Method create(java.lang.String name,
                     java.lang.String description,
                     java.lang.String conditioning,
                     java.lang.String preparation,
                     java.lang.String conservation,
                     java.lang.String reference,
                     java.lang.String rank,
                     java.lang.String handbookPath,
                     java.util.Date creationDate,
                     java.sql.Timestamp updateDate,
                     Status status)
Description copied from interface: MethodDao

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

Specified by:
create in interface MethodDao
See Also:
MethodDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.String conditioning,
                               java.lang.String preparation,
                               java.lang.String conservation,
                               java.lang.String reference,
                               java.lang.String rank,
                               java.lang.String handbookPath,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               Status status)
Description copied from interface: MethodDao

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

create

public Method create(java.util.Date creationDate,
                     java.lang.String name,
                     java.lang.String rank,
                     Status status)
Description copied from interface: MethodDao

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

Specified by:
create in interface MethodDao
See Also:
MethodDao.create(java.util.Date,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.util.Date creationDate,
                               java.lang.String name,
                               java.lang.String rank,
                               Status status)
Description copied from interface: MethodDao

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

update

public void update(Method method)
Description copied from interface: MethodDao
Updates the method instance in the persistent store.

Specified by:
update in interface MethodDao
See Also:
MethodDao.update(fr.ifremer.allegro.referential.pmfm.Method)

update

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

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

remove

public void remove(Method method)
Description copied from interface: MethodDao
Removes the instance of fr.ifremer.allegro.referential.pmfm.Method from the persistent store.

Specified by:
remove in interface MethodDao
See Also:
MethodDao.remove(fr.ifremer.allegro.referential.pmfm.Method)

remove

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

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

remove

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

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

getAllMethod

public java.util.Collection getAllMethod()
Specified by:
getAllMethod in interface MethodDao
See Also:
MethodDao.getAllMethod()

getAllMethod

public java.util.Collection getAllMethod(int transform)
Description copied from interface: MethodDao

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

getAllMethod

public java.util.Collection getAllMethod(java.lang.String queryString)
Description copied from interface: MethodDao

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

Specified by:
getAllMethod in interface MethodDao
See Also:
MethodDao.getAllMethod(java.lang.String)

getAllMethod

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

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

getAllMethod

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

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

getAllMethod

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

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

Specified by:
getAllMethod in interface MethodDao
See Also:
MethodDao.getAllMethod(int, String)

getAllMethod

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

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

getAllMethod

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

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

findMethodById

public Method findMethodById(java.lang.Integer id)
Specified by:
findMethodById in interface MethodDao
See Also:
MethodDao.findMethodById(java.lang.Integer)

findMethodById

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

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

findMethodById

public Method findMethodById(java.lang.String queryString,
                             java.lang.Integer id)
Description copied from interface: MethodDao

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

Specified by:
findMethodById in interface MethodDao
See Also:
MethodDao.findMethodById(java.lang.String, java.lang.Integer)

findMethodById

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

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

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

findMethodByStatus

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

findMethodByStatus

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

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

findMethodByStatus

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

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

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

findMethodByStatus

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

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

findMethodByStatus

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

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

findMethodByStatus

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

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

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

findMethodByStatus

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

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

findMethodByStatus

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

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

findMethodByNaturalId

public Method findMethodByNaturalId(java.lang.Integer id)
Specified by:
findMethodByNaturalId in interface MethodDao
See Also:
MethodDao.findMethodByNaturalId(java.lang.Integer)

findMethodByNaturalId

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

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

findMethodByNaturalId

public Method findMethodByNaturalId(java.lang.String queryString,
                                    java.lang.Integer id)
Description copied from interface: MethodDao

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

Specified by:
findMethodByNaturalId in interface MethodDao
See Also:
MethodDao.findMethodByNaturalId(java.lang.String, java.lang.Integer)

findMethodByNaturalId

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

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

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

getAllMethodSinceDateSynchro

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

getAllMethodSinceDateSynchro

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

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

getAllMethodSinceDateSynchro

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

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

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

getAllMethodSinceDateSynchro

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

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

getAllMethodSinceDateSynchro

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

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

getAllMethodSinceDateSynchro

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

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

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

getAllMethodSinceDateSynchro

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

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

getAllMethodSinceDateSynchro

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

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

createFromClusterMethod

public Method createFromClusterMethod(ClusterMethod clusterMethod)
Specified by:
createFromClusterMethod in interface MethodDao
See Also:
MethodDao.createFromClusterMethod(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod)

handleCreateFromClusterMethod

protected abstract Method handleCreateFromClusterMethod(ClusterMethod clusterMethod)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterMethod(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod)

Throws:
java.lang.Exception

getAllClusterMethodSinceDateSynchro

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

handleGetAllClusterMethodSinceDateSynchro

protected abstract ClusterMethod[] handleGetAllClusterMethodSinceDateSynchro(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 getAllClusterMethodSinceDateSynchro(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,
                                           Method 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.pmfm.MethodDao, please note that the MethodDao.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 MethodDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteMethodFullVOCollection

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

Specified by:
toRemoteMethodFullVOCollection in interface MethodDao
See Also:
MethodDao.toRemoteMethodFullVOCollection(java.util.Collection)

toRemoteMethodFullVOArray

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

Specified by:
toRemoteMethodFullVOArray in interface MethodDao
See Also:
MethodDao.toRemoteMethodFullVOArray(java.util.Collection)

toRemoteMethodFullVO

protected RemoteMethodFullVO toRemoteMethodFullVO(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 MethodDaoImpl class if you intend to use reporting queries.

See Also:
MethodDao.toRemoteMethodFullVO(fr.ifremer.allegro.referential.pmfm.Method)

remoteMethodFullVOToEntityCollection

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

Specified by:
remoteMethodFullVOToEntityCollection in interface MethodDao
See Also:
MethodDao.remoteMethodFullVOToEntityCollection(java.util.Collection)

toRemoteMethodFullVO

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

toRemoteMethodFullVO

public RemoteMethodFullVO toRemoteMethodFullVO(Method entity)
Description copied from interface: MethodDao
Converts this DAO's entity to an object of type RemoteMethodFullVO.

Specified by:
toRemoteMethodFullVO in interface MethodDao
See Also:
MethodDao.toRemoteMethodFullVO(fr.ifremer.allegro.referential.pmfm.Method)

remoteMethodFullVOToEntity

public void remoteMethodFullVOToEntity(RemoteMethodFullVO source,
                                       Method target,
                                       boolean copyIfNull)
Description copied from interface: MethodDao
Copies the fields of RemoteMethodFullVO to the specified entity.

Specified by:
remoteMethodFullVOToEntity in interface MethodDao
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.pmfm.MethodDao#remoteMethodFullVOToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.Method)

toRemoteMethodNaturalIdCollection

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

Specified by:
toRemoteMethodNaturalIdCollection in interface MethodDao
See Also:
MethodDao.toRemoteMethodNaturalIdCollection(java.util.Collection)

toRemoteMethodNaturalIdArray

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

Specified by:
toRemoteMethodNaturalIdArray in interface MethodDao
See Also:
MethodDao.toRemoteMethodNaturalIdArray(java.util.Collection)

toRemoteMethodNaturalId

protected RemoteMethodNaturalId toRemoteMethodNaturalId(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 MethodDaoImpl class if you intend to use reporting queries.

See Also:
MethodDao.toRemoteMethodNaturalId(fr.ifremer.allegro.referential.pmfm.Method)

remoteMethodNaturalIdToEntityCollection

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

Specified by:
remoteMethodNaturalIdToEntityCollection in interface MethodDao
See Also:
MethodDao.remoteMethodNaturalIdToEntityCollection(java.util.Collection)

toRemoteMethodNaturalId

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

toRemoteMethodNaturalId

public RemoteMethodNaturalId toRemoteMethodNaturalId(Method entity)
Description copied from interface: MethodDao
Converts this DAO's entity to an object of type RemoteMethodNaturalId.

Specified by:
toRemoteMethodNaturalId in interface MethodDao
See Also:
MethodDao.toRemoteMethodNaturalId(fr.ifremer.allegro.referential.pmfm.Method)

remoteMethodNaturalIdToEntity

public void remoteMethodNaturalIdToEntity(RemoteMethodNaturalId source,
                                          Method target,
                                          boolean copyIfNull)
Description copied from interface: MethodDao
Copies the fields of RemoteMethodNaturalId to the specified entity.

Specified by:
remoteMethodNaturalIdToEntity in interface MethodDao
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.pmfm.MethodDao#remoteMethodNaturalIdToEntity(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodNaturalId, fr.ifremer.allegro.referential.pmfm.Method)

toClusterMethodCollection

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

Specified by:
toClusterMethodCollection in interface MethodDao
See Also:
MethodDao.toClusterMethodCollection(java.util.Collection)

toClusterMethodArray

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

Specified by:
toClusterMethodArray in interface MethodDao
See Also:
MethodDao.toClusterMethodArray(java.util.Collection)

toClusterMethod

protected ClusterMethod toClusterMethod(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 MethodDaoImpl class if you intend to use reporting queries.

See Also:
MethodDao.toClusterMethod(fr.ifremer.allegro.referential.pmfm.Method)

clusterMethodToEntityCollection

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

Specified by:
clusterMethodToEntityCollection in interface MethodDao
See Also:
MethodDao.clusterMethodToEntityCollection(java.util.Collection)

toClusterMethod

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

toClusterMethod

public ClusterMethod toClusterMethod(Method entity)
Description copied from interface: MethodDao
Converts this DAO's entity to an object of type ClusterMethod.

Specified by:
toClusterMethod in interface MethodDao
See Also:
MethodDao.toClusterMethod(fr.ifremer.allegro.referential.pmfm.Method)

clusterMethodToEntity

public void clusterMethodToEntity(ClusterMethod source,
                                  Method target,
                                  boolean copyIfNull)
Description copied from interface: MethodDao
Copies the fields of ClusterMethod to the specified entity.

Specified by:
clusterMethodToEntity in interface MethodDao
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.pmfm.MethodDao#clusterMethodToEntity(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod, fr.ifremer.allegro.referential.pmfm.Method)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.