fr.ifremer.allegro.technical.synchronization
Class DataSynchronizationDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.technical.synchronization.DataSynchronizationDaoBase
All Implemented Interfaces:
DataSynchronizationDao
Direct Known Subclasses:
DataSynchronizationDaoImpl

public abstract class DataSynchronizationDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements DataSynchronizationDao

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

See Also:
DataSynchronization

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.technical.synchronization.DataSynchronizationDao
TRANSFORM_CLUSTERDATASYNCHRONIZATION, TRANSFORM_NONE, TRANSFORM_REMOTEDATASYNCHRONIZATIONFULLVO, TRANSFORM_REMOTEDATASYNCHRONIZATIONNATURALID
 
Constructor Summary
DataSynchronizationDaoBase()
           
 
Method Summary
 void clusterDataSynchronizationToEntity(ClusterDataSynchronization source, DataSynchronization target, boolean copyIfNull)
          Copies the fields of ClusterDataSynchronization to the specified entity.
 void clusterDataSynchronizationToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterDataSynchronization to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization and adds from the passed in entities collection
 DataSynchronization create(DataSynchronization dataSynchronization)
          Creates an instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as DataSynchronizationDao.create(fr.ifremer.allegro.technical.synchronization.DataSynchronization) with an additional flag called transform.
 java.lang.Object create(int transform, DataSynchronization dataSynchronization)
           Does the same thing as DataSynchronizationDao.create(fr.ifremer.allegro.technical.synchronization.DataSynchronization) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String tableName, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.create(java.lang.String,java.sql.Timestamp) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String tableName, java.sql.Timestamp updateDate, java.lang.String vesselCode)
           Does the same thing as DataSynchronizationDao.create(java.lang.String,java.sql.Timestamp,java.lang.String) with an additional flag called transform.
 DataSynchronization create(java.lang.String tableName, java.sql.Timestamp updateDate)
           Creates a new fr.ifremer.allegro.technical.synchronization.DataSynchronization instance from only required properties (attributes and association ends) and adds it to the persistent store.
 DataSynchronization create(java.lang.String tableName, java.sql.Timestamp updateDate, java.lang.String vesselCode)
           Creates a new fr.ifremer.allegro.technical.synchronization.DataSynchronization instance from all attributes and properties and adds it to the persistent store.
 DataSynchronization createFromClusterDataSynchronization(ClusterDataSynchronization clusterDataSynchronization)
           
 DataSynchronization findDataSynchronizationById(java.lang.Integer id)
           
 java.lang.Object findDataSynchronizationById(int transform, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.findDataSynchronizationById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findDataSynchronizationById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.findDataSynchronizationById(int, java.lang.Integer) with an additional argument called queryString.
 DataSynchronization findDataSynchronizationById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.findDataSynchronizationById(java.lang.Integer) with an additional argument called queryString.
 DataSynchronization findDataSynchronizationByNaturalId(java.lang.Integer id)
           
 java.lang.Object findDataSynchronizationByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.findDataSynchronizationByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findDataSynchronizationByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.findDataSynchronizationByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 DataSynchronization findDataSynchronizationByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.findDataSynchronizationByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterDataSynchronization[] getAllClusterDataSynchronizationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllDataSynchronization()
           
 java.util.Collection getAllDataSynchronization(int transform)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization() with an additional flag called transform.
 java.util.Collection getAllDataSynchronization(int pageNumber, int pageSize)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronization(int transform, int pageNumber, int pageSize)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronization(int transform, java.lang.String queryString)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization(int) with an additional argument called queryString.
 java.util.Collection getAllDataSynchronization(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronization(java.lang.String queryString)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization() with an additional argument called queryString.
 java.util.Collection getAllDataSynchronization(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronization(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as DataSynchronizationDao.getAllDataSynchronizationSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllDataSynchronizationSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
 java.sql.Timestamp getSysdate()
           
protected abstract  DataSynchronization handleCreateFromClusterDataSynchronization(ClusterDataSynchronization clusterDataSynchronization)
          Performs the core logic for createFromClusterDataSynchronization(fr.ifremer.allegro.technical.synchronization.generic.cluster.ClusterDataSynchronization)
protected abstract  ClusterDataSynchronization[] handleGetAllClusterDataSynchronizationSinceDateSynchro(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 getAllClusterDataSynchronizationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  java.sql.Timestamp handleGetSysdate()
          Performs the core logic for getSysdate()
 DataSynchronization load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as DataSynchronizationDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type DataSynchronization.
 java.util.Collection loadAll(int transform)
           Does the same thing as DataSynchronizationDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as DataSynchronizationDao.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 DataSynchronizationDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteDataSynchronizationFullVOToEntity(RemoteDataSynchronizationFullVO source, DataSynchronization target, boolean copyIfNull)
          Copies the fields of RemoteDataSynchronizationFullVO to the specified entity.
 void remoteDataSynchronizationFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteDataSynchronizationFullVO to this DAO's entity.
 void remoteDataSynchronizationNaturalIdToEntity(RemoteDataSynchronizationNaturalId source, DataSynchronization target, boolean copyIfNull)
          Copies the fields of RemoteDataSynchronizationNaturalId to the specified entity.
 void remoteDataSynchronizationNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteDataSynchronizationNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(DataSynchronization dataSynchronization)
          Removes the instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as DataSynchronizationDao.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.
 ClusterDataSynchronization toClusterDataSynchronization(DataSynchronization entity)
          Converts this DAO's entity to an object of type ClusterDataSynchronization.
 void toClusterDataSynchronization(DataSynchronization source, ClusterDataSynchronization target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterDataSynchronization toClusterDataSynchronization(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterDataSynchronization[] toClusterDataSynchronizationArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterDataSynchronization.
 void toClusterDataSynchronizationCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterDataSynchronization.
protected  DataSynchronization toEntity(java.lang.Object[] row)
           
 RemoteDataSynchronizationFullVO toRemoteDataSynchronizationFullVO(DataSynchronization entity)
          Converts this DAO's entity to an object of type RemoteDataSynchronizationFullVO.
 void toRemoteDataSynchronizationFullVO(DataSynchronization source, RemoteDataSynchronizationFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteDataSynchronizationFullVO toRemoteDataSynchronizationFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteDataSynchronizationFullVO[] toRemoteDataSynchronizationFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteDataSynchronizationFullVO.
 void toRemoteDataSynchronizationFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteDataSynchronizationFullVO.
 RemoteDataSynchronizationNaturalId toRemoteDataSynchronizationNaturalId(DataSynchronization entity)
          Converts this DAO's entity to an object of type RemoteDataSynchronizationNaturalId.
 void toRemoteDataSynchronizationNaturalId(DataSynchronization source, RemoteDataSynchronizationNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteDataSynchronizationNaturalId toRemoteDataSynchronizationNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteDataSynchronizationNaturalId[] toRemoteDataSynchronizationNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteDataSynchronizationNaturalId.
 void toRemoteDataSynchronizationNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteDataSynchronizationNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.technical.synchronization.DataSynchronization) method.
protected  java.lang.Object transformEntity(int transform, DataSynchronization 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.technical.synchronization.DataSynchronizationDao, please note that the DataSynchronizationDao.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(DataSynchronization dataSynchronization)
          Updates the dataSynchronization 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.technical.synchronization.DataSynchronizationDao
clusterDataSynchronizationToEntity, remoteDataSynchronizationFullVOToEntity, remoteDataSynchronizationNaturalIdToEntity
 

Constructor Detail

DataSynchronizationDaoBase

public DataSynchronizationDaoBase()
Method Detail

load

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

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

load

public DataSynchronization load(java.lang.Integer id)
Description copied from interface: DataSynchronizationDao
Loads an instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public DataSynchronization create(DataSynchronization dataSynchronization)
Description copied from interface: DataSynchronizationDao
Creates an instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization and adds it to the persistent store.

Specified by:
create in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.create(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

create

public java.lang.Object create(int transform,
                               DataSynchronization dataSynchronization)
Description copied from interface: DataSynchronizationDao

Does the same thing as DataSynchronizationDao.create(fr.ifremer.allegro.technical.synchronization.DataSynchronization) 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 DataSynchronizationDao
See Also:
DataSynchronizationDao.create(int transform, fr.ifremer.allegro.technical.synchronization.DataSynchronization)

create

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

Specified by:
create in interface DataSynchronizationDao
Parameters:
entities - the collection of fr.ifremer.allegro.technical.synchronization.DataSynchronization instances to create.
Returns:
the created instances.
See Also:
DataSynchronizationDao.create(java.util.Collection)

create

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

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

create

public DataSynchronization create(java.lang.String tableName,
                                  java.sql.Timestamp updateDate,
                                  java.lang.String vesselCode)
Description copied from interface: DataSynchronizationDao

Creates a new fr.ifremer.allegro.technical.synchronization.DataSynchronization instance from all attributes and properties and adds it to the persistent store.

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

create

public java.lang.Object create(int transform,
                               java.lang.String tableName,
                               java.sql.Timestamp updateDate,
                               java.lang.String vesselCode)
Description copied from interface: DataSynchronizationDao

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

create

public DataSynchronization create(java.lang.String tableName,
                                  java.sql.Timestamp updateDate)
Description copied from interface: DataSynchronizationDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String tableName,
                               java.sql.Timestamp updateDate)
Description copied from interface: DataSynchronizationDao

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

update

public void update(DataSynchronization dataSynchronization)
Description copied from interface: DataSynchronizationDao
Updates the dataSynchronization instance in the persistent store.

Specified by:
update in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.update(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

update

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

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

remove

public void remove(DataSynchronization dataSynchronization)
Description copied from interface: DataSynchronizationDao
Removes the instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization from the persistent store.

Specified by:
remove in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.remove(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

remove

public void remove(java.lang.Integer id)
Description copied from interface: DataSynchronizationDao
Removes the instance of fr.ifremer.allegro.technical.synchronization.DataSynchronization having the given identifier from the persistent store.

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

remove

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

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

getAllDataSynchronization

public java.util.Collection getAllDataSynchronization()
Specified by:
getAllDataSynchronization in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.getAllDataSynchronization()

getAllDataSynchronization

public java.util.Collection getAllDataSynchronization(int transform)
Description copied from interface: DataSynchronizationDao

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

getAllDataSynchronization

public java.util.Collection getAllDataSynchronization(java.lang.String queryString)
Description copied from interface: DataSynchronizationDao

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

Specified by:
getAllDataSynchronization in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.getAllDataSynchronization(java.lang.String)

getAllDataSynchronization

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

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

getAllDataSynchronization

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

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

getAllDataSynchronization

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

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

Specified by:
getAllDataSynchronization in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.getAllDataSynchronization(int, String)

getAllDataSynchronization

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

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

getAllDataSynchronization

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

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

findDataSynchronizationById

public DataSynchronization findDataSynchronizationById(java.lang.Integer id)
Specified by:
findDataSynchronizationById in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.findDataSynchronizationById(java.lang.Integer)

findDataSynchronizationById

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

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

findDataSynchronizationById

public DataSynchronization findDataSynchronizationById(java.lang.String queryString,
                                                       java.lang.Integer id)
Description copied from interface: DataSynchronizationDao

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

Specified by:
findDataSynchronizationById in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.findDataSynchronizationById(java.lang.String, java.lang.Integer)

findDataSynchronizationById

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

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

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

findDataSynchronizationByNaturalId

public DataSynchronization findDataSynchronizationByNaturalId(java.lang.Integer id)
Specified by:
findDataSynchronizationByNaturalId in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.findDataSynchronizationByNaturalId(java.lang.Integer)

findDataSynchronizationByNaturalId

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

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

findDataSynchronizationByNaturalId

public DataSynchronization findDataSynchronizationByNaturalId(java.lang.String queryString,
                                                              java.lang.Integer id)
Description copied from interface: DataSynchronizationDao

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

Specified by:
findDataSynchronizationByNaturalId in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.findDataSynchronizationByNaturalId(java.lang.String, java.lang.Integer)

findDataSynchronizationByNaturalId

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

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

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

getAllDataSynchronizationSinceDateSynchro

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

getAllDataSynchronizationSinceDateSynchro

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

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

getAllDataSynchronizationSinceDateSynchro

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

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

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

getAllDataSynchronizationSinceDateSynchro

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

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

getAllDataSynchronizationSinceDateSynchro

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

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

getAllDataSynchronizationSinceDateSynchro

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

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

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

getAllDataSynchronizationSinceDateSynchro

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

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

getAllDataSynchronizationSinceDateSynchro

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

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

getSysdate

public java.sql.Timestamp getSysdate()
Specified by:
getSysdate in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.getSysdate()

handleGetSysdate

protected abstract java.sql.Timestamp handleGetSysdate()
                                                throws java.lang.Exception
Performs the core logic for getSysdate()

Throws:
java.lang.Exception

createFromClusterDataSynchronization

public DataSynchronization createFromClusterDataSynchronization(ClusterDataSynchronization clusterDataSynchronization)
Specified by:
createFromClusterDataSynchronization in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.createFromClusterDataSynchronization(fr.ifremer.allegro.technical.synchronization.generic.cluster.ClusterDataSynchronization)

handleCreateFromClusterDataSynchronization

protected abstract DataSynchronization handleCreateFromClusterDataSynchronization(ClusterDataSynchronization clusterDataSynchronization)
                                                                           throws java.lang.Exception
Performs the core logic for createFromClusterDataSynchronization(fr.ifremer.allegro.technical.synchronization.generic.cluster.ClusterDataSynchronization)

Throws:
java.lang.Exception

getAllClusterDataSynchronizationSinceDateSynchro

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

handleGetAllClusterDataSynchronizationSinceDateSynchro

protected abstract ClusterDataSynchronization[] handleGetAllClusterDataSynchronizationSinceDateSynchro(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 getAllClusterDataSynchronizationSinceDateSynchro(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,
                                           DataSynchronization 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.technical.synchronization.DataSynchronizationDao, please note that the DataSynchronizationDao.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 DataSynchronizationDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteDataSynchronizationFullVOCollection

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

Specified by:
toRemoteDataSynchronizationFullVOCollection in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationFullVOCollection(java.util.Collection)

toRemoteDataSynchronizationFullVOArray

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

Specified by:
toRemoteDataSynchronizationFullVOArray in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationFullVOArray(java.util.Collection)

toRemoteDataSynchronizationFullVO

protected RemoteDataSynchronizationFullVO toRemoteDataSynchronizationFullVO(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 DataSynchronizationDaoImpl class if you intend to use reporting queries.

See Also:
DataSynchronizationDao.toRemoteDataSynchronizationFullVO(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

remoteDataSynchronizationFullVOToEntityCollection

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

Specified by:
remoteDataSynchronizationFullVOToEntityCollection in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.remoteDataSynchronizationFullVOToEntityCollection(java.util.Collection)

toRemoteDataSynchronizationFullVO

public void toRemoteDataSynchronizationFullVO(DataSynchronization source,
                                              RemoteDataSynchronizationFullVO target)
Description copied from interface: DataSynchronizationDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteDataSynchronizationFullVO(), 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:
toRemoteDataSynchronizationFullVO in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationFullVO(fr.ifremer.allegro.technical.synchronization.DataSynchronization, fr.ifremer.allegro.technical.synchronization.generic.vo.RemoteDataSynchronizationFullVO)

toRemoteDataSynchronizationFullVO

public RemoteDataSynchronizationFullVO toRemoteDataSynchronizationFullVO(DataSynchronization entity)
Description copied from interface: DataSynchronizationDao
Converts this DAO's entity to an object of type RemoteDataSynchronizationFullVO.

Specified by:
toRemoteDataSynchronizationFullVO in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationFullVO(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

remoteDataSynchronizationFullVOToEntity

public void remoteDataSynchronizationFullVOToEntity(RemoteDataSynchronizationFullVO source,
                                                    DataSynchronization target,
                                                    boolean copyIfNull)
Description copied from interface: DataSynchronizationDao
Copies the fields of RemoteDataSynchronizationFullVO to the specified entity.

Specified by:
remoteDataSynchronizationFullVOToEntity in interface DataSynchronizationDao
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.technical.synchronization.DataSynchronizationDao#remoteDataSynchronizationFullVOToEntity(fr.ifremer.allegro.technical.synchronization.generic.vo.RemoteDataSynchronizationFullVO, fr.ifremer.allegro.technical.synchronization.DataSynchronization)

toRemoteDataSynchronizationNaturalIdCollection

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

Specified by:
toRemoteDataSynchronizationNaturalIdCollection in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationNaturalIdCollection(java.util.Collection)

toRemoteDataSynchronizationNaturalIdArray

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

Specified by:
toRemoteDataSynchronizationNaturalIdArray in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationNaturalIdArray(java.util.Collection)

toRemoteDataSynchronizationNaturalId

protected RemoteDataSynchronizationNaturalId toRemoteDataSynchronizationNaturalId(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 DataSynchronizationDaoImpl class if you intend to use reporting queries.

See Also:
DataSynchronizationDao.toRemoteDataSynchronizationNaturalId(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

remoteDataSynchronizationNaturalIdToEntityCollection

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

Specified by:
remoteDataSynchronizationNaturalIdToEntityCollection in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.remoteDataSynchronizationNaturalIdToEntityCollection(java.util.Collection)

toRemoteDataSynchronizationNaturalId

public void toRemoteDataSynchronizationNaturalId(DataSynchronization source,
                                                 RemoteDataSynchronizationNaturalId target)
Description copied from interface: DataSynchronizationDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteDataSynchronizationNaturalId(), 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:
toRemoteDataSynchronizationNaturalId in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationNaturalId(fr.ifremer.allegro.technical.synchronization.DataSynchronization, fr.ifremer.allegro.technical.synchronization.generic.vo.RemoteDataSynchronizationNaturalId)

toRemoteDataSynchronizationNaturalId

public RemoteDataSynchronizationNaturalId toRemoteDataSynchronizationNaturalId(DataSynchronization entity)
Description copied from interface: DataSynchronizationDao
Converts this DAO's entity to an object of type RemoteDataSynchronizationNaturalId.

Specified by:
toRemoteDataSynchronizationNaturalId in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toRemoteDataSynchronizationNaturalId(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

remoteDataSynchronizationNaturalIdToEntity

public void remoteDataSynchronizationNaturalIdToEntity(RemoteDataSynchronizationNaturalId source,
                                                       DataSynchronization target,
                                                       boolean copyIfNull)
Description copied from interface: DataSynchronizationDao
Copies the fields of RemoteDataSynchronizationNaturalId to the specified entity.

Specified by:
remoteDataSynchronizationNaturalIdToEntity in interface DataSynchronizationDao
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.technical.synchronization.DataSynchronizationDao#remoteDataSynchronizationNaturalIdToEntity(fr.ifremer.allegro.technical.synchronization.generic.vo.RemoteDataSynchronizationNaturalId, fr.ifremer.allegro.technical.synchronization.DataSynchronization)

toClusterDataSynchronizationCollection

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

Specified by:
toClusterDataSynchronizationCollection in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toClusterDataSynchronizationCollection(java.util.Collection)

toClusterDataSynchronizationArray

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

Specified by:
toClusterDataSynchronizationArray in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toClusterDataSynchronizationArray(java.util.Collection)

toClusterDataSynchronization

protected ClusterDataSynchronization toClusterDataSynchronization(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 DataSynchronizationDaoImpl class if you intend to use reporting queries.

See Also:
DataSynchronizationDao.toClusterDataSynchronization(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

clusterDataSynchronizationToEntityCollection

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

Specified by:
clusterDataSynchronizationToEntityCollection in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.clusterDataSynchronizationToEntityCollection(java.util.Collection)

toClusterDataSynchronization

public void toClusterDataSynchronization(DataSynchronization source,
                                         ClusterDataSynchronization target)
Description copied from interface: DataSynchronizationDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterDataSynchronization(), 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:
toClusterDataSynchronization in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toClusterDataSynchronization(fr.ifremer.allegro.technical.synchronization.DataSynchronization, fr.ifremer.allegro.technical.synchronization.generic.cluster.ClusterDataSynchronization)

toClusterDataSynchronization

public ClusterDataSynchronization toClusterDataSynchronization(DataSynchronization entity)
Description copied from interface: DataSynchronizationDao
Converts this DAO's entity to an object of type ClusterDataSynchronization.

Specified by:
toClusterDataSynchronization in interface DataSynchronizationDao
See Also:
DataSynchronizationDao.toClusterDataSynchronization(fr.ifremer.allegro.technical.synchronization.DataSynchronization)

clusterDataSynchronizationToEntity

public void clusterDataSynchronizationToEntity(ClusterDataSynchronization source,
                                               DataSynchronization target,
                                               boolean copyIfNull)
Description copied from interface: DataSynchronizationDao
Copies the fields of ClusterDataSynchronization to the specified entity.

Specified by:
clusterDataSynchronizationToEntity in interface DataSynchronizationDao
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.technical.synchronization.DataSynchronizationDao#clusterDataSynchronizationToEntity(fr.ifremer.allegro.technical.synchronization.generic.cluster.ClusterDataSynchronization, fr.ifremer.allegro.technical.synchronization.DataSynchronization)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.