fr.ifremer.allegro.referential
Class StatusDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.referential.StatusDaoBase
All Implemented Interfaces:
StatusDao
Direct Known Subclasses:
StatusDaoImpl

public abstract class StatusDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements StatusDao

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

See Also:
Status

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.referential.StatusDao
TRANSFORM_CLUSTERSTATUS, TRANSFORM_NONE, TRANSFORM_REMOTESTATUSFULLVO, TRANSFORM_REMOTESTATUSNATURALID
 
Constructor Summary
StatusDaoBase()
           
 
Method Summary
 void clusterStatusToEntity(ClusterStatus source, Status target, boolean copyIfNull)
          Copies the fields of ClusterStatus to the specified entity.
 void clusterStatusToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterStatus to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.referential.Status and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as StatusDao.create(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, Status status)
           Does the same thing as StatusDao.create(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.String name)
           Does the same thing as StatusDao.create(java.lang.String,java.lang.String) with an additional flag called transform.
 Status create(Status status)
          Creates an instance of fr.ifremer.allegro.referential.Status and adds it to the persistent store.
 Status create(java.lang.String code, java.lang.String name)
           Creates a new fr.ifremer.allegro.referential.Status instance from all attributes and properties and adds it to the persistent store.
 Status createFromClusterStatus(ClusterStatus clusterStatus)
           
 java.lang.Object findStatusByCode(int transform, java.lang.String code)
           Does the same thing as StatusDao.findStatusByCode(java.lang.String) with an additional flag called transform.
 java.lang.Object findStatusByCode(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as StatusDao.findStatusByCode(int, java.lang.String) with an additional argument called queryString.
 Status findStatusByCode(java.lang.String code)
           
 Status findStatusByCode(java.lang.String queryString, java.lang.String code)
           Does the same thing as StatusDao.findStatusByCode(java.lang.String) with an additional argument called queryString.
 java.lang.Object findStatusByNaturalId(int transform, java.lang.String code)
           Does the same thing as StatusDao.findStatusByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findStatusByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as StatusDao.findStatusByNaturalId(int, java.lang.String) with an additional argument called queryString.
 Status findStatusByNaturalId(java.lang.String code)
           
 Status findStatusByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as StatusDao.findStatusByNaturalId(java.lang.String) with an additional argument called queryString.
 ClusterStatus[] getAllClusterStatus(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllStatus()
           
 java.util.Collection getAllStatus(int transform)
           Does the same thing as StatusDao.getAllStatus() with an additional flag called transform.
 java.util.Collection getAllStatus(int pageNumber, int pageSize)
           Does the same thing as StatusDao.getAllStatus() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStatus(int transform, int pageNumber, int pageSize)
           Does the same thing as StatusDao.getAllStatus(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStatus(int transform, java.lang.String queryString)
           Does the same thing as StatusDao.getAllStatus(int) with an additional argument called queryString.
 java.util.Collection getAllStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as StatusDao.getAllStatus(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllStatus(java.lang.String queryString)
           Does the same thing as StatusDao.getAllStatus() with an additional argument called queryString.
 java.util.Collection getAllStatus(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as StatusDao.getAllStatus(String) with an additional two arguments called pageNumber and pageSize.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected abstract  Status handleCreateFromClusterStatus(ClusterStatus clusterStatus)
          Performs the core logic for createFromClusterStatus(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus)
protected abstract  ClusterStatus[] handleGetAllClusterStatus(java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterStatus(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 StatusDao.load(java.lang.String) with an additional flag called transform.
 Status load(java.lang.String code)
          Loads an instance of fr.ifremer.allegro.referential.Status from the persistent store.
 java.util.Collection loadAll()
          Loads all entities of type Status.
 java.util.Collection loadAll(int transform)
           Does the same thing as StatusDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as StatusDao.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 StatusDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteStatusFullVOToEntity(RemoteStatusFullVO source, Status target, boolean copyIfNull)
          Copies the fields of RemoteStatusFullVO to the specified entity.
 void remoteStatusFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteStatusFullVO to this DAO's entity.
 void remoteStatusNaturalIdToEntity(RemoteStatusNaturalId source, Status target, boolean copyIfNull)
          Copies the fields of RemoteStatusNaturalId to the specified entity.
 void remoteStatusNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteStatusNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Status status)
          Removes the instance of fr.ifremer.allegro.referential.Status from the persistent store.
 void remove(java.lang.String code)
          Removes the instance of fr.ifremer.allegro.referential.Status 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 StatusDao.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  ClusterStatus toClusterStatus(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterStatus toClusterStatus(Status entity)
          Converts this DAO's entity to an object of type ClusterStatus.
 void toClusterStatus(Status source, ClusterStatus target)
          Copies the fields of the specified entity to the target value object.
 ClusterStatus[] toClusterStatusArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterStatus.
 void toClusterStatusCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterStatus.
protected  Status toEntity(java.lang.Object[] row)
           
protected  RemoteStatusFullVO toRemoteStatusFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteStatusFullVO toRemoteStatusFullVO(Status entity)
          Converts this DAO's entity to an object of type RemoteStatusFullVO.
 void toRemoteStatusFullVO(Status source, RemoteStatusFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteStatusFullVO[] toRemoteStatusFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteStatusFullVO.
 void toRemoteStatusFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteStatusFullVO.
protected  RemoteStatusNaturalId toRemoteStatusNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteStatusNaturalId toRemoteStatusNaturalId(Status entity)
          Converts this DAO's entity to an object of type RemoteStatusNaturalId.
 void toRemoteStatusNaturalId(Status source, RemoteStatusNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteStatusNaturalId[] toRemoteStatusNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteStatusNaturalId.
 void toRemoteStatusNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteStatusNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.referential.Status) method.
protected  java.lang.Object transformEntity(int transform, Status 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.StatusDao, please note that the StatusDao.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(Status status)
          Updates the status 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.StatusDao
clusterStatusToEntity, remoteStatusFullVOToEntity, remoteStatusNaturalIdToEntity
 

Constructor Detail

StatusDaoBase

public StatusDaoBase()
Method Detail

load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

Specified by:
create in interface StatusDao
See Also:
StatusDao.create(fr.ifremer.allegro.referential.Status)

create

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

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

create

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

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

create

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

Does the same thing as StatusDao.create(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 entities (into value objects for example). By default, transformation does not occur.

Specified by:
create in interface StatusDao
See Also:
StatusDao.create(int, java.util.Collection)

create

public Status create(java.lang.String code,
                     java.lang.String name)
Description copied from interface: StatusDao

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

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

create

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

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

Specified by:
create in interface StatusDao
See Also:
StatusDao.create(int, java.lang.String,java.lang.String)

update

public void update(Status status)
Description copied from interface: StatusDao
Updates the status instance in the persistent store.

Specified by:
update in interface StatusDao
See Also:
StatusDao.update(fr.ifremer.allegro.referential.Status)

update

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

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

remove

public void remove(Status status)
Description copied from interface: StatusDao
Removes the instance of fr.ifremer.allegro.referential.Status from the persistent store.

Specified by:
remove in interface StatusDao
See Also:
StatusDao.remove(fr.ifremer.allegro.referential.Status)

remove

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

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

remove

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

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

getAllStatus

public java.util.Collection getAllStatus()
Specified by:
getAllStatus in interface StatusDao
See Also:
StatusDao.getAllStatus()

getAllStatus

public java.util.Collection getAllStatus(int transform)
Description copied from interface: StatusDao

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

getAllStatus

public java.util.Collection getAllStatus(java.lang.String queryString)
Description copied from interface: StatusDao

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

Specified by:
getAllStatus in interface StatusDao
See Also:
StatusDao.getAllStatus(java.lang.String)

getAllStatus

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

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

getAllStatus

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

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

getAllStatus

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

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

Specified by:
getAllStatus in interface StatusDao
See Also:
StatusDao.getAllStatus(int, String)

getAllStatus

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

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

getAllStatus

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

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

findStatusByCode

public Status findStatusByCode(java.lang.String code)
Specified by:
findStatusByCode in interface StatusDao
See Also:
StatusDao.findStatusByCode(java.lang.String)

findStatusByCode

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

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

findStatusByCode

public Status findStatusByCode(java.lang.String queryString,
                               java.lang.String code)
Description copied from interface: StatusDao

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

Specified by:
findStatusByCode in interface StatusDao
See Also:
StatusDao.findStatusByCode(java.lang.String, java.lang.String)

findStatusByCode

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

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

Specified by:
findStatusByCode in interface StatusDao
See Also:
StatusDao.findStatusByCode(int, java.lang.String, java.lang.String)

findStatusByNaturalId

public Status findStatusByNaturalId(java.lang.String code)
Specified by:
findStatusByNaturalId in interface StatusDao
See Also:
StatusDao.findStatusByNaturalId(java.lang.String)

findStatusByNaturalId

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

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

findStatusByNaturalId

public Status findStatusByNaturalId(java.lang.String queryString,
                                    java.lang.String code)
Description copied from interface: StatusDao

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

Specified by:
findStatusByNaturalId in interface StatusDao
See Also:
StatusDao.findStatusByNaturalId(java.lang.String, java.lang.String)

findStatusByNaturalId

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

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

Specified by:
findStatusByNaturalId in interface StatusDao
See Also:
StatusDao.findStatusByNaturalId(int, java.lang.String, java.lang.String)

createFromClusterStatus

public Status createFromClusterStatus(ClusterStatus clusterStatus)
Specified by:
createFromClusterStatus in interface StatusDao
See Also:
StatusDao.createFromClusterStatus(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus)

handleCreateFromClusterStatus

protected abstract Status handleCreateFromClusterStatus(ClusterStatus clusterStatus)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterStatus(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus)

Throws:
java.lang.Exception

getAllClusterStatus

public ClusterStatus[] getAllClusterStatus(java.lang.Integer userId,
                                           java.lang.Integer[] registrationLocationIds,
                                           java.lang.Integer pageNumber,
                                           java.lang.Integer pageSize)
Specified by:
getAllClusterStatus in interface StatusDao
See Also:
StatusDao.getAllClusterStatus(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterStatus

protected abstract ClusterStatus[] handleGetAllClusterStatus(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 getAllClusterStatus(java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteStatusFullVOCollection

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

Specified by:
toRemoteStatusFullVOCollection in interface StatusDao
See Also:
StatusDao.toRemoteStatusFullVOCollection(java.util.Collection)

toRemoteStatusFullVOArray

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

Specified by:
toRemoteStatusFullVOArray in interface StatusDao
See Also:
StatusDao.toRemoteStatusFullVOArray(java.util.Collection)

toRemoteStatusFullVO

protected RemoteStatusFullVO toRemoteStatusFullVO(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 StatusDaoImpl class if you intend to use reporting queries.

See Also:
StatusDao.toRemoteStatusFullVO(fr.ifremer.allegro.referential.Status)

remoteStatusFullVOToEntityCollection

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

Specified by:
remoteStatusFullVOToEntityCollection in interface StatusDao
See Also:
StatusDao.remoteStatusFullVOToEntityCollection(java.util.Collection)

toRemoteStatusFullVO

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

toRemoteStatusFullVO

public RemoteStatusFullVO toRemoteStatusFullVO(Status entity)
Description copied from interface: StatusDao
Converts this DAO's entity to an object of type RemoteStatusFullVO.

Specified by:
toRemoteStatusFullVO in interface StatusDao
See Also:
StatusDao.toRemoteStatusFullVO(fr.ifremer.allegro.referential.Status)

remoteStatusFullVOToEntity

public void remoteStatusFullVOToEntity(RemoteStatusFullVO source,
                                       Status target,
                                       boolean copyIfNull)
Description copied from interface: StatusDao
Copies the fields of RemoteStatusFullVO to the specified entity.

Specified by:
remoteStatusFullVOToEntity in interface StatusDao
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.StatusDao#remoteStatusFullVOToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteStatusFullVO, fr.ifremer.allegro.referential.Status)

toRemoteStatusNaturalIdCollection

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

Specified by:
toRemoteStatusNaturalIdCollection in interface StatusDao
See Also:
StatusDao.toRemoteStatusNaturalIdCollection(java.util.Collection)

toRemoteStatusNaturalIdArray

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

Specified by:
toRemoteStatusNaturalIdArray in interface StatusDao
See Also:
StatusDao.toRemoteStatusNaturalIdArray(java.util.Collection)

toRemoteStatusNaturalId

protected RemoteStatusNaturalId toRemoteStatusNaturalId(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 StatusDaoImpl class if you intend to use reporting queries.

See Also:
StatusDao.toRemoteStatusNaturalId(fr.ifremer.allegro.referential.Status)

remoteStatusNaturalIdToEntityCollection

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

Specified by:
remoteStatusNaturalIdToEntityCollection in interface StatusDao
See Also:
StatusDao.remoteStatusNaturalIdToEntityCollection(java.util.Collection)

toRemoteStatusNaturalId

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

toRemoteStatusNaturalId

public RemoteStatusNaturalId toRemoteStatusNaturalId(Status entity)
Description copied from interface: StatusDao
Converts this DAO's entity to an object of type RemoteStatusNaturalId.

Specified by:
toRemoteStatusNaturalId in interface StatusDao
See Also:
StatusDao.toRemoteStatusNaturalId(fr.ifremer.allegro.referential.Status)

remoteStatusNaturalIdToEntity

public void remoteStatusNaturalIdToEntity(RemoteStatusNaturalId source,
                                          Status target,
                                          boolean copyIfNull)
Description copied from interface: StatusDao
Copies the fields of RemoteStatusNaturalId to the specified entity.

Specified by:
remoteStatusNaturalIdToEntity in interface StatusDao
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.StatusDao#remoteStatusNaturalIdToEntity(fr.ifremer.allegro.referential.generic.vo.RemoteStatusNaturalId, fr.ifremer.allegro.referential.Status)

toClusterStatusCollection

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

Specified by:
toClusterStatusCollection in interface StatusDao
See Also:
StatusDao.toClusterStatusCollection(java.util.Collection)

toClusterStatusArray

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

Specified by:
toClusterStatusArray in interface StatusDao
See Also:
StatusDao.toClusterStatusArray(java.util.Collection)

toClusterStatus

protected ClusterStatus toClusterStatus(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 StatusDaoImpl class if you intend to use reporting queries.

See Also:
StatusDao.toClusterStatus(fr.ifremer.allegro.referential.Status)

clusterStatusToEntityCollection

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

Specified by:
clusterStatusToEntityCollection in interface StatusDao
See Also:
StatusDao.clusterStatusToEntityCollection(java.util.Collection)

toClusterStatus

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

toClusterStatus

public ClusterStatus toClusterStatus(Status entity)
Description copied from interface: StatusDao
Converts this DAO's entity to an object of type ClusterStatus.

Specified by:
toClusterStatus in interface StatusDao
See Also:
StatusDao.toClusterStatus(fr.ifremer.allegro.referential.Status)

clusterStatusToEntity

public void clusterStatusToEntity(ClusterStatus source,
                                  Status target,
                                  boolean copyIfNull)
Description copied from interface: StatusDao
Copies the fields of ClusterStatus to the specified entity.

Specified by:
clusterStatusToEntity in interface StatusDao
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.StatusDao#clusterStatusToEntity(fr.ifremer.allegro.referential.generic.cluster.ClusterStatus, fr.ifremer.allegro.referential.Status)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.