fr.ifremer.allegro.administration.user
Class ManagedDataDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.administration.user.ManagedDataDaoBase
All Implemented Interfaces:
ManagedDataDao
Direct Known Subclasses:
ManagedDataDaoImpl

public abstract class ManagedDataDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ManagedDataDao

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

See Also:
ManagedData

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.ManagedDataDao
TRANSFORM_CLUSTERMANAGEDDATA, TRANSFORM_NONE, TRANSFORM_REMOTEMANAGEDDATAFULLVO, TRANSFORM_REMOTEMANAGEDDATANATURALID
 
Constructor Summary
ManagedDataDaoBase()
           
 
Method Summary
 void clusterManagedDataToEntity(ClusterManagedData source, ManagedData target, boolean copyIfNull)
          Copies the fields of ClusterManagedData to the specified entity.
 void clusterManagedDataToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterManagedData to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.user.ManagedData and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedData) with an additional flag called transform.
 java.lang.Object create(int transform, ManagedData managedData)
           Does the same thing as ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedData) with an additional flag called transform.
 java.lang.Object create(int transform, ManagedDataType managedDataType, User managerUser)
           Does the same thing as ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedDataType,fr.ifremer.allegro.administration.user.User) with an additional flag called transform.
 java.lang.Object create(int transform, java.sql.Timestamp updateDate, User managerUser, User supervisorUser, ManagedDataType managedDataType, java.util.Collection vesselManagePeriods, java.util.Collection managedDataTransfers, java.util.Collection viewerUser)
           Does the same thing as ManagedDataDao.create(java.sql.Timestamp,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.ManagedDataType,java.util.Collection,java.util.Collection,java.util.Collection) with an additional flag called transform.
 ManagedData create(ManagedData managedData)
          Creates an instance of fr.ifremer.allegro.administration.user.ManagedData and adds it to the persistent store.
 ManagedData create(ManagedDataType managedDataType, User managerUser)
           Creates a new fr.ifremer.allegro.administration.user.ManagedData instance from only required properties (attributes and association ends) and adds it to the persistent store.
 ManagedData create(java.sql.Timestamp updateDate, User managerUser, User supervisorUser, ManagedDataType managedDataType, java.util.Collection vesselManagePeriods, java.util.Collection managedDataTransfers, java.util.Collection viewerUser)
           Creates a new fr.ifremer.allegro.administration.user.ManagedData instance from all attributes and properties and adds it to the persistent store.
 ManagedData createFromClusterManagedData(ClusterManagedData clusterManagedData)
           
 ManagedData findManagedDataById(java.lang.Integer id)
           
 java.lang.Object findManagedDataById(int transform, java.lang.Integer id)
           Does the same thing as ManagedDataDao.findManagedDataById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findManagedDataById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataDao.findManagedDataById(int, java.lang.Integer) with an additional argument called queryString.
 ManagedData findManagedDataById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataDao.findManagedDataById(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findManagedDataByManagedDataType(int transform, int pageNumber, int pageSize, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(int, fr.ifremer.allegro.administration.user.ManagedDataType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagedDataType(int pageNumber, int pageSize, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagedDataType(int transform, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType) with an additional flag called transform.
 java.util.Collection findManagedDataByManagedDataType(int transform, java.lang.String queryString, int pageNumber, int pageSize, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(int, String, fr.ifremer.allegro.administration.user.ManagedDataType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagedDataType(int transform, java.lang.String queryString, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(int, fr.ifremer.allegro.administration.user.ManagedDataType) with an additional argument called queryString.
 java.util.Collection findManagedDataByManagedDataType(ManagedDataType managedDataType)
           
 java.util.Collection findManagedDataByManagedDataType(java.lang.String queryString, int pageNumber, int pageSize, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(String, fr.ifremer.allegro.administration.user.ManagedDataType) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagedDataType(java.lang.String queryString, ManagedDataType managedDataType)
           Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType) with an additional argument called queryString.
 java.util.Collection findManagedDataByManagerUser(int transform, int pageNumber, int pageSize, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(int, fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagerUser(int pageNumber, int pageSize, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagerUser(int transform, java.lang.String queryString, int pageNumber, int pageSize, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(int, String, fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagerUser(int transform, java.lang.String queryString, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(int, fr.ifremer.allegro.administration.user.User) with an additional argument called queryString.
 java.util.Collection findManagedDataByManagerUser(int transform, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User) with an additional flag called transform.
 java.util.Collection findManagedDataByManagerUser(java.lang.String queryString, int pageNumber, int pageSize, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(String, fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataByManagerUser(java.lang.String queryString, User managerUser)
           Does the same thing as ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User) with an additional argument called queryString.
 java.util.Collection findManagedDataByManagerUser(User managerUser)
           
 ManagedData findManagedDataByNaturalId(java.lang.Integer id)
           
 java.lang.Object findManagedDataByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as ManagedDataDao.findManagedDataByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findManagedDataByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataDao.findManagedDataByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 ManagedData findManagedDataByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataDao.findManagedDataByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findManagedDataBySupervisorUser(int transform, int pageNumber, int pageSize, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(int, fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataBySupervisorUser(int pageNumber, int pageSize, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataBySupervisorUser(int transform, java.lang.String queryString, int pageNumber, int pageSize, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(int, String, fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataBySupervisorUser(int transform, java.lang.String queryString, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(int, fr.ifremer.allegro.administration.user.User) with an additional argument called queryString.
 java.util.Collection findManagedDataBySupervisorUser(int transform, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User) with an additional flag called transform.
 java.util.Collection findManagedDataBySupervisorUser(java.lang.String queryString, int pageNumber, int pageSize, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(String, fr.ifremer.allegro.administration.user.User) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataBySupervisorUser(java.lang.String queryString, User supervisorUser)
           Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User) with an additional argument called queryString.
 java.util.Collection findManagedDataBySupervisorUser(User supervisorUser)
           
 ClusterManagedData[] getAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize, java.lang.Integer[] managedDataIds)
           
 java.util.Collection getAllManagedData()
           
 java.util.Collection getAllManagedData(int transform)
           Does the same thing as ManagedDataDao.getAllManagedData() with an additional flag called transform.
 java.util.Collection getAllManagedData(int pageNumber, int pageSize)
           Does the same thing as ManagedDataDao.getAllManagedData() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedData(int transform, int pageNumber, int pageSize)
           Does the same thing as ManagedDataDao.getAllManagedData(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedData(int transform, java.lang.String queryString)
           Does the same thing as ManagedDataDao.getAllManagedData(int) with an additional argument called queryString.
 java.util.Collection getAllManagedData(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ManagedDataDao.getAllManagedData(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedData(java.lang.String queryString)
           Does the same thing as ManagedDataDao.getAllManagedData() with an additional argument called queryString.
 java.util.Collection getAllManagedData(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ManagedDataDao.getAllManagedData(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllManagedDataSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllManagedDataSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataDao.getAllManagedDataSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllManagedDataSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  ManagedDataTransferDao getManagedDataTransferDao()
          Gets the reference to managedDataTransferDao.
protected  ManagedDataTypeDao getManagedDataTypeDao()
          Gets the reference to managedDataTypeDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  UserDao getUserDao()
          Gets the reference to userDao.
protected  VesselManagePeriodDao getVesselManagePeriodDao()
          Gets the reference to vesselManagePeriodDao.
protected abstract  ManagedData handleCreateFromClusterManagedData(ClusterManagedData clusterManagedData)
          Performs the core logic for createFromClusterManagedData(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedData)
protected abstract  ClusterManagedData[] handleGetAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize, java.lang.Integer[] managedDataIds)
          Performs the core logic for getAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer, java.lang.Integer[])
 ManagedData load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.user.ManagedData from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as ManagedDataDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type ManagedData.
 java.util.Collection loadAll(int transform)
           Does the same thing as ManagedDataDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ManagedDataDao.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 ManagedDataDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteManagedDataFullVOToEntity(RemoteManagedDataFullVO source, ManagedData target, boolean copyIfNull)
          Copies the fields of RemoteManagedDataFullVO to the specified entity.
 void remoteManagedDataFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteManagedDataFullVO to this DAO's entity.
 void remoteManagedDataNaturalIdToEntity(RemoteManagedDataNaturalId source, ManagedData target, boolean copyIfNull)
          Copies the fields of RemoteManagedDataNaturalId to the specified entity.
 void remoteManagedDataNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteManagedDataNaturalId 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.administration.user.ManagedData having the given identifier from the persistent store.
 void remove(ManagedData managedData)
          Removes the instance of fr.ifremer.allegro.administration.user.ManagedData 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 ManagedDataDao.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 setManagedDataTransferDao(ManagedDataTransferDao managedDataTransferDao)
          Sets the reference to managedDataTransferDao.
 void setManagedDataTypeDao(ManagedDataTypeDao managedDataTypeDao)
          Sets the reference to managedDataTypeDao.
 void setUserDao(UserDao userDao)
          Sets the reference to userDao.
 void setVesselManagePeriodDao(VesselManagePeriodDao vesselManagePeriodDao)
          Sets the reference to vesselManagePeriodDao.
 ClusterManagedData toClusterManagedData(ManagedData entity)
          Converts this DAO's entity to an object of type ClusterManagedData.
 void toClusterManagedData(ManagedData source, ClusterManagedData target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterManagedData toClusterManagedData(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterManagedData[] toClusterManagedDataArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterManagedData.
 void toClusterManagedDataCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterManagedData.
protected  ManagedData toEntity(java.lang.Object[] row)
           
 RemoteManagedDataFullVO toRemoteManagedDataFullVO(ManagedData entity)
          Converts this DAO's entity to an object of type RemoteManagedDataFullVO.
 void toRemoteManagedDataFullVO(ManagedData source, RemoteManagedDataFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteManagedDataFullVO toRemoteManagedDataFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteManagedDataFullVO[] toRemoteManagedDataFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteManagedDataFullVO.
 void toRemoteManagedDataFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteManagedDataFullVO.
 RemoteManagedDataNaturalId toRemoteManagedDataNaturalId(ManagedData entity)
          Converts this DAO's entity to an object of type RemoteManagedDataNaturalId.
 void toRemoteManagedDataNaturalId(ManagedData source, RemoteManagedDataNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteManagedDataNaturalId toRemoteManagedDataNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteManagedDataNaturalId[] toRemoteManagedDataNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteManagedDataNaturalId.
 void toRemoteManagedDataNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteManagedDataNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.user.ManagedData) method.
protected  java.lang.Object transformEntity(int transform, ManagedData 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.administration.user.ManagedDataDao, please note that the ManagedDataDao.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(ManagedData managedData)
          Updates the managedData 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.administration.user.ManagedDataDao
clusterManagedDataToEntity, remoteManagedDataFullVOToEntity, remoteManagedDataNaturalIdToEntity
 

Constructor Detail

ManagedDataDaoBase

public ManagedDataDaoBase()
Method Detail

setUserDao

public void setUserDao(UserDao userDao)
Sets the reference to userDao.


getUserDao

protected UserDao getUserDao()
Gets the reference to userDao.


setManagedDataTypeDao

public void setManagedDataTypeDao(ManagedDataTypeDao managedDataTypeDao)
Sets the reference to managedDataTypeDao.


getManagedDataTypeDao

protected ManagedDataTypeDao getManagedDataTypeDao()
Gets the reference to managedDataTypeDao.


setManagedDataTransferDao

public void setManagedDataTransferDao(ManagedDataTransferDao managedDataTransferDao)
Sets the reference to managedDataTransferDao.


getManagedDataTransferDao

protected ManagedDataTransferDao getManagedDataTransferDao()
Gets the reference to managedDataTransferDao.


setVesselManagePeriodDao

public void setVesselManagePeriodDao(VesselManagePeriodDao vesselManagePeriodDao)
Sets the reference to vesselManagePeriodDao.


getVesselManagePeriodDao

protected VesselManagePeriodDao getVesselManagePeriodDao()
Gets the reference to vesselManagePeriodDao.


load

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

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

load

public ManagedData load(java.lang.Integer id)
Description copied from interface: ManagedDataDao
Loads an instance of fr.ifremer.allegro.administration.user.ManagedData from the persistent store.

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public ManagedData create(ManagedData managedData)
Description copied from interface: ManagedDataDao
Creates an instance of fr.ifremer.allegro.administration.user.ManagedData and adds it to the persistent store.

Specified by:
create in interface ManagedDataDao
See Also:
ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedData)

create

public java.lang.Object create(int transform,
                               ManagedData managedData)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedData) 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 ManagedDataDao
See Also:
ManagedDataDao.create(int transform, fr.ifremer.allegro.administration.user.ManagedData)

create

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

Specified by:
create in interface ManagedDataDao
Parameters:
entities - the collection of fr.ifremer.allegro.administration.user.ManagedData instances to create.
Returns:
the created instances.
See Also:
ManagedDataDao.create(java.util.Collection)

create

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

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

create

public ManagedData create(java.sql.Timestamp updateDate,
                          User managerUser,
                          User supervisorUser,
                          ManagedDataType managedDataType,
                          java.util.Collection vesselManagePeriods,
                          java.util.Collection managedDataTransfers,
                          java.util.Collection viewerUser)
Description copied from interface: ManagedDataDao

Creates a new fr.ifremer.allegro.administration.user.ManagedData instance from all attributes and properties and adds it to the persistent store.

Specified by:
create in interface ManagedDataDao
See Also:
ManagedDataDao.create(java.sql.Timestamp,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.ManagedDataType,java.util.Collection,java.util.Collection,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.sql.Timestamp updateDate,
                               User managerUser,
                               User supervisorUser,
                               ManagedDataType managedDataType,
                               java.util.Collection vesselManagePeriods,
                               java.util.Collection managedDataTransfers,
                               java.util.Collection viewerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.create(java.sql.Timestamp,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.ManagedDataType,java.util.Collection,java.util.Collection,java.util.Collection) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface ManagedDataDao
See Also:
ManagedDataDao.create(int, java.sql.Timestamp,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.User,fr.ifremer.allegro.administration.user.ManagedDataType,java.util.Collection,java.util.Collection,java.util.Collection)

create

public ManagedData create(ManagedDataType managedDataType,
                          User managerUser)
Description copied from interface: ManagedDataDao

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

Specified by:
create in interface ManagedDataDao
See Also:
ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedDataType,fr.ifremer.allegro.administration.user.User)

create

public java.lang.Object create(int transform,
                               ManagedDataType managedDataType,
                               User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.create(fr.ifremer.allegro.administration.user.ManagedDataType,fr.ifremer.allegro.administration.user.User) 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 ManagedDataDao
See Also:
ManagedDataDao.create(int, fr.ifremer.allegro.administration.user.ManagedDataType,fr.ifremer.allegro.administration.user.User)

update

public void update(ManagedData managedData)
Description copied from interface: ManagedDataDao
Updates the managedData instance in the persistent store.

Specified by:
update in interface ManagedDataDao
See Also:
ManagedDataDao.update(fr.ifremer.allegro.administration.user.ManagedData)

update

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

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

remove

public void remove(ManagedData managedData)
Description copied from interface: ManagedDataDao
Removes the instance of fr.ifremer.allegro.administration.user.ManagedData from the persistent store.

Specified by:
remove in interface ManagedDataDao
See Also:
ManagedDataDao.remove(fr.ifremer.allegro.administration.user.ManagedData)

remove

public void remove(java.lang.Integer id)
Description copied from interface: ManagedDataDao
Removes the instance of fr.ifremer.allegro.administration.user.ManagedData having the given identifier from the persistent store.

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

remove

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

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

getAllManagedData

public java.util.Collection getAllManagedData()
Specified by:
getAllManagedData in interface ManagedDataDao
See Also:
ManagedDataDao.getAllManagedData()

getAllManagedData

public java.util.Collection getAllManagedData(int transform)
Description copied from interface: ManagedDataDao

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

getAllManagedData

public java.util.Collection getAllManagedData(java.lang.String queryString)
Description copied from interface: ManagedDataDao

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

Specified by:
getAllManagedData in interface ManagedDataDao
See Also:
ManagedDataDao.getAllManagedData(java.lang.String)

getAllManagedData

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

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

getAllManagedData

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

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

getAllManagedData

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

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

Specified by:
getAllManagedData in interface ManagedDataDao
See Also:
ManagedDataDao.getAllManagedData(int, String)

getAllManagedData

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

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

getAllManagedData

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

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

findManagedDataById

public ManagedData findManagedDataById(java.lang.Integer id)
Specified by:
findManagedDataById in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataById(java.lang.Integer)

findManagedDataById

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

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

findManagedDataById

public ManagedData findManagedDataById(java.lang.String queryString,
                                       java.lang.Integer id)
Description copied from interface: ManagedDataDao

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

Specified by:
findManagedDataById in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataById(java.lang.String, java.lang.Integer)

findManagedDataById

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

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

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

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(User supervisorUser)
Specified by:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(int transform,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User) 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:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(int, fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(java.lang.String queryString,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User).

Specified by:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(java.lang.String, fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(int pageNumber,
                                                            int pageSize,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(fr.ifremer.allegro.administration.user.User) 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:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(java.lang.String queryString,
                                                            int pageNumber,
                                                            int pageSize,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(String, fr.ifremer.allegro.administration.user.User) 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:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(String, int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(int transform,
                                                            java.lang.String queryString,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(int, fr.ifremer.allegro.administration.user.User) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ManagedDataDao.findManagedDataBySupervisorUser(int, fr.ifremer.allegro.administration.user.User supervisorUser).

Specified by:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(int, String, fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(int transform,
                                                            int pageNumber,
                                                            int pageSize,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(int, fr.ifremer.allegro.administration.user.User) 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:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(int, int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataBySupervisorUser

public java.util.Collection findManagedDataBySupervisorUser(int transform,
                                                            java.lang.String queryString,
                                                            int pageNumber,
                                                            int pageSize,
                                                            User supervisorUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataBySupervisorUser(int, String, fr.ifremer.allegro.administration.user.User) 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:
findManagedDataBySupervisorUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataBySupervisorUser(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(ManagedDataType managedDataType)
Specified by:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(int transform,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType) 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:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(int, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(java.lang.String queryString,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType).

Specified by:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(java.lang.String, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(int pageNumber,
                                                             int pageSize,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType) 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:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(int, int, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(String, fr.ifremer.allegro.administration.user.ManagedDataType) 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:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(String, int, int, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(int transform,
                                                             java.lang.String queryString,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(int, fr.ifremer.allegro.administration.user.ManagedDataType) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ManagedDataDao.findManagedDataByManagedDataType(int, fr.ifremer.allegro.administration.user.ManagedDataType managedDataType).

Specified by:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(int, String, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(int transform,
                                                             int pageNumber,
                                                             int pageSize,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(int, fr.ifremer.allegro.administration.user.ManagedDataType) 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:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(int, int, int, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagedDataType

public java.util.Collection findManagedDataByManagedDataType(int transform,
                                                             java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             ManagedDataType managedDataType)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagedDataType(int, String, fr.ifremer.allegro.administration.user.ManagedDataType) 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:
findManagedDataByManagedDataType in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagedDataType(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.ManagedDataType)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(User managerUser)
Specified by:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(int transform,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User) 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:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(int, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(java.lang.String queryString,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User).

Specified by:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(java.lang.String, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(int pageNumber,
                                                         int pageSize,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(fr.ifremer.allegro.administration.user.User) 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:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(String, fr.ifremer.allegro.administration.user.User) 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:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(String, int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(int transform,
                                                         java.lang.String queryString,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(int, fr.ifremer.allegro.administration.user.User) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ManagedDataDao.findManagedDataByManagerUser(int, fr.ifremer.allegro.administration.user.User managerUser).

Specified by:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(int, String, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(int transform,
                                                         int pageNumber,
                                                         int pageSize,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(int, fr.ifremer.allegro.administration.user.User) 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:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(int, int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataByManagerUser

public java.util.Collection findManagedDataByManagerUser(int transform,
                                                         java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         User managerUser)
Description copied from interface: ManagedDataDao

Does the same thing as ManagedDataDao.findManagedDataByManagerUser(int, String, fr.ifremer.allegro.administration.user.User) 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:
findManagedDataByManagerUser in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByManagerUser(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.User)

findManagedDataByNaturalId

public ManagedData findManagedDataByNaturalId(java.lang.Integer id)
Specified by:
findManagedDataByNaturalId in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByNaturalId(java.lang.Integer)

findManagedDataByNaturalId

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

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

findManagedDataByNaturalId

public ManagedData findManagedDataByNaturalId(java.lang.String queryString,
                                              java.lang.Integer id)
Description copied from interface: ManagedDataDao

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

Specified by:
findManagedDataByNaturalId in interface ManagedDataDao
See Also:
ManagedDataDao.findManagedDataByNaturalId(java.lang.String, java.lang.Integer)

findManagedDataByNaturalId

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

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

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

getAllManagedDataSinceDateSynchro

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

getAllManagedDataSinceDateSynchro

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

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

getAllManagedDataSinceDateSynchro

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

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

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

getAllManagedDataSinceDateSynchro

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

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

getAllManagedDataSinceDateSynchro

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

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

getAllManagedDataSinceDateSynchro

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

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

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

getAllManagedDataSinceDateSynchro

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

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

getAllManagedDataSinceDateSynchro

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

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

createFromClusterManagedData

public ManagedData createFromClusterManagedData(ClusterManagedData clusterManagedData)
Specified by:
createFromClusterManagedData in interface ManagedDataDao
See Also:
ManagedDataDao.createFromClusterManagedData(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedData)

handleCreateFromClusterManagedData

protected abstract ManagedData handleCreateFromClusterManagedData(ClusterManagedData clusterManagedData)
                                                           throws java.lang.Exception
Performs the core logic for createFromClusterManagedData(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedData)

Throws:
java.lang.Exception

getAllClusterManagedDataSinceDateSynchro

public ClusterManagedData[] getAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                     java.lang.Integer userId,
                                                                     java.lang.Integer[] registrationLocationIds,
                                                                     java.lang.Integer pageNumber,
                                                                     java.lang.Integer pageSize,
                                                                     java.lang.Integer[] managedDataIds)
Specified by:
getAllClusterManagedDataSinceDateSynchro in interface ManagedDataDao
See Also:
ManagedDataDao.getAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer, java.lang.Integer[])

handleGetAllClusterManagedDataSinceDateSynchro

protected abstract ClusterManagedData[] handleGetAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                                       java.lang.Integer userId,
                                                                                       java.lang.Integer[] registrationLocationIds,
                                                                                       java.lang.Integer pageNumber,
                                                                                       java.lang.Integer pageSize,
                                                                                       java.lang.Integer[] managedDataIds)
                                                                                throws java.lang.Exception
Performs the core logic for getAllClusterManagedDataSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer, java.lang.Integer[])

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           ManagedData 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.administration.user.ManagedDataDao, please note that the ManagedDataDao.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 ManagedDataDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteManagedDataFullVOCollection

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

Specified by:
toRemoteManagedDataFullVOCollection in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataFullVOCollection(java.util.Collection)

toRemoteManagedDataFullVOArray

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

Specified by:
toRemoteManagedDataFullVOArray in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataFullVOArray(java.util.Collection)

toRemoteManagedDataFullVO

protected RemoteManagedDataFullVO toRemoteManagedDataFullVO(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 ManagedDataDaoImpl class if you intend to use reporting queries.

See Also:
ManagedDataDao.toRemoteManagedDataFullVO(fr.ifremer.allegro.administration.user.ManagedData)

remoteManagedDataFullVOToEntityCollection

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

Specified by:
remoteManagedDataFullVOToEntityCollection in interface ManagedDataDao
See Also:
ManagedDataDao.remoteManagedDataFullVOToEntityCollection(java.util.Collection)

toRemoteManagedDataFullVO

public void toRemoteManagedDataFullVO(ManagedData source,
                                      RemoteManagedDataFullVO target)
Description copied from interface: ManagedDataDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteManagedDataFullVO(), 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:
toRemoteManagedDataFullVO in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataFullVO(fr.ifremer.allegro.administration.user.ManagedData, fr.ifremer.allegro.administration.user.generic.vo.RemoteManagedDataFullVO)

toRemoteManagedDataFullVO

public RemoteManagedDataFullVO toRemoteManagedDataFullVO(ManagedData entity)
Description copied from interface: ManagedDataDao
Converts this DAO's entity to an object of type RemoteManagedDataFullVO.

Specified by:
toRemoteManagedDataFullVO in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataFullVO(fr.ifremer.allegro.administration.user.ManagedData)

remoteManagedDataFullVOToEntity

public void remoteManagedDataFullVOToEntity(RemoteManagedDataFullVO source,
                                            ManagedData target,
                                            boolean copyIfNull)
Description copied from interface: ManagedDataDao
Copies the fields of RemoteManagedDataFullVO to the specified entity.

Specified by:
remoteManagedDataFullVOToEntity in interface ManagedDataDao
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.administration.user.ManagedDataDao#remoteManagedDataFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteManagedDataFullVO, fr.ifremer.allegro.administration.user.ManagedData)

toRemoteManagedDataNaturalIdCollection

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

Specified by:
toRemoteManagedDataNaturalIdCollection in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataNaturalIdCollection(java.util.Collection)

toRemoteManagedDataNaturalIdArray

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

Specified by:
toRemoteManagedDataNaturalIdArray in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataNaturalIdArray(java.util.Collection)

toRemoteManagedDataNaturalId

protected RemoteManagedDataNaturalId toRemoteManagedDataNaturalId(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 ManagedDataDaoImpl class if you intend to use reporting queries.

See Also:
ManagedDataDao.toRemoteManagedDataNaturalId(fr.ifremer.allegro.administration.user.ManagedData)

remoteManagedDataNaturalIdToEntityCollection

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

Specified by:
remoteManagedDataNaturalIdToEntityCollection in interface ManagedDataDao
See Also:
ManagedDataDao.remoteManagedDataNaturalIdToEntityCollection(java.util.Collection)

toRemoteManagedDataNaturalId

public void toRemoteManagedDataNaturalId(ManagedData source,
                                         RemoteManagedDataNaturalId target)
Description copied from interface: ManagedDataDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteManagedDataNaturalId(), 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:
toRemoteManagedDataNaturalId in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataNaturalId(fr.ifremer.allegro.administration.user.ManagedData, fr.ifremer.allegro.administration.user.generic.vo.RemoteManagedDataNaturalId)

toRemoteManagedDataNaturalId

public RemoteManagedDataNaturalId toRemoteManagedDataNaturalId(ManagedData entity)
Description copied from interface: ManagedDataDao
Converts this DAO's entity to an object of type RemoteManagedDataNaturalId.

Specified by:
toRemoteManagedDataNaturalId in interface ManagedDataDao
See Also:
ManagedDataDao.toRemoteManagedDataNaturalId(fr.ifremer.allegro.administration.user.ManagedData)

remoteManagedDataNaturalIdToEntity

public void remoteManagedDataNaturalIdToEntity(RemoteManagedDataNaturalId source,
                                               ManagedData target,
                                               boolean copyIfNull)
Description copied from interface: ManagedDataDao
Copies the fields of RemoteManagedDataNaturalId to the specified entity.

Specified by:
remoteManagedDataNaturalIdToEntity in interface ManagedDataDao
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.administration.user.ManagedDataDao#remoteManagedDataNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteManagedDataNaturalId, fr.ifremer.allegro.administration.user.ManagedData)

toClusterManagedDataCollection

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

Specified by:
toClusterManagedDataCollection in interface ManagedDataDao
See Also:
ManagedDataDao.toClusterManagedDataCollection(java.util.Collection)

toClusterManagedDataArray

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

Specified by:
toClusterManagedDataArray in interface ManagedDataDao
See Also:
ManagedDataDao.toClusterManagedDataArray(java.util.Collection)

toClusterManagedData

protected ClusterManagedData toClusterManagedData(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 ManagedDataDaoImpl class if you intend to use reporting queries.

See Also:
ManagedDataDao.toClusterManagedData(fr.ifremer.allegro.administration.user.ManagedData)

clusterManagedDataToEntityCollection

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

Specified by:
clusterManagedDataToEntityCollection in interface ManagedDataDao
See Also:
ManagedDataDao.clusterManagedDataToEntityCollection(java.util.Collection)

toClusterManagedData

public void toClusterManagedData(ManagedData source,
                                 ClusterManagedData target)
Description copied from interface: ManagedDataDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterManagedData(), 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:
toClusterManagedData in interface ManagedDataDao
See Also:
ManagedDataDao.toClusterManagedData(fr.ifremer.allegro.administration.user.ManagedData, fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedData)

toClusterManagedData

public ClusterManagedData toClusterManagedData(ManagedData entity)
Description copied from interface: ManagedDataDao
Converts this DAO's entity to an object of type ClusterManagedData.

Specified by:
toClusterManagedData in interface ManagedDataDao
See Also:
ManagedDataDao.toClusterManagedData(fr.ifremer.allegro.administration.user.ManagedData)

clusterManagedDataToEntity

public void clusterManagedDataToEntity(ClusterManagedData source,
                                       ManagedData target,
                                       boolean copyIfNull)
Description copied from interface: ManagedDataDao
Copies the fields of ClusterManagedData to the specified entity.

Specified by:
clusterManagedDataToEntity in interface ManagedDataDao
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.administration.user.ManagedDataDao#clusterManagedDataToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedData, fr.ifremer.allegro.administration.user.ManagedData)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.