fr.ifremer.allegro.referential
Class ObjectTypeDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.ObjectTypeDaoBase
All Implemented Interfaces:
ObjectTypeDao
Direct Known Subclasses:
ObjectTypeDaoImpl

public abstract class ObjectTypeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ObjectTypeDao

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

See Also:
ObjectType

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.ObjectTypeDao
TRANSFORM_CLUSTEROBJECTTYPE, TRANSFORM_NONE, TRANSFORM_REMOTEOBJECTTYPEFULLVO, TRANSFORM_REMOTEOBJECTTYPENATURALID
 
Constructor Summary
ObjectTypeDaoBase()
           
 
Method Summary
 void clusterObjectTypeToEntity(ClusterObjectType source, ObjectType target, boolean copyIfNull)
          Copies the fields of ClusterObjectType to the specified entity.
 void clusterObjectTypeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterObjectType to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.ObjectType and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType) with an additional flag called transform.
 java.lang.Object create(int transform, ObjectType objectType)
           Does the same thing as ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name)
           Does the same thing as ObjectTypeDao.create(java.lang.String) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp) with an additional flag called transform.
 ObjectType create(ObjectType objectType)
          Creates an instance of fr.ifremer.allegro.referential.ObjectType and adds it to the persistent store.
 ObjectType create(java.lang.String name)
           Creates a new fr.ifremer.allegro.referential.ObjectType instance from only required properties (attributes and association ends) and adds it to the persistent store.
 ObjectType create(java.lang.String name, java.lang.String description, java.sql.Timestamp updateDate)
           Creates a new fr.ifremer.allegro.referential.ObjectType instance from all attributes and properties and adds it to the persistent store.
 ObjectType createFromClusterObjectType(ClusterObjectType clusterObjectType)
           
 java.lang.Object findObjectTypeByCode(int transform, java.lang.String code)
           Does the same thing as ObjectTypeDao.findObjectTypeByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findObjectTypeByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as ObjectTypeDao.findObjectTypeByCode(int, java.lang.String) with an additional argument called queryString.
 ObjectType findObjectTypeByCode(java.lang.String code)
           
 ObjectType findObjectTypeByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as ObjectTypeDao.findObjectTypeByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findObjectTypeByNaturalId(int transform, java.lang.String code)
           Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findObjectTypeByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String) with an additional argument called queryString.
 ObjectType findObjectTypeByNaturalId(java.lang.String code)
           
 ObjectType findObjectTypeByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String) with an additional argument called queryString.
 ClusterObjectType[] getAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllObjectType()
           
 java.util.Collection getAllObjectType(int transform)
           Does the same thing as ObjectTypeDao.getAllObjectType() with an additional flag called transform.
 java.util.Collection getAllObjectType(int pageNumber, int pageSize)
           Does the same thing as ObjectTypeDao.getAllObjectType() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectType(int transform, int pageNumber, int pageSize)
           Does the same thing as ObjectTypeDao.getAllObjectType(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectType(int transform, java.lang.String queryString)
           Does the same thing as ObjectTypeDao.getAllObjectType(int) with an additional argument called queryString.
 java.util.Collection getAllObjectType(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ObjectTypeDao.getAllObjectType(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectType(java.lang.String queryString)
           Does the same thing as ObjectTypeDao.getAllObjectType() with an additional argument called queryString.
 java.util.Collection getAllObjectType(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ObjectTypeDao.getAllObjectType(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectTypeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllObjectTypeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllObjectTypeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllObjectTypeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ObjectTypeDao.getAllObjectTypeSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllObjectTypeSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected abstract  ObjectType handleCreateFromClusterObjectType(ClusterObjectType clusterObjectType)
          Performs the core logic for createFromClusterObjectType(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType)
protected abstract  ClusterObjectType[] handleGetAllClusterObjectTypeSinceDateSynchro(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 getAllClusterObjectTypeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 java.lang.Object load(int transform, java.lang.String code)
           Does the same thing as ObjectTypeDao.load(java.lang.String) with an additional flag called transform.
 ObjectType load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.referential.ObjectType from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type ObjectType.
 java.util.Collection loadAll(int transform)
           Does the same thing as ObjectTypeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ObjectTypeDao.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 ObjectTypeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteObjectTypeFullVOToEntity(RemoteObjectTypeFullVO source, ObjectType target, boolean copyIfNull)
          Copies the fields of RemoteObjectTypeFullVO to the specified entity.
 void remoteObjectTypeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteObjectTypeFullVO to this DAO's entity.
 void remoteObjectTypeNaturalIdToEntity(RemoteObjectTypeNaturalId source, ObjectType target, boolean copyIfNull)
          Copies the fields of RemoteObjectTypeNaturalId to the specified entity.
 void remoteObjectTypeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteObjectTypeNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(ObjectType objectType)
          Removes the instance of fr.ifremer.allegro.referential.ObjectType from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.ObjectType having the given identifier from the persistent store.
 PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(int, fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 PaginationResult search(int pageNumber, int pageSize, Search search)
          Does the same thing as {@link #search(fr.ifremer.allegro.Search) but with an additional two flags called pageNumber and pageSize.
 java.util.Set search(int transform, Search search)
          Does the same thing as ObjectTypeDao.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.
protected  ClusterObjectType toClusterObjectType(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterObjectType toClusterObjectType(ObjectType entity)
          Converts this DAO's entity to an object of type ClusterObjectType.
 void toClusterObjectType(ObjectType source, ClusterObjectType target)
          Copies the fields of the specified entity to the target value object.
 ClusterObjectType[] toClusterObjectTypeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterObjectType.
 void toClusterObjectTypeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterObjectType.
protected  ObjectType toEntity(java.lang.Object[] row)
           
protected  RemoteObjectTypeFullVO toRemoteObjectTypeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteObjectTypeFullVO toRemoteObjectTypeFullVO(ObjectType entity)
          Converts this DAO's entity to an object of type RemoteObjectTypeFullVO.
 void toRemoteObjectTypeFullVO(ObjectType source, RemoteObjectTypeFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteObjectTypeFullVO[] toRemoteObjectTypeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteObjectTypeFullVO.
 void toRemoteObjectTypeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteObjectTypeFullVO.
protected  RemoteObjectTypeNaturalId toRemoteObjectTypeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteObjectTypeNaturalId toRemoteObjectTypeNaturalId(ObjectType entity)
          Converts this DAO's entity to an object of type RemoteObjectTypeNaturalId.
 void toRemoteObjectTypeNaturalId(ObjectType source, RemoteObjectTypeNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteObjectTypeNaturalId[] toRemoteObjectTypeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteObjectTypeNaturalId.
 void toRemoteObjectTypeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteObjectTypeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.ObjectType) method.
protected  java.lang.Object transformEntity(int transform, ObjectType entity)
          Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.referential.ObjectTypeDao, please note that the ObjectTypeDao.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(ObjectType objectType)
          Updates the objectType instance in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.referential.ObjectTypeDao
clusterObjectTypeToEntity, remoteObjectTypeFullVOToEntity, remoteObjectTypeNaturalIdToEntity
 

Constructor Detail

ObjectTypeDaoBase

public ObjectTypeDaoBase()
Method Detail

load

public java.lang.Object load(int transform,
                             java.lang.String code)
Description copied from interface: ObjectTypeDao

Does the same thing as ObjectTypeDao.load(java.lang.String) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined 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 ObjectTypeDao
code - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.
See Also:
ObjectTypeDao.load(int, java.lang.String)

load

public ObjectType load(java.lang.String code)
Description copied from interface: ObjectTypeDao
Loads an instance of fr.ifremer.allegro.referential.ObjectType from the persistent store.

Specified by:
load in interface ObjectTypeDao
See Also:
ObjectTypeDao.load(java.lang.String)

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

Specified by:
create in interface ObjectTypeDao
See Also:
ObjectTypeDao.create(fr.ifremer.allegro.referential.ObjectType)

create

public java.lang.Object create(int transform,
                               ObjectType objectType)
Description copied from interface: ObjectTypeDao

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

create

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

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

create

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

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

create

public ObjectType create(java.lang.String name,
                         java.lang.String description,
                         java.sql.Timestamp updateDate)
Description copied from interface: ObjectTypeDao

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

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

create

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

Does the same thing as ObjectTypeDao.create(java.lang.String,java.lang.String,java.sql.Timestamp) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will 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 ObjectTypeDao
See Also:
ObjectTypeDao.create(int, java.lang.String,java.lang.String,java.sql.Timestamp)

create

public ObjectType create(java.lang.String name)
Description copied from interface: ObjectTypeDao

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

Specified by:
create in interface ObjectTypeDao
See Also:
ObjectTypeDao.create(java.lang.String)

create

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

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

update

public void update(ObjectType objectType)
Description copied from interface: ObjectTypeDao
Updates the objectType instance in the persistent store.

Specified by:
update in interface ObjectTypeDao
See Also:
ObjectTypeDao.update(fr.ifremer.allegro.referential.ObjectType)

update

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

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

remove

public void remove(ObjectType objectType)
Description copied from interface: ObjectTypeDao
Removes the instance of fr.ifremer.allegro.referential.ObjectType from the persistent store.

Specified by:
remove in interface ObjectTypeDao
See Also:
ObjectTypeDao.remove(fr.ifremer.allegro.referential.ObjectType)

remove

public void remove(java.lang.String code)
Description copied from interface: ObjectTypeDao
Removes the instance of fr.ifremer.allegro.referential.ObjectType having the given identifier from the persistent store.

Specified by:
remove in interface ObjectTypeDao
See Also:
ObjectTypeDao.remove(java.lang.String)

remove

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

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

getAllObjectType

public java.util.Collection getAllObjectType()
Specified by:
getAllObjectType in interface ObjectTypeDao
See Also:
ObjectTypeDao.getAllObjectType()

getAllObjectType

public java.util.Collection getAllObjectType(int transform)
Description copied from interface: ObjectTypeDao

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

getAllObjectType

public java.util.Collection getAllObjectType(java.lang.String queryString)
Description copied from interface: ObjectTypeDao

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

Specified by:
getAllObjectType in interface ObjectTypeDao
See Also:
ObjectTypeDao.getAllObjectType(java.lang.String)

getAllObjectType

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

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

getAllObjectType

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

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

getAllObjectType

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

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

Specified by:
getAllObjectType in interface ObjectTypeDao
See Also:
ObjectTypeDao.getAllObjectType(int, String)

getAllObjectType

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

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

getAllObjectType

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

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

findObjectTypeByCode

public ObjectType findObjectTypeByCode(java.lang.String code)
Specified by:
findObjectTypeByCode in interface ObjectTypeDao
See Also:
ObjectTypeDao.findObjectTypeByCode(java.lang.String)

findObjectTypeByCode

public java.lang.Object findObjectTypeByCode(int transform,
                                             java.lang.String code)
Description copied from interface: ObjectTypeDao

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

findObjectTypeByCode

public ObjectType findObjectTypeByCode(java.lang.String queryString,
                                       java.lang.String code)
Description copied from interface: ObjectTypeDao

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

Specified by:
findObjectTypeByCode in interface ObjectTypeDao
See Also:
ObjectTypeDao.findObjectTypeByCode(java.lang.String, java.lang.String)

findObjectTypeByCode

public java.lang.Object findObjectTypeByCode(int transform,
                                             java.lang.String queryString,
                                             java.lang.String code)
Description copied from interface: ObjectTypeDao

Does the same thing as ObjectTypeDao.findObjectTypeByCode(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ObjectTypeDao.findObjectTypeByCode(int, java.lang.String code).

Specified by:
findObjectTypeByCode in interface ObjectTypeDao
See Also:
ObjectTypeDao.findObjectTypeByCode(int, java.lang.String, java.lang.String)

findObjectTypeByNaturalId

public ObjectType findObjectTypeByNaturalId(java.lang.String code)
Specified by:
findObjectTypeByNaturalId in interface ObjectTypeDao
See Also:
ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String)

findObjectTypeByNaturalId

public java.lang.Object findObjectTypeByNaturalId(int transform,
                                                  java.lang.String code)
Description copied from interface: ObjectTypeDao

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

findObjectTypeByNaturalId

public ObjectType findObjectTypeByNaturalId(java.lang.String queryString,
                                            java.lang.String code)
Description copied from interface: ObjectTypeDao

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

Specified by:
findObjectTypeByNaturalId in interface ObjectTypeDao
See Also:
ObjectTypeDao.findObjectTypeByNaturalId(java.lang.String, java.lang.String)

findObjectTypeByNaturalId

public java.lang.Object findObjectTypeByNaturalId(int transform,
                                                  java.lang.String queryString,
                                                  java.lang.String code)
Description copied from interface: ObjectTypeDao

Does the same thing as ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String code).

Specified by:
findObjectTypeByNaturalId in interface ObjectTypeDao
See Also:
ObjectTypeDao.findObjectTypeByNaturalId(int, java.lang.String, java.lang.String)

getAllObjectTypeSinceDateSynchro

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

getAllObjectTypeSinceDateSynchro

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

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

getAllObjectTypeSinceDateSynchro

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

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

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

getAllObjectTypeSinceDateSynchro

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

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

getAllObjectTypeSinceDateSynchro

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

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

getAllObjectTypeSinceDateSynchro

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

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

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

getAllObjectTypeSinceDateSynchro

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

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

getAllObjectTypeSinceDateSynchro

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

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

createFromClusterObjectType

public ObjectType createFromClusterObjectType(ClusterObjectType clusterObjectType)
Specified by:
createFromClusterObjectType in interface ObjectTypeDao
See Also:
ObjectTypeDao.createFromClusterObjectType(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType)

handleCreateFromClusterObjectType

protected abstract ObjectType handleCreateFromClusterObjectType(ClusterObjectType clusterObjectType)
                                                         throws java.lang.Exception
Performs the core logic for createFromClusterObjectType(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType)

Throws:
java.lang.Exception

getAllClusterObjectTypeSinceDateSynchro

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

handleGetAllClusterObjectTypeSinceDateSynchro

protected abstract ClusterObjectType[] handleGetAllClusterObjectTypeSinceDateSynchro(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 getAllClusterObjectTypeSinceDateSynchro(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,
                                           ObjectType entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.referential.ObjectTypeDao, please note that the ObjectTypeDao.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 ObjectTypeDao.TRANSFORM_NONE is assumed.

Parameters:
transform - one of the constants declared in ObjectTypeDao
entity - an entity that was found
Returns:
the transformed entity (i.e. new value object, etc)
See Also:
transformEntities(int,java.util.Collection)

transformEntities

protected void transformEntities(int transform,
                                 java.util.Collection entities)
Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.ObjectType) method. This method does not instantiate a new collection.

This method is to be used internally only.

Parameters:
transform - one of the constants declared in fr.ifremer.allegro.referential.ObjectTypeDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.referential.ObjectType)

toEntity

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

toRemoteObjectTypeFullVOCollection

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

Specified by:
toRemoteObjectTypeFullVOCollection in interface ObjectTypeDao
See Also:
ObjectTypeDao.toRemoteObjectTypeFullVOCollection(java.util.Collection)

toRemoteObjectTypeFullVOArray

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

Specified by:
toRemoteObjectTypeFullVOArray in interface ObjectTypeDao
See Also:
ObjectTypeDao.toRemoteObjectTypeFullVOArray(java.util.Collection)

toRemoteObjectTypeFullVO

protected RemoteObjectTypeFullVO toRemoteObjectTypeFullVO(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 ObjectTypeDaoImpl class if you intend to use reporting queries.

See Also:
ObjectTypeDao.toRemoteObjectTypeFullVO(fr.ifremer.allegro.referential.ObjectType)

remoteObjectTypeFullVOToEntityCollection

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

Specified by:
remoteObjectTypeFullVOToEntityCollection in interface ObjectTypeDao
See Also:
ObjectTypeDao.remoteObjectTypeFullVOToEntityCollection(java.util.Collection)

toRemoteObjectTypeFullVO

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

toRemoteObjectTypeFullVO

public RemoteObjectTypeFullVO toRemoteObjectTypeFullVO(ObjectType entity)
Description copied from interface: ObjectTypeDao
Converts this DAO's entity to an object of type RemoteObjectTypeFullVO.

Specified by:
toRemoteObjectTypeFullVO in interface ObjectTypeDao
See Also:
ObjectTypeDao.toRemoteObjectTypeFullVO(fr.ifremer.allegro.referential.ObjectType)

remoteObjectTypeFullVOToEntity

public void remoteObjectTypeFullVOToEntity(RemoteObjectTypeFullVO source,
                                           ObjectType target,
                                           boolean copyIfNull)
Description copied from interface: ObjectTypeDao
Copies the fields of RemoteObjectTypeFullVO to the specified entity.

Specified by:
remoteObjectTypeFullVOToEntity in interface ObjectTypeDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.ObjectTypeDao#remoteObjectTypeFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteObjectTypeFullVO, fr.ifremer.allegro.referential.ObjectType)

toRemoteObjectTypeNaturalIdCollection

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

Specified by:
toRemoteObjectTypeNaturalIdCollection in interface ObjectTypeDao
See Also:
ObjectTypeDao.toRemoteObjectTypeNaturalIdCollection(java.util.Collection)

toRemoteObjectTypeNaturalIdArray

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

Specified by:
toRemoteObjectTypeNaturalIdArray in interface ObjectTypeDao
See Also:
ObjectTypeDao.toRemoteObjectTypeNaturalIdArray(java.util.Collection)

toRemoteObjectTypeNaturalId

protected RemoteObjectTypeNaturalId toRemoteObjectTypeNaturalId(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 ObjectTypeDaoImpl class if you intend to use reporting queries.

See Also:
ObjectTypeDao.toRemoteObjectTypeNaturalId(fr.ifremer.allegro.referential.ObjectType)

remoteObjectTypeNaturalIdToEntityCollection

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

Specified by:
remoteObjectTypeNaturalIdToEntityCollection in interface ObjectTypeDao
See Also:
ObjectTypeDao.remoteObjectTypeNaturalIdToEntityCollection(java.util.Collection)

toRemoteObjectTypeNaturalId

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

toRemoteObjectTypeNaturalId

public RemoteObjectTypeNaturalId toRemoteObjectTypeNaturalId(ObjectType entity)
Description copied from interface: ObjectTypeDao
Converts this DAO's entity to an object of type RemoteObjectTypeNaturalId.

Specified by:
toRemoteObjectTypeNaturalId in interface ObjectTypeDao
See Also:
ObjectTypeDao.toRemoteObjectTypeNaturalId(fr.ifremer.allegro.referential.ObjectType)

remoteObjectTypeNaturalIdToEntity

public void remoteObjectTypeNaturalIdToEntity(RemoteObjectTypeNaturalId source,
                                              ObjectType target,
                                              boolean copyIfNull)
Description copied from interface: ObjectTypeDao
Copies the fields of RemoteObjectTypeNaturalId to the specified entity.

Specified by:
remoteObjectTypeNaturalIdToEntity in interface ObjectTypeDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.ObjectTypeDao#remoteObjectTypeNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteObjectTypeNaturalId, fr.ifremer.allegro.referential.ObjectType)

toClusterObjectTypeCollection

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

Specified by:
toClusterObjectTypeCollection in interface ObjectTypeDao
See Also:
ObjectTypeDao.toClusterObjectTypeCollection(java.util.Collection)

toClusterObjectTypeArray

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

Specified by:
toClusterObjectTypeArray in interface ObjectTypeDao
See Also:
ObjectTypeDao.toClusterObjectTypeArray(java.util.Collection)

toClusterObjectType

protected ClusterObjectType toClusterObjectType(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 ObjectTypeDaoImpl class if you intend to use reporting queries.

See Also:
ObjectTypeDao.toClusterObjectType(fr.ifremer.allegro.referential.ObjectType)

clusterObjectTypeToEntityCollection

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

Specified by:
clusterObjectTypeToEntityCollection in interface ObjectTypeDao
See Also:
ObjectTypeDao.clusterObjectTypeToEntityCollection(java.util.Collection)

toClusterObjectType

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

toClusterObjectType

public ClusterObjectType toClusterObjectType(ObjectType entity)
Description copied from interface: ObjectTypeDao
Converts this DAO's entity to an object of type ClusterObjectType.

Specified by:
toClusterObjectType in interface ObjectTypeDao
See Also:
ObjectTypeDao.toClusterObjectType(fr.ifremer.allegro.referential.ObjectType)

clusterObjectTypeToEntity

public void clusterObjectTypeToEntity(ClusterObjectType source,
                                      ObjectType target,
                                      boolean copyIfNull)
Description copied from interface: ObjectTypeDao
Copies the fields of ClusterObjectType to the specified entity.

Specified by:
clusterObjectTypeToEntity in interface ObjectTypeDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.referential.ObjectTypeDao#clusterObjectTypeToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterObjectType, fr.ifremer.allegro.referential.ObjectType)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.