fr.ifremer.allegro.administration.user
Interface DepartmentDao

All Known Implementing Classes:
DepartmentDaoBase, DepartmentDaoImpl

public interface DepartmentDao

See Also:
Department

Field Summary
static int TRANSFORM_CLUSTERDEPARTMENT
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_NONE
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEDEPARTMENTFULLVO
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
static int TRANSFORM_REMOTEDEPARTMENTNATURALID
          This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.
 
Method Summary
 Department clusterDepartmentToEntity(ClusterDepartment clusterDepartment)
          Converts an instance of type ClusterDepartment to this DAO's entity.
 void clusterDepartmentToEntity(ClusterDepartment source, Department target, boolean copyIfNull)
          Copies the fields of ClusterDepartment to the specified entity.
 void clusterDepartmentToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterDepartment to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.user.Department and adds from the passed in entities collection
 Department create(Department department)
          Creates an instance of fr.ifremer.allegro.administration.user.Department and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as create(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.lang.Object create(int transform, Department department)
           Does the same thing as create(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.Boolean isLdap, java.lang.String name, Status status)
           Does the same thing as create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,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, java.lang.String email, java.lang.String address, java.lang.String phone, java.lang.Boolean isLdap, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection departments, Department parentDepartment, Status status, java.util.Collection outputTransferts, java.util.Collection inputTransferts)
           Does the same thing as create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection) with an additional flag called transform.
 Department create(java.lang.String code, java.util.Date creationDate, java.lang.Boolean isLdap, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.administration.user.Department instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Department create(java.lang.String code, java.lang.String name, java.lang.String email, java.lang.String address, java.lang.String phone, java.lang.Boolean isLdap, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection departments, Department parentDepartment, Status status, java.util.Collection outputTransferts, java.util.Collection inputTransferts)
           Creates a new fr.ifremer.allegro.administration.user.Department instance from all attributes and properties and adds it to the persistent store.
 Department createFromClusterDepartment(ClusterDepartment clusterDepartment)
           
 Department findDepartmentById(java.lang.Integer id)
           
 java.lang.Object findDepartmentById(int transform, java.lang.Integer id)
           Does the same thing as findDepartmentById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findDepartmentById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as findDepartmentById(int, java.lang.Integer) with an additional argument called queryString.
 Department findDepartmentById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as findDepartmentById(java.lang.Integer) with an additional argument called queryString.
 java.lang.Object findDepartmentByNaturalId(int transform, java.lang.String code)
           Does the same thing as findDepartmentByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findDepartmentByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as findDepartmentByNaturalId(int, java.lang.String) with an additional argument called queryString.
 Department findDepartmentByNaturalId(java.lang.String code)
           
 Department findDepartmentByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as findDepartmentByNaturalId(java.lang.String) with an additional argument called queryString.
 java.util.Collection findDepartmentByParentDepartment(Department parentDepartment)
           
 java.util.Collection findDepartmentByParentDepartment(int transform, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.util.Collection findDepartmentByParentDepartment(int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByParentDepartment(int transform, int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByParentDepartment(int transform, java.lang.String queryString, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findDepartmentByParentDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as findDepartmentByParentDepartment(String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int transform, Status status)
           Does the same thing as findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findDepartmentByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as findDepartmentByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findDepartmentByStatus(Status status)
           
 java.util.Collection findDepartmentByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as findDepartmentByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(java.lang.String queryString, Status status)
           Does the same thing as findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterDepartment[] getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllDepartment()
           
 java.util.Collection getAllDepartment(int transform)
           Does the same thing as getAllDepartment() with an additional flag called transform.
 java.util.Collection getAllDepartment(int pageNumber, int pageSize)
           Does the same thing as getAllDepartment() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartment(int transform, int pageNumber, int pageSize)
           Does the same thing as getAllDepartment(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartment(int transform, java.lang.String queryString)
           Does the same thing as getAllDepartment(int) with an additional argument called queryString.
 java.util.Collection getAllDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllDepartment(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartment(java.lang.String queryString)
           Does the same thing as getAllDepartment() with an additional argument called queryString.
 java.util.Collection getAllDepartment(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllDepartment(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllDepartmentSinceDateSynchro(java.sql.Timestamp updateDate)
           
 Department load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.user.Department from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Department.
 java.util.Collection loadAll(int transform)
           Does the same thing as loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as 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 loadAll(int) with an additional two arguments called pageNumber and pageSize.
 Department remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO remoteDepartmentFullVO)
          Converts an instance of type RemoteDepartmentFullVO to this DAO's entity.
 void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source, Department target, boolean copyIfNull)
          Copies the fields of RemoteDepartmentFullVO to the specified entity.
 void remoteDepartmentFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteDepartmentFullVO to this DAO's entity.
 Department remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId remoteDepartmentNaturalId)
          Converts an instance of type RemoteDepartmentNaturalId to this DAO's entity.
 void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source, Department target, boolean copyIfNull)
          Copies the fields of RemoteDepartmentNaturalId to the specified entity.
 void remoteDepartmentNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteDepartmentNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Department department)
          Removes the instance of fr.ifremer.allegro.administration.user.Department from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.administration.user.Department 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 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.
 ClusterDepartment toClusterDepartment(Department entity)
          Converts this DAO's entity to an object of type ClusterDepartment.
 void toClusterDepartment(Department source, ClusterDepartment target)
          Copies the fields of the specified entity to the target value object.
 ClusterDepartment[] toClusterDepartmentArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterDepartment.
 void toClusterDepartmentCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterDepartment.
 RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
          Converts this DAO's entity to an object of type RemoteDepartmentFullVO.
 void toRemoteDepartmentFullVO(Department source, RemoteDepartmentFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteDepartmentFullVO[] toRemoteDepartmentFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteDepartmentFullVO.
 void toRemoteDepartmentFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteDepartmentFullVO.
 RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
          Converts this DAO's entity to an object of type RemoteDepartmentNaturalId.
 void toRemoteDepartmentNaturalId(Department source, RemoteDepartmentNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteDepartmentNaturalId[] toRemoteDepartmentNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteDepartmentNaturalId.
 void toRemoteDepartmentNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteDepartmentNaturalId.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(Department department)
          Updates the department instance in the persistent store.
 

Field Detail

TRANSFORM_NONE

static final int TRANSFORM_NONE
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes no transformation will occur.

See Also:
Constant Field Values

TRANSFORM_REMOTEDEPARTMENTFULLVO

static final int TRANSFORM_REMOTEDEPARTMENTFULLVO
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type RemoteDepartmentFullVO.

See Also:
Constant Field Values

TRANSFORM_REMOTEDEPARTMENTNATURALID

static final int TRANSFORM_REMOTEDEPARTMENTNATURALID
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type RemoteDepartmentNaturalId.

See Also:
Constant Field Values

TRANSFORM_CLUSTERDEPARTMENT

static final int TRANSFORM_CLUSTERDEPARTMENT
This constant is used as a transformation flag; entities can be converted automatically into value objects or other types, different methods in a class implementing this interface support this feature: look for an int parameter called transform.

This specific flag denotes entities must be transformed into objects of type ClusterDepartment.

See Also:
Constant Field Values
Method Detail

toRemoteDepartmentFullVO

void toRemoteDepartmentFullVO(Department source,
                              RemoteDepartmentFullVO target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteDepartmentFullVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteDepartmentFullVO

RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
Converts this DAO's entity to an object of type RemoteDepartmentFullVO.


toRemoteDepartmentFullVOCollection

void toRemoteDepartmentFullVOCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteDepartmentFullVO.


toRemoteDepartmentFullVOArray

RemoteDepartmentFullVO[] toRemoteDepartmentFullVOArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteDepartmentFullVO.


remoteDepartmentFullVOToEntity

void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source,
                                    Department target,
                                    boolean copyIfNull)
Copies the fields of RemoteDepartmentFullVO to the specified entity.

Parameters:
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.

remoteDepartmentFullVOToEntity

Department remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO remoteDepartmentFullVO)
Converts an instance of type RemoteDepartmentFullVO to this DAO's entity.


remoteDepartmentFullVOToEntityCollection

void remoteDepartmentFullVOToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteDepartmentFullVO to this DAO's entity.


toRemoteDepartmentNaturalId

void toRemoteDepartmentNaturalId(Department source,
                                 RemoteDepartmentNaturalId target)
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteDepartmentNaturalId(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toRemoteDepartmentNaturalId

RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
Converts this DAO's entity to an object of type RemoteDepartmentNaturalId.


toRemoteDepartmentNaturalIdCollection

void toRemoteDepartmentNaturalIdCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type RemoteDepartmentNaturalId.


toRemoteDepartmentNaturalIdArray

RemoteDepartmentNaturalId[] toRemoteDepartmentNaturalIdArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type RemoteDepartmentNaturalId.


remoteDepartmentNaturalIdToEntity

void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source,
                                       Department target,
                                       boolean copyIfNull)
Copies the fields of RemoteDepartmentNaturalId to the specified entity.

Parameters:
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.

remoteDepartmentNaturalIdToEntity

Department remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId remoteDepartmentNaturalId)
Converts an instance of type RemoteDepartmentNaturalId to this DAO's entity.


remoteDepartmentNaturalIdToEntityCollection

void remoteDepartmentNaturalIdToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type RemoteDepartmentNaturalId to this DAO's entity.


toClusterDepartment

void toClusterDepartment(Department source,
                         ClusterDepartment target)
Copies the fields of the specified entity to the target value object. This method is similar to toClusterDepartment(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).


toClusterDepartment

ClusterDepartment toClusterDepartment(Department entity)
Converts this DAO's entity to an object of type ClusterDepartment.


toClusterDepartmentCollection

void toClusterDepartmentCollection(java.util.Collection entities)
Converts this DAO's entity to a Collection of instances of type ClusterDepartment.


toClusterDepartmentArray

ClusterDepartment[] toClusterDepartmentArray(java.util.Collection entities)
Converts this DAO's entity to an array of instances of type ClusterDepartment.


clusterDepartmentToEntity

void clusterDepartmentToEntity(ClusterDepartment source,
                               Department target,
                               boolean copyIfNull)
Copies the fields of ClusterDepartment to the specified entity.

Parameters:
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.

clusterDepartmentToEntity

Department clusterDepartmentToEntity(ClusterDepartment clusterDepartment)
Converts an instance of type ClusterDepartment to this DAO's entity.


clusterDepartmentToEntityCollection

void clusterDepartmentToEntityCollection(java.util.Collection instances)
Converts a Collection of instances of type ClusterDepartment to this DAO's entity.


load

Department load(java.lang.Integer id)
Loads an instance of fr.ifremer.allegro.administration.user.Department from the persistent store.


load

java.lang.Object load(int transform,
                      java.lang.Integer id)

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

Parameters:
id - identifier of the entity to load
Returns:
either the entity or the object transformed from the entity.

loadAll

java.util.Collection loadAll()
Loads all entities of type Department.

Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int transform)

Does the same thing as 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.

Parameters:
transform - the flag indicating what transformation to use.
Returns:
the loaded entities.

loadAll

java.util.Collection loadAll(int pageNumber,
                             int pageSize)

Does the same thing as 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.

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.

loadAll

java.util.Collection loadAll(int transform,
                             int pageNumber,
                             int pageSize)

Does the same thing as 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.

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.

create

Department create(Department department)
Creates an instance of fr.ifremer.allegro.administration.user.Department and adds it to the persistent store.


create

java.lang.Object create(int transform,
                        Department department)

Does the same thing as create(fr.ifremer.allegro.administration.user.Department) 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.


create

java.util.Collection create(java.util.Collection entities)
Creates a new instance of fr.ifremer.allegro.administration.user.Department and adds from the passed in entities collection

Parameters:
entities - the collection of fr.ifremer.allegro.administration.user.Department instances to create.
Returns:
the created instances.

create

java.util.Collection create(int transform,
                            java.util.Collection entities)

Does the same thing as create(fr.ifremer.allegro.administration.user.Department) 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.


create

Department create(java.lang.String code,
                  java.lang.String name,
                  java.lang.String email,
                  java.lang.String address,
                  java.lang.String phone,
                  java.lang.Boolean isLdap,
                  java.util.Date creationDate,
                  java.sql.Timestamp updateDate,
                  java.util.Collection program2Departments,
                  java.util.Collection departments,
                  Department parentDepartment,
                  Status status,
                  java.util.Collection outputTransferts,
                  java.util.Collection inputTransferts)

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


create

java.lang.Object create(int transform,
                        java.lang.String code,
                        java.lang.String name,
                        java.lang.String email,
                        java.lang.String address,
                        java.lang.String phone,
                        java.lang.Boolean isLdap,
                        java.util.Date creationDate,
                        java.sql.Timestamp updateDate,
                        java.util.Collection program2Departments,
                        java.util.Collection departments,
                        Department parentDepartment,
                        Status status,
                        java.util.Collection outputTransferts,
                        java.util.Collection inputTransferts)

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


create

Department create(java.lang.String code,
                  java.util.Date creationDate,
                  java.lang.Boolean isLdap,
                  java.lang.String name,
                  Status status)

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


create

java.lang.Object create(int transform,
                        java.lang.String code,
                        java.util.Date creationDate,
                        java.lang.Boolean isLdap,
                        java.lang.String name,
                        Status status)

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


update

void update(Department department)
Updates the department instance in the persistent store.


update

void update(java.util.Collection entities)
Updates all instances in the entities collection in the persistent store.


remove

void remove(Department department)
Removes the instance of fr.ifremer.allegro.administration.user.Department from the persistent store.


remove

void remove(java.lang.Integer id)
Removes the instance of fr.ifremer.allegro.administration.user.Department having the given identifier from the persistent store.


remove

void remove(java.util.Collection entities)
Removes all entities in the given entities collection.


getAllDepartment

java.util.Collection getAllDepartment()

getAllDepartment

java.util.Collection getAllDepartment(java.lang.String queryString)

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


getAllDepartment

java.util.Collection getAllDepartment(int pageNumber,
                                      int pageSize)

Does the same thing as getAllDepartment() 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.


getAllDepartment

java.util.Collection getAllDepartment(java.lang.String queryString,
                                      int pageNumber,
                                      int pageSize)

Does the same thing as getAllDepartment(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.


getAllDepartment

java.util.Collection getAllDepartment(int transform)

Does the same thing as getAllDepartment() 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.


getAllDepartment

java.util.Collection getAllDepartment(int transform,
                                      int pageNumber,
                                      int pageSize)

Does the same thing as getAllDepartment(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.


getAllDepartment

java.util.Collection getAllDepartment(int transform,
                                      java.lang.String queryString)

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


getAllDepartment

java.util.Collection getAllDepartment(int transform,
                                      java.lang.String queryString,
                                      int pageNumber,
                                      int pageSize)

Does the same thing as getAllDepartment(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.


findDepartmentById

Department findDepartmentById(java.lang.Integer id)

findDepartmentById

Department findDepartmentById(java.lang.String queryString,
                              java.lang.Integer id)

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


findDepartmentById

java.lang.Object findDepartmentById(int transform,
                                    java.lang.Integer id)

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


findDepartmentById

java.lang.Object findDepartmentById(int transform,
                                    java.lang.String queryString,
                                    java.lang.Integer id)

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


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(Department parentDepartment)

findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString,
                                                      Department parentDepartment)

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


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(int pageNumber,
                                                      int pageSize,
                                                      Department parentDepartment)

Does the same thing as findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) 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.


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString,
                                                      int pageNumber,
                                                      int pageSize,
                                                      Department parentDepartment)

Does the same thing as findDepartmentByParentDepartment(String, fr.ifremer.allegro.administration.user.Department) 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.


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(int transform,
                                                      Department parentDepartment)

Does the same thing as findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) 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.


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(int transform,
                                                      int pageNumber,
                                                      int pageSize,
                                                      Department parentDepartment)

Does the same thing as findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) 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.


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(int transform,
                                                      java.lang.String queryString,
                                                      Department parentDepartment)

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


findDepartmentByParentDepartment

java.util.Collection findDepartmentByParentDepartment(int transform,
                                                      java.lang.String queryString,
                                                      int pageNumber,
                                                      int pageSize,
                                                      Department parentDepartment)

Does the same thing as findDepartmentByParentDepartment(int, String, fr.ifremer.allegro.administration.user.Department) 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.


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(Status status)

findDepartmentByStatus

java.util.Collection findDepartmentByStatus(java.lang.String queryString,
                                            Status status)

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


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(int pageNumber,
                                            int pageSize,
                                            Status status)

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


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(java.lang.String queryString,
                                            int pageNumber,
                                            int pageSize,
                                            Status status)

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


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(int transform,
                                            Status status)

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


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(int transform,
                                            int pageNumber,
                                            int pageSize,
                                            Status status)

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


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(int transform,
                                            java.lang.String queryString,
                                            Status status)

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


findDepartmentByStatus

java.util.Collection findDepartmentByStatus(int transform,
                                            java.lang.String queryString,
                                            int pageNumber,
                                            int pageSize,
                                            Status status)

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


findDepartmentByNaturalId

Department findDepartmentByNaturalId(java.lang.String code)

findDepartmentByNaturalId

Department findDepartmentByNaturalId(java.lang.String queryString,
                                     java.lang.String code)

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


findDepartmentByNaturalId

java.lang.Object findDepartmentByNaturalId(int transform,
                                           java.lang.String code)

Does the same thing as findDepartmentByNaturalId(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.


findDepartmentByNaturalId

java.lang.Object findDepartmentByNaturalId(int transform,
                                           java.lang.String queryString,
                                           java.lang.String code)

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


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(java.sql.Timestamp updateDate)

getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString,
                                                      java.sql.Timestamp updateDate)

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


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(int pageNumber,
                                                      int pageSize,
                                                      java.sql.Timestamp updateDate)

Does the same thing as getAllDepartmentSinceDateSynchro(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.


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString,
                                                      int pageNumber,
                                                      int pageSize,
                                                      java.sql.Timestamp updateDate)

Does the same thing as getAllDepartmentSinceDateSynchro(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.


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(int transform,
                                                      java.sql.Timestamp updateDate)

Does the same thing as getAllDepartmentSinceDateSynchro(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.


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(int transform,
                                                      int pageNumber,
                                                      int pageSize,
                                                      java.sql.Timestamp updateDate)

Does the same thing as getAllDepartmentSinceDateSynchro(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.


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(int transform,
                                                      java.lang.String queryString,
                                                      java.sql.Timestamp updateDate)

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


getAllDepartmentSinceDateSynchro

java.util.Collection getAllDepartmentSinceDateSynchro(int transform,
                                                      java.lang.String queryString,
                                                      int pageNumber,
                                                      int pageSize,
                                                      java.sql.Timestamp updateDate)

Does the same thing as getAllDepartmentSinceDateSynchro(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.


createFromClusterDepartment

Department createFromClusterDepartment(ClusterDepartment clusterDepartment)

getAllClusterDepartmentSinceDateSynchro

ClusterDepartment[] getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                            java.lang.Integer userId,
                                                            java.lang.Integer[] registrationLocationIds,
                                                            java.lang.Integer pageNumber,
                                                            java.lang.Integer pageSize)

search

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. These flags allow you to limit your data to a specified page number and size.

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.

search

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. These flags allow you to limit your data to a specified page number and size.

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.

search

java.util.Set search(int transform,
                     Search search)
Does the same thing as 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.

Parameters:
transform - the transformation flag.
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.

search

java.util.Set search(Search search)
Performs a search using the parameters specified in the given search object.

Parameters:
search - the search object which provides the search parameters and pagination specification.
Returns:
any found results from the search.


Copyright © 2008-2010 IFREMER. All Rights Reserved.