fr.ifremer.allegro.referential
Class PrecisionTypeDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.PrecisionTypeDaoBase
All Implemented Interfaces:
PrecisionTypeDao
Direct Known Subclasses:
PrecisionTypeDaoImpl

public abstract class PrecisionTypeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements PrecisionTypeDao

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

See Also:
PrecisionType

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.PrecisionTypeDao
TRANSFORM_CLUSTERPRECISIONTYPE, TRANSFORM_NONE, TRANSFORM_REMOTEPRECISIONTYPEFULLVO, TRANSFORM_REMOTEPRECISIONTYPENATURALID
 
Constructor Summary
PrecisionTypeDaoBase()
           
 
Method Summary
 void clusterPrecisionTypeToEntity(ClusterPrecisionType source, PrecisionType target, boolean copyIfNull)
          Copies the fields of ClusterPrecisionType to the specified entity.
 void clusterPrecisionTypeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterPrecisionType to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.PrecisionType and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as PrecisionTypeDao.create(fr.ifremer.allegro.referential.PrecisionType) with an additional flag called transform.
 java.lang.Object create(int transform, PrecisionType precisionType)
           Does the same thing as PrecisionTypeDao.create(fr.ifremer.allegro.referential.PrecisionType) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, Status status)
           Does the same thing as PrecisionTypeDao.create(java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.sql.Timestamp updateDate, Status status)
           Does the same thing as PrecisionTypeDao.create(java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 PrecisionType create(PrecisionType precisionType)
          Creates an instance of fr.ifremer.allegro.referential.PrecisionType and adds it to the persistent store.
 PrecisionType create(java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.referential.PrecisionType instance from only required properties (attributes and association ends) and adds it to the persistent store.
 PrecisionType create(java.lang.String name, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.referential.PrecisionType instance from all attributes and properties and adds it to the persistent store.
 PrecisionType createFromClusterPrecisionType(ClusterPrecisionType clusterPrecisionType)
           
 PrecisionType findPrecisionTypeById(java.lang.Integer id)
           
 java.lang.Object findPrecisionTypeById(int transform, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findPrecisionTypeById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeById(int, java.lang.Integer) with an additional argument called queryString.
 PrecisionType findPrecisionTypeById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeById(java.lang.Integer) with an additional argument called queryString.
 PrecisionType findPrecisionTypeByNaturalId(java.lang.Integer id)
           
 java.lang.Object findPrecisionTypeByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findPrecisionTypeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 PrecisionType findPrecisionTypeByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findPrecisionTypeByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPrecisionTypeByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPrecisionTypeByStatus(int transform, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findPrecisionTypeByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPrecisionTypeByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findPrecisionTypeByStatus(Status status)
           
 java.util.Collection findPrecisionTypeByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPrecisionTypeByStatus(java.lang.String queryString, Status status)
           Does the same thing as PrecisionTypeDao.findPrecisionTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterPrecisionType[] getAllClusterPrecisionTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllPrecisionType()
           
 java.util.Collection getAllPrecisionType(int transform)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType() with an additional flag called transform.
 java.util.Collection getAllPrecisionType(int pageNumber, int pageSize)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionType(int transform, int pageNumber, int pageSize)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionType(int transform, java.lang.String queryString)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType(int) with an additional argument called queryString.
 java.util.Collection getAllPrecisionType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionType(java.lang.String queryString)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType() with an additional argument called queryString.
 java.util.Collection getAllPrecisionType(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PrecisionTypeDao.getAllPrecisionType(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PrecisionTypeDao.getAllPrecisionTypeSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPrecisionTypeSinceDateSynchro(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  PrecisionType handleCreateFromClusterPrecisionType(ClusterPrecisionType clusterPrecisionType)
          Performs the core logic for createFromClusterPrecisionType(fr.ifremer.allegro.referential.generic.cluster.ClusterPrecisionType)
protected abstract  ClusterPrecisionType[] handleGetAllClusterPrecisionTypeSinceDateSynchro(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 getAllClusterPrecisionTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 PrecisionType load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.referential.PrecisionType from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as PrecisionTypeDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type PrecisionType.
 java.util.Collection loadAll(int transform)
           Does the same thing as PrecisionTypeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as PrecisionTypeDao.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 PrecisionTypeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remotePrecisionTypeFullVOToEntity(RemotePrecisionTypeFullVO source, PrecisionType target, boolean copyIfNull)
          Copies the fields of RemotePrecisionTypeFullVO to the specified entity.
 void remotePrecisionTypeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePrecisionTypeFullVO to this DAO's entity.
 void remotePrecisionTypeNaturalIdToEntity(RemotePrecisionTypeNaturalId source, PrecisionType target, boolean copyIfNull)
          Copies the fields of RemotePrecisionTypeNaturalId to the specified entity.
 void remotePrecisionTypeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePrecisionTypeNaturalId 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.PrecisionType having the given identifier from the persistent store.
 void remove(PrecisionType precisionType)
          Removes the instance of fr.ifremer.allegro.referential.PrecisionType 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 PrecisionTypeDao.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.
protected  ClusterPrecisionType toClusterPrecisionType(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterPrecisionType toClusterPrecisionType(PrecisionType entity)
          Converts this DAO's entity to an object of type ClusterPrecisionType.
 void toClusterPrecisionType(PrecisionType source, ClusterPrecisionType target)
          Copies the fields of the specified entity to the target value object.
 ClusterPrecisionType[] toClusterPrecisionTypeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterPrecisionType.
 void toClusterPrecisionTypeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterPrecisionType.
protected  PrecisionType toEntity(java.lang.Object[] row)
           
protected  RemotePrecisionTypeFullVO toRemotePrecisionTypeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemotePrecisionTypeFullVO toRemotePrecisionTypeFullVO(PrecisionType entity)
          Converts this DAO's entity to an object of type RemotePrecisionTypeFullVO.
 void toRemotePrecisionTypeFullVO(PrecisionType source, RemotePrecisionTypeFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemotePrecisionTypeFullVO[] toRemotePrecisionTypeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePrecisionTypeFullVO.
 void toRemotePrecisionTypeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePrecisionTypeFullVO.
protected  RemotePrecisionTypeNaturalId toRemotePrecisionTypeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemotePrecisionTypeNaturalId toRemotePrecisionTypeNaturalId(PrecisionType entity)
          Converts this DAO's entity to an object of type RemotePrecisionTypeNaturalId.
 void toRemotePrecisionTypeNaturalId(PrecisionType source, RemotePrecisionTypeNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemotePrecisionTypeNaturalId[] toRemotePrecisionTypeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePrecisionTypeNaturalId.
 void toRemotePrecisionTypeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePrecisionTypeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.PrecisionType) method.
protected  java.lang.Object transformEntity(int transform, PrecisionType 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.PrecisionTypeDao, please note that the PrecisionTypeDao.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(PrecisionType precisionType)
          Updates the precisionType 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.PrecisionTypeDao
clusterPrecisionTypeToEntity, remotePrecisionTypeFullVOToEntity, remotePrecisionTypeNaturalIdToEntity
 

Constructor Detail

PrecisionTypeDaoBase

public PrecisionTypeDaoBase()
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: PrecisionTypeDao

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

Specified by:
create in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.create(fr.ifremer.allegro.referential.PrecisionType)

create

public java.lang.Object create(int transform,
                               PrecisionType precisionType)
Description copied from interface: PrecisionTypeDao

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

create

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

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

create

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

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

create

public PrecisionType create(java.lang.String name,
                            java.sql.Timestamp updateDate,
                            Status status)
Description copied from interface: PrecisionTypeDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String name,
                               java.sql.Timestamp updateDate,
                               Status status)
Description copied from interface: PrecisionTypeDao

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

create

public PrecisionType create(java.lang.String name,
                            Status status)
Description copied from interface: PrecisionTypeDao

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

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

create

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

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

update

public void update(PrecisionType precisionType)
Description copied from interface: PrecisionTypeDao
Updates the precisionType instance in the persistent store.

Specified by:
update in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.update(fr.ifremer.allegro.referential.PrecisionType)

update

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

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

remove

public void remove(PrecisionType precisionType)
Description copied from interface: PrecisionTypeDao
Removes the instance of fr.ifremer.allegro.referential.PrecisionType from the persistent store.

Specified by:
remove in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.remove(fr.ifremer.allegro.referential.PrecisionType)

remove

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

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

remove

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

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

getAllPrecisionType

public java.util.Collection getAllPrecisionType()
Specified by:
getAllPrecisionType in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.getAllPrecisionType()

getAllPrecisionType

public java.util.Collection getAllPrecisionType(int transform)
Description copied from interface: PrecisionTypeDao

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

getAllPrecisionType

public java.util.Collection getAllPrecisionType(java.lang.String queryString)
Description copied from interface: PrecisionTypeDao

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

Specified by:
getAllPrecisionType in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.getAllPrecisionType(java.lang.String)

getAllPrecisionType

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

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

getAllPrecisionType

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

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

getAllPrecisionType

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

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

Specified by:
getAllPrecisionType in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.getAllPrecisionType(int, String)

getAllPrecisionType

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

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

getAllPrecisionType

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

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

findPrecisionTypeById

public PrecisionType findPrecisionTypeById(java.lang.Integer id)
Specified by:
findPrecisionTypeById in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.findPrecisionTypeById(java.lang.Integer)

findPrecisionTypeById

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

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

findPrecisionTypeById

public PrecisionType findPrecisionTypeById(java.lang.String queryString,
                                           java.lang.Integer id)
Description copied from interface: PrecisionTypeDao

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

Specified by:
findPrecisionTypeById in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.findPrecisionTypeById(java.lang.String, java.lang.Integer)

findPrecisionTypeById

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

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

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

findPrecisionTypeByStatus

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

findPrecisionTypeByStatus

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

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

findPrecisionTypeByStatus

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

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

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

findPrecisionTypeByStatus

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

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

findPrecisionTypeByStatus

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

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

findPrecisionTypeByStatus

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

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

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

findPrecisionTypeByStatus

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

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

findPrecisionTypeByStatus

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

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

findPrecisionTypeByNaturalId

public PrecisionType findPrecisionTypeByNaturalId(java.lang.Integer id)
Specified by:
findPrecisionTypeByNaturalId in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.findPrecisionTypeByNaturalId(java.lang.Integer)

findPrecisionTypeByNaturalId

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

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

findPrecisionTypeByNaturalId

public PrecisionType findPrecisionTypeByNaturalId(java.lang.String queryString,
                                                  java.lang.Integer id)
Description copied from interface: PrecisionTypeDao

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

Specified by:
findPrecisionTypeByNaturalId in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.findPrecisionTypeByNaturalId(java.lang.String, java.lang.Integer)

findPrecisionTypeByNaturalId

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

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

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

getAllPrecisionTypeSinceDateSynchro

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

getAllPrecisionTypeSinceDateSynchro

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

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

getAllPrecisionTypeSinceDateSynchro

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

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

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

getAllPrecisionTypeSinceDateSynchro

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

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

getAllPrecisionTypeSinceDateSynchro

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

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

getAllPrecisionTypeSinceDateSynchro

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

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

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

getAllPrecisionTypeSinceDateSynchro

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

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

getAllPrecisionTypeSinceDateSynchro

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

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

createFromClusterPrecisionType

public PrecisionType createFromClusterPrecisionType(ClusterPrecisionType clusterPrecisionType)
Specified by:
createFromClusterPrecisionType in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.createFromClusterPrecisionType(fr.ifremer.allegro.referential.generic.cluster.ClusterPrecisionType)

handleCreateFromClusterPrecisionType

protected abstract PrecisionType handleCreateFromClusterPrecisionType(ClusterPrecisionType clusterPrecisionType)
                                                               throws java.lang.Exception
Performs the core logic for createFromClusterPrecisionType(fr.ifremer.allegro.referential.generic.cluster.ClusterPrecisionType)

Throws:
java.lang.Exception

getAllClusterPrecisionTypeSinceDateSynchro

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

handleGetAllClusterPrecisionTypeSinceDateSynchro

protected abstract ClusterPrecisionType[] handleGetAllClusterPrecisionTypeSinceDateSynchro(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 getAllClusterPrecisionTypeSinceDateSynchro(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,
                                           PrecisionType 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.PrecisionTypeDao, please note that the PrecisionTypeDao.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 PrecisionTypeDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemotePrecisionTypeFullVOCollection

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

Specified by:
toRemotePrecisionTypeFullVOCollection in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toRemotePrecisionTypeFullVOCollection(java.util.Collection)

toRemotePrecisionTypeFullVOArray

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

Specified by:
toRemotePrecisionTypeFullVOArray in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toRemotePrecisionTypeFullVOArray(java.util.Collection)

toRemotePrecisionTypeFullVO

protected RemotePrecisionTypeFullVO toRemotePrecisionTypeFullVO(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 PrecisionTypeDaoImpl class if you intend to use reporting queries.

See Also:
PrecisionTypeDao.toRemotePrecisionTypeFullVO(fr.ifremer.allegro.referential.PrecisionType)

remotePrecisionTypeFullVOToEntityCollection

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

Specified by:
remotePrecisionTypeFullVOToEntityCollection in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.remotePrecisionTypeFullVOToEntityCollection(java.util.Collection)

toRemotePrecisionTypeFullVO

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

toRemotePrecisionTypeFullVO

public RemotePrecisionTypeFullVO toRemotePrecisionTypeFullVO(PrecisionType entity)
Description copied from interface: PrecisionTypeDao
Converts this DAO's entity to an object of type RemotePrecisionTypeFullVO.

Specified by:
toRemotePrecisionTypeFullVO in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toRemotePrecisionTypeFullVO(fr.ifremer.allegro.referential.PrecisionType)

remotePrecisionTypeFullVOToEntity

public void remotePrecisionTypeFullVOToEntity(RemotePrecisionTypeFullVO source,
                                              PrecisionType target,
                                              boolean copyIfNull)
Description copied from interface: PrecisionTypeDao
Copies the fields of RemotePrecisionTypeFullVO to the specified entity.

Specified by:
remotePrecisionTypeFullVOToEntity in interface PrecisionTypeDao
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.PrecisionTypeDao#remotePrecisionTypeFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemotePrecisionTypeFullVO, fr.ifremer.allegro.referential.PrecisionType)

toRemotePrecisionTypeNaturalIdCollection

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

Specified by:
toRemotePrecisionTypeNaturalIdCollection in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toRemotePrecisionTypeNaturalIdCollection(java.util.Collection)

toRemotePrecisionTypeNaturalIdArray

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

Specified by:
toRemotePrecisionTypeNaturalIdArray in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toRemotePrecisionTypeNaturalIdArray(java.util.Collection)

toRemotePrecisionTypeNaturalId

protected RemotePrecisionTypeNaturalId toRemotePrecisionTypeNaturalId(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 PrecisionTypeDaoImpl class if you intend to use reporting queries.

See Also:
PrecisionTypeDao.toRemotePrecisionTypeNaturalId(fr.ifremer.allegro.referential.PrecisionType)

remotePrecisionTypeNaturalIdToEntityCollection

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

Specified by:
remotePrecisionTypeNaturalIdToEntityCollection in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.remotePrecisionTypeNaturalIdToEntityCollection(java.util.Collection)

toRemotePrecisionTypeNaturalId

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

toRemotePrecisionTypeNaturalId

public RemotePrecisionTypeNaturalId toRemotePrecisionTypeNaturalId(PrecisionType entity)
Description copied from interface: PrecisionTypeDao
Converts this DAO's entity to an object of type RemotePrecisionTypeNaturalId.

Specified by:
toRemotePrecisionTypeNaturalId in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toRemotePrecisionTypeNaturalId(fr.ifremer.allegro.referential.PrecisionType)

remotePrecisionTypeNaturalIdToEntity

public void remotePrecisionTypeNaturalIdToEntity(RemotePrecisionTypeNaturalId source,
                                                 PrecisionType target,
                                                 boolean copyIfNull)
Description copied from interface: PrecisionTypeDao
Copies the fields of RemotePrecisionTypeNaturalId to the specified entity.

Specified by:
remotePrecisionTypeNaturalIdToEntity in interface PrecisionTypeDao
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.PrecisionTypeDao#remotePrecisionTypeNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemotePrecisionTypeNaturalId, fr.ifremer.allegro.referential.PrecisionType)

toClusterPrecisionTypeCollection

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

Specified by:
toClusterPrecisionTypeCollection in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toClusterPrecisionTypeCollection(java.util.Collection)

toClusterPrecisionTypeArray

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

Specified by:
toClusterPrecisionTypeArray in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toClusterPrecisionTypeArray(java.util.Collection)

toClusterPrecisionType

protected ClusterPrecisionType toClusterPrecisionType(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 PrecisionTypeDaoImpl class if you intend to use reporting queries.

See Also:
PrecisionTypeDao.toClusterPrecisionType(fr.ifremer.allegro.referential.PrecisionType)

clusterPrecisionTypeToEntityCollection

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

Specified by:
clusterPrecisionTypeToEntityCollection in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.clusterPrecisionTypeToEntityCollection(java.util.Collection)

toClusterPrecisionType

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

toClusterPrecisionType

public ClusterPrecisionType toClusterPrecisionType(PrecisionType entity)
Description copied from interface: PrecisionTypeDao
Converts this DAO's entity to an object of type ClusterPrecisionType.

Specified by:
toClusterPrecisionType in interface PrecisionTypeDao
See Also:
PrecisionTypeDao.toClusterPrecisionType(fr.ifremer.allegro.referential.PrecisionType)

clusterPrecisionTypeToEntity

public void clusterPrecisionTypeToEntity(ClusterPrecisionType source,
                                         PrecisionType target,
                                         boolean copyIfNull)
Description copied from interface: PrecisionTypeDao
Copies the fields of ClusterPrecisionType to the specified entity.

Specified by:
clusterPrecisionTypeToEntity in interface PrecisionTypeDao
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.PrecisionTypeDao#clusterPrecisionTypeToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterPrecisionType, fr.ifremer.allegro.referential.PrecisionType)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.