fr.ifremer.allegro.administration.user
Class ManagedDataTypeDaoBase

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

public abstract class ManagedDataTypeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ManagedDataTypeDao

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

See Also:
ManagedDataType

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.ManagedDataTypeDao
TRANSFORM_CLUSTERMANAGEDDATATYPE, TRANSFORM_NONE, TRANSFORM_REMOTEMANAGEDDATATYPEFULLVO, TRANSFORM_REMOTEMANAGEDDATATYPENATURALID
 
Constructor Summary
ManagedDataTypeDaoBase()
           
 
Method Summary
 void clusterManagedDataTypeToEntity(ClusterManagedDataType source, ManagedDataType target, boolean copyIfNull)
          Copies the fields of ClusterManagedDataType to the specified entity.
 void clusterManagedDataTypeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterManagedDataType to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.user.ManagedDataType and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ManagedDataTypeDao.create(fr.ifremer.allegro.administration.user.ManagedDataType) with an additional flag called transform.
 ManagedDataType create(java.lang.Integer id, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.administration.user.ManagedDataType instance from only required properties (attributes and association ends) and adds it to the persistent store.
 ManagedDataType create(java.lang.Integer id, java.lang.String name, java.sql.Timestamp updateDate, Status status)
           Creates a new fr.ifremer.allegro.administration.user.ManagedDataType instance from all attributes and properties and adds it to the persistent store.
 java.lang.Object create(int transform, java.lang.Integer id, java.lang.String name, Status status)
           Does the same thing as ManagedDataTypeDao.create(java.lang.Integer,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.Integer id, java.lang.String name, java.sql.Timestamp updateDate, Status status)
           Does the same thing as ManagedDataTypeDao.create(java.lang.Integer,java.lang.String,java.sql.Timestamp,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, ManagedDataType managedDataType)
           Does the same thing as ManagedDataTypeDao.create(fr.ifremer.allegro.administration.user.ManagedDataType) with an additional flag called transform.
 ManagedDataType create(ManagedDataType managedDataType)
          Creates an instance of fr.ifremer.allegro.administration.user.ManagedDataType and adds it to the persistent store.
 ManagedDataType createFromClusterManagedDataType(ClusterManagedDataType clusterManagedDataType)
           
 ManagedDataType findManagedDataTypeById(java.lang.Integer id)
           
 java.lang.Object findManagedDataTypeById(int transform, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findManagedDataTypeById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeById(int, java.lang.Integer) with an additional argument called queryString.
 ManagedDataType findManagedDataTypeById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeById(java.lang.Integer) with an additional argument called queryString.
 ManagedDataType findManagedDataTypeByNaturalId(java.lang.Integer id)
           
 java.lang.Object findManagedDataTypeByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findManagedDataTypeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 ManagedDataType findManagedDataTypeByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findManagedDataTypeByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataTypeByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataTypeByStatus(int transform, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findManagedDataTypeByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataTypeByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findManagedDataTypeByStatus(Status status)
           
 java.util.Collection findManagedDataTypeByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findManagedDataTypeByStatus(java.lang.String queryString, Status status)
           Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterManagedDataType[] getAllClusterManagedDataTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllManagedDataType()
           
 java.util.Collection getAllManagedDataType(int transform)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType() with an additional flag called transform.
 java.util.Collection getAllManagedDataType(int pageNumber, int pageSize)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataType(int transform, int pageNumber, int pageSize)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataType(int transform, java.lang.String queryString)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType(int) with an additional argument called queryString.
 java.util.Collection getAllManagedDataType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataType(java.lang.String queryString)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType() with an additional argument called queryString.
 java.util.Collection getAllManagedDataType(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataType(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ManagedDataTypeDao.getAllManagedDataTypeSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllManagedDataTypeSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  ManagedDataType handleCreateFromClusterManagedDataType(ClusterManagedDataType clusterManagedDataType)
          Performs the core logic for createFromClusterManagedDataType(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedDataType)
protected abstract  ClusterManagedDataType[] handleGetAllClusterManagedDataTypeSinceDateSynchro(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 getAllClusterManagedDataTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 ManagedDataType load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.user.ManagedDataType from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as ManagedDataTypeDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type ManagedDataType.
 java.util.Collection loadAll(int transform)
           Does the same thing as ManagedDataTypeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ManagedDataTypeDao.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 ManagedDataTypeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteManagedDataTypeFullVOToEntity(RemoteManagedDataTypeFullVO source, ManagedDataType target, boolean copyIfNull)
          Copies the fields of RemoteManagedDataTypeFullVO to the specified entity.
 void remoteManagedDataTypeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteManagedDataTypeFullVO to this DAO's entity.
 void remoteManagedDataTypeNaturalIdToEntity(RemoteManagedDataTypeNaturalId source, ManagedDataType target, boolean copyIfNull)
          Copies the fields of RemoteManagedDataTypeNaturalId to the specified entity.
 void remoteManagedDataTypeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteManagedDataTypeNaturalId 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.ManagedDataType having the given identifier from the persistent store.
 void remove(ManagedDataType managedDataType)
          Removes the instance of fr.ifremer.allegro.administration.user.ManagedDataType 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 ManagedDataTypeDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterManagedDataType toClusterManagedDataType(ManagedDataType entity)
          Converts this DAO's entity to an object of type ClusterManagedDataType.
 void toClusterManagedDataType(ManagedDataType source, ClusterManagedDataType target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterManagedDataType toClusterManagedDataType(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterManagedDataType[] toClusterManagedDataTypeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterManagedDataType.
 void toClusterManagedDataTypeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterManagedDataType.
protected  ManagedDataType toEntity(java.lang.Object[] row)
           
 RemoteManagedDataTypeFullVO toRemoteManagedDataTypeFullVO(ManagedDataType entity)
          Converts this DAO's entity to an object of type RemoteManagedDataTypeFullVO.
 void toRemoteManagedDataTypeFullVO(ManagedDataType source, RemoteManagedDataTypeFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteManagedDataTypeFullVO toRemoteManagedDataTypeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteManagedDataTypeFullVO[] toRemoteManagedDataTypeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteManagedDataTypeFullVO.
 void toRemoteManagedDataTypeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteManagedDataTypeFullVO.
 RemoteManagedDataTypeNaturalId toRemoteManagedDataTypeNaturalId(ManagedDataType entity)
          Converts this DAO's entity to an object of type RemoteManagedDataTypeNaturalId.
 void toRemoteManagedDataTypeNaturalId(ManagedDataType source, RemoteManagedDataTypeNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteManagedDataTypeNaturalId toRemoteManagedDataTypeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteManagedDataTypeNaturalId[] toRemoteManagedDataTypeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteManagedDataTypeNaturalId.
 void toRemoteManagedDataTypeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteManagedDataTypeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.user.ManagedDataType) method.
protected  java.lang.Object transformEntity(int transform, ManagedDataType 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.ManagedDataTypeDao, please note that the ManagedDataTypeDao.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(ManagedDataType managedDataType)
          Updates the managedDataType 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.ManagedDataTypeDao
clusterManagedDataTypeToEntity, remoteManagedDataTypeFullVOToEntity, remoteManagedDataTypeNaturalIdToEntity
 

Constructor Detail

ManagedDataTypeDaoBase

public ManagedDataTypeDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

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

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

create

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

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

create

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

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

create

public ManagedDataType create(java.lang.Integer id,
                              java.lang.String name,
                              java.sql.Timestamp updateDate,
                              Status status)
Description copied from interface: ManagedDataTypeDao

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

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

create

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

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

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

create

public ManagedDataType create(java.lang.Integer id,
                              java.lang.String name,
                              Status status)
Description copied from interface: ManagedDataTypeDao

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

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

create

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

Does the same thing as ManagedDataTypeDao.create(java.lang.Integer,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOTWILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

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

update

public void update(ManagedDataType managedDataType)
Description copied from interface: ManagedDataTypeDao
Updates the managedDataType instance in the persistent store.

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

update

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

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

remove

public void remove(ManagedDataType managedDataType)
Description copied from interface: ManagedDataTypeDao
Removes the instance of fr.ifremer.allegro.administration.user.ManagedDataType from the persistent store.

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

remove

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

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

remove

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

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

getAllManagedDataType

public java.util.Collection getAllManagedDataType()
Specified by:
getAllManagedDataType in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.getAllManagedDataType()

getAllManagedDataType

public java.util.Collection getAllManagedDataType(int transform)
Description copied from interface: ManagedDataTypeDao

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

getAllManagedDataType

public java.util.Collection getAllManagedDataType(java.lang.String queryString)
Description copied from interface: ManagedDataTypeDao

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

Specified by:
getAllManagedDataType in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.getAllManagedDataType(java.lang.String)

getAllManagedDataType

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

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

getAllManagedDataType

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

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

getAllManagedDataType

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

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

Specified by:
getAllManagedDataType in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.getAllManagedDataType(int, String)

getAllManagedDataType

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

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

getAllManagedDataType

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

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

findManagedDataTypeById

public ManagedDataType findManagedDataTypeById(java.lang.Integer id)
Specified by:
findManagedDataTypeById in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeById(java.lang.Integer)

findManagedDataTypeById

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

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

findManagedDataTypeById

public ManagedDataType findManagedDataTypeById(java.lang.String queryString,
                                               java.lang.Integer id)
Description copied from interface: ManagedDataTypeDao

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

Specified by:
findManagedDataTypeById in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeById(java.lang.String, java.lang.Integer)

findManagedDataTypeById

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

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

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

findManagedDataTypeByStatus

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

findManagedDataTypeByStatus

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

Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then finder results will NOT be transformed during retrieval. If this flag is any of the other constants defined here then finder results WILL BE passed through an operation which can optionally transform the entities (into value objects for example). By default, transformation does not occur.

Specified by:
findManagedDataTypeByStatus in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeByStatus(int, fr.ifremer.allegro.referential.Status)

findManagedDataTypeByStatus

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

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

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

findManagedDataTypeByStatus

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

Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findManagedDataTypeByStatus in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeByStatus(int, int, fr.ifremer.allegro.referential.Status)

findManagedDataTypeByStatus

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

Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

findManagedDataTypeByStatus

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

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

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

findManagedDataTypeByStatus

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

Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findManagedDataTypeByStatus in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeByStatus(int, int, int, fr.ifremer.allegro.referential.Status)

findManagedDataTypeByStatus

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

Does the same thing as ManagedDataTypeDao.findManagedDataTypeByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
findManagedDataTypeByStatus in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)

findManagedDataTypeByNaturalId

public ManagedDataType findManagedDataTypeByNaturalId(java.lang.Integer id)
Specified by:
findManagedDataTypeByNaturalId in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeByNaturalId(java.lang.Integer)

findManagedDataTypeByNaturalId

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

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

findManagedDataTypeByNaturalId

public ManagedDataType findManagedDataTypeByNaturalId(java.lang.String queryString,
                                                      java.lang.Integer id)
Description copied from interface: ManagedDataTypeDao

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

Specified by:
findManagedDataTypeByNaturalId in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.findManagedDataTypeByNaturalId(java.lang.String, java.lang.Integer)

findManagedDataTypeByNaturalId

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

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

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

getAllManagedDataTypeSinceDateSynchro

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

getAllManagedDataTypeSinceDateSynchro

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

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

getAllManagedDataTypeSinceDateSynchro

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

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

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

getAllManagedDataTypeSinceDateSynchro

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

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

getAllManagedDataTypeSinceDateSynchro

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

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

getAllManagedDataTypeSinceDateSynchro

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

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

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

getAllManagedDataTypeSinceDateSynchro

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

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

getAllManagedDataTypeSinceDateSynchro

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

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

createFromClusterManagedDataType

public ManagedDataType createFromClusterManagedDataType(ClusterManagedDataType clusterManagedDataType)
Specified by:
createFromClusterManagedDataType in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.createFromClusterManagedDataType(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedDataType)

handleCreateFromClusterManagedDataType

protected abstract ManagedDataType handleCreateFromClusterManagedDataType(ClusterManagedDataType clusterManagedDataType)
                                                                   throws java.lang.Exception
Performs the core logic for createFromClusterManagedDataType(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedDataType)

Throws:
java.lang.Exception

getAllClusterManagedDataTypeSinceDateSynchro

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

handleGetAllClusterManagedDataTypeSinceDateSynchro

protected abstract ClusterManagedDataType[] handleGetAllClusterManagedDataTypeSinceDateSynchro(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 getAllClusterManagedDataTypeSinceDateSynchro(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,
                                           ManagedDataType 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.ManagedDataTypeDao, please note that the ManagedDataTypeDao.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 ManagedDataTypeDao.TRANSFORM_NONE is assumed.

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

toEntity

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

toRemoteManagedDataTypeFullVOCollection

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

Specified by:
toRemoteManagedDataTypeFullVOCollection in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeFullVOCollection(java.util.Collection)

toRemoteManagedDataTypeFullVOArray

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

Specified by:
toRemoteManagedDataTypeFullVOArray in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeFullVOArray(java.util.Collection)

toRemoteManagedDataTypeFullVO

protected RemoteManagedDataTypeFullVO toRemoteManagedDataTypeFullVO(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 ManagedDataTypeDaoImpl class if you intend to use reporting queries.

See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeFullVO(fr.ifremer.allegro.administration.user.ManagedDataType)

remoteManagedDataTypeFullVOToEntityCollection

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

Specified by:
remoteManagedDataTypeFullVOToEntityCollection in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.remoteManagedDataTypeFullVOToEntityCollection(java.util.Collection)

toRemoteManagedDataTypeFullVO

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

toRemoteManagedDataTypeFullVO

public RemoteManagedDataTypeFullVO toRemoteManagedDataTypeFullVO(ManagedDataType entity)
Description copied from interface: ManagedDataTypeDao
Converts this DAO's entity to an object of type RemoteManagedDataTypeFullVO.

Specified by:
toRemoteManagedDataTypeFullVO in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeFullVO(fr.ifremer.allegro.administration.user.ManagedDataType)

remoteManagedDataTypeFullVOToEntity

public void remoteManagedDataTypeFullVOToEntity(RemoteManagedDataTypeFullVO source,
                                                ManagedDataType target,
                                                boolean copyIfNull)
Description copied from interface: ManagedDataTypeDao
Copies the fields of RemoteManagedDataTypeFullVO to the specified entity.

Specified by:
remoteManagedDataTypeFullVOToEntity in interface ManagedDataTypeDao
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.ManagedDataTypeDao#remoteManagedDataTypeFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteManagedDataTypeFullVO, fr.ifremer.allegro.administration.user.ManagedDataType)

toRemoteManagedDataTypeNaturalIdCollection

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

Specified by:
toRemoteManagedDataTypeNaturalIdCollection in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeNaturalIdCollection(java.util.Collection)

toRemoteManagedDataTypeNaturalIdArray

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

Specified by:
toRemoteManagedDataTypeNaturalIdArray in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeNaturalIdArray(java.util.Collection)

toRemoteManagedDataTypeNaturalId

protected RemoteManagedDataTypeNaturalId toRemoteManagedDataTypeNaturalId(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 ManagedDataTypeDaoImpl class if you intend to use reporting queries.

See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeNaturalId(fr.ifremer.allegro.administration.user.ManagedDataType)

remoteManagedDataTypeNaturalIdToEntityCollection

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

Specified by:
remoteManagedDataTypeNaturalIdToEntityCollection in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.remoteManagedDataTypeNaturalIdToEntityCollection(java.util.Collection)

toRemoteManagedDataTypeNaturalId

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

toRemoteManagedDataTypeNaturalId

public RemoteManagedDataTypeNaturalId toRemoteManagedDataTypeNaturalId(ManagedDataType entity)
Description copied from interface: ManagedDataTypeDao
Converts this DAO's entity to an object of type RemoteManagedDataTypeNaturalId.

Specified by:
toRemoteManagedDataTypeNaturalId in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toRemoteManagedDataTypeNaturalId(fr.ifremer.allegro.administration.user.ManagedDataType)

remoteManagedDataTypeNaturalIdToEntity

public void remoteManagedDataTypeNaturalIdToEntity(RemoteManagedDataTypeNaturalId source,
                                                   ManagedDataType target,
                                                   boolean copyIfNull)
Description copied from interface: ManagedDataTypeDao
Copies the fields of RemoteManagedDataTypeNaturalId to the specified entity.

Specified by:
remoteManagedDataTypeNaturalIdToEntity in interface ManagedDataTypeDao
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.ManagedDataTypeDao#remoteManagedDataTypeNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemoteManagedDataTypeNaturalId, fr.ifremer.allegro.administration.user.ManagedDataType)

toClusterManagedDataTypeCollection

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

Specified by:
toClusterManagedDataTypeCollection in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toClusterManagedDataTypeCollection(java.util.Collection)

toClusterManagedDataTypeArray

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

Specified by:
toClusterManagedDataTypeArray in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toClusterManagedDataTypeArray(java.util.Collection)

toClusterManagedDataType

protected ClusterManagedDataType toClusterManagedDataType(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 ManagedDataTypeDaoImpl class if you intend to use reporting queries.

See Also:
ManagedDataTypeDao.toClusterManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType)

clusterManagedDataTypeToEntityCollection

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

Specified by:
clusterManagedDataTypeToEntityCollection in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.clusterManagedDataTypeToEntityCollection(java.util.Collection)

toClusterManagedDataType

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

toClusterManagedDataType

public ClusterManagedDataType toClusterManagedDataType(ManagedDataType entity)
Description copied from interface: ManagedDataTypeDao
Converts this DAO's entity to an object of type ClusterManagedDataType.

Specified by:
toClusterManagedDataType in interface ManagedDataTypeDao
See Also:
ManagedDataTypeDao.toClusterManagedDataType(fr.ifremer.allegro.administration.user.ManagedDataType)

clusterManagedDataTypeToEntity

public void clusterManagedDataTypeToEntity(ClusterManagedDataType source,
                                           ManagedDataType target,
                                           boolean copyIfNull)
Description copied from interface: ManagedDataTypeDao
Copies the fields of ClusterManagedDataType to the specified entity.

Specified by:
clusterManagedDataTypeToEntity in interface ManagedDataTypeDao
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.ManagedDataTypeDao#clusterManagedDataTypeToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterManagedDataType, fr.ifremer.allegro.administration.user.ManagedDataType)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.