fr.ifremer.allegro.administration.user
Interface UserDao

All Superinterfaces:
PersonDao
All Known Implementing Classes:
UserDaoBase, UserDaoImpl

public interface UserDao
extends PersonDao

See Also:
User

Field Summary
static int TRANSFORM_CLUSTERUSER
          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_REMOTEUSERFULLVO
          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_REMOTEUSERNATURALID
          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.
 
Fields inherited from interface fr.ifremer.allegro.administration.user.PersonDao
TRANSFORM_CLUSTERPERSON, TRANSFORM_NONE, TRANSFORM_REMOTEPERSONFULLVO, TRANSFORM_REMOTEPERSONNATURALID
 
Method Summary
 User clusterUserToEntity(ClusterUser clusterUser)
          Converts an instance of type ClusterUser to this DAO's entity.
 void clusterUserToEntity(ClusterUser source, User target, boolean copyIfNull)
          Copies the fields of ClusterUser to the specified entity.
 void clusterUserToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterUser to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.user.User and adds from the passed in entities collection
 Person create(java.util.Date creationDate, Department department, java.lang.String firstname, java.lang.String lastname, Status status, java.lang.String username)
           Creates a new fr.ifremer.allegro.administration.user.User instance from only required properties (attributes and association ends) 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.User) with an additional flag called transform.
 java.lang.Object create(int transform, java.util.Date creationDate, Department department, java.lang.String firstname, java.lang.String lastname, Status status, java.lang.String username)
           Does the same thing as create(java.util.Date,fr.ifremer.allegro.administration.user.Department,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status,java.lang.String) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String lastname, java.lang.String firstname, java.lang.String address, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Persons, Status status, Department department, java.util.Collection ageReaderQualifications, java.lang.String username, java.lang.String usernameExtranet, java.lang.String employeeNumber, java.lang.String email, java.util.Collection profils)
           Does the same thing as create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.Status,fr.ifremer.allegro.administration.user.Department,java.util.Collection,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Collection) with an additional flag called transform.
 java.lang.Object create(int transform, User user)
           Does the same thing as create(fr.ifremer.allegro.administration.user.User) with an additional flag called transform.
 Person create(java.lang.String lastname, java.lang.String firstname, java.lang.String address, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Persons, Status status, Department department, java.util.Collection ageReaderQualifications, java.lang.String username, java.lang.String usernameExtranet, java.lang.String employeeNumber, java.lang.String email, java.util.Collection profils)
           Creates a new fr.ifremer.allegro.administration.user.User instance from all attributes and properties and adds it to the persistent store.
 Person create(User user)
          Creates an instance of fr.ifremer.allegro.administration.user.User and adds it to the persistent store.
 User createFromClusterUser(ClusterUser clusterUser)
           
 java.util.Collection findUserByDepartment(Department department)
           
 java.util.Collection findUserByDepartment(int transform, Department department)
           Does the same thing as findUserByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.util.Collection findUserByDepartment(int pageNumber, int pageSize, Department department)
           Does the same thing as findUserByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByDepartment(int transform, int pageNumber, int pageSize, Department department)
           Does the same thing as findUserByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByDepartment(int transform, java.lang.String queryString, Department department)
           Does the same thing as findUserByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findUserByDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department department)
           Does the same thing as findUserByDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByDepartment(java.lang.String queryString, Department department)
           Does the same thing as findUserByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findUserByDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department department)
           Does the same thing as findUserByDepartment(String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 User findUserById(java.lang.Integer id)
           
 java.lang.Object findUserById(int transform, java.lang.Integer id)
           Does the same thing as findUserById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findUserById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as findUserById(int, java.lang.Integer) with an additional argument called queryString.
 User findUserById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as findUserById(java.lang.Integer) with an additional argument called queryString.
 User findUserByNaturalId(java.lang.Integer id)
           
 java.lang.Object findUserByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as findUserByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findUserByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as findUserByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 User findUserByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as findUserByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findUserByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as findUserByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as findUserByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByStatus(int transform, Status status)
           Does the same thing as findUserByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findUserByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as findUserByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as findUserByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findUserByStatus(Status status)
           
 java.util.Collection findUserByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as findUserByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findUserByStatus(java.lang.String queryString, Status status)
           Does the same thing as findUserByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterUser[] getAllClusterUserSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllUser()
           
 java.util.Collection getAllUser(int transform)
           Does the same thing as getAllUser() with an additional flag called transform.
 java.util.Collection getAllUser(int pageNumber, int pageSize)
           Does the same thing as getAllUser() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUser(int transform, int pageNumber, int pageSize)
           Does the same thing as getAllUser(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUser(int transform, java.lang.String queryString)
           Does the same thing as getAllUser(int) with an additional argument called queryString.
 java.util.Collection getAllUser(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllUser(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUser(java.lang.String queryString)
           Does the same thing as getAllUser() with an additional argument called queryString.
 java.util.Collection getAllUser(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as getAllUser(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUserSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUserSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUserSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUserSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllUserSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllUserSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllUserSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as getAllUserSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllUserSinceDateSynchro(java.sql.Timestamp updateDate)
           
 Person load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.user.User 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 User.
 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.
 User remoteUserFullVOToEntity(RemoteUserFullVO remoteUserFullVO)
          Converts an instance of type RemoteUserFullVO to this DAO's entity.
 void remoteUserFullVOToEntity(RemoteUserFullVO source, User target, boolean copyIfNull)
          Copies the fields of RemoteUserFullVO to the specified entity.
 void remoteUserFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteUserFullVO to this DAO's entity.
 User remoteUserNaturalIdToEntity(RemoteUserNaturalId remoteUserNaturalId)
          Converts an instance of type RemoteUserNaturalId to this DAO's entity.
 void remoteUserNaturalIdToEntity(RemoteUserNaturalId source, User target, boolean copyIfNull)
          Copies the fields of RemoteUserNaturalId to the specified entity.
 void remoteUserNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteUserNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.administration.user.User having the given identifier from the persistent store.
 void remove(User user)
          Removes the instance of fr.ifremer.allegro.administration.user.User 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.
 ClusterUser toClusterUser(User entity)
          Converts this DAO's entity to an object of type ClusterUser.
 void toClusterUser(User source, ClusterUser target)
          Copies the fields of the specified entity to the target value object.
 ClusterUser[] toClusterUserArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterUser.
 void toClusterUserCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterUser.
 RemoteUserFullVO toRemoteUserFullVO(User entity)
          Converts this DAO's entity to an object of type RemoteUserFullVO.
 void toRemoteUserFullVO(User source, RemoteUserFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteUserFullVO[] toRemoteUserFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteUserFullVO.
 void toRemoteUserFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteUserFullVO.
 RemoteUserNaturalId toRemoteUserNaturalId(User entity)
          Converts this DAO's entity to an object of type RemoteUserNaturalId.
 void toRemoteUserNaturalId(User source, RemoteUserNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteUserNaturalId[] toRemoteUserNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteUserNaturalId.
 void toRemoteUserNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteUserNaturalId.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(User user)
          Updates the user instance in the persistent store.
 
Methods inherited from interface fr.ifremer.allegro.administration.user.PersonDao
clusterPersonToEntity, clusterPersonToEntity, clusterPersonToEntityCollection, create, create, create, create, create, create, createFromClusterPerson, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonByDepartment, findPersonById, findPersonById, findPersonById, findPersonById, findPersonByNaturalId, findPersonByNaturalId, findPersonByNaturalId, findPersonByNaturalId, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, findPersonByStatus, getAllClusterPersonSinceDateSynchro, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPerson, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, getAllPersonSinceDateSynchro, remotePersonFullVOToEntity, remotePersonFullVOToEntity, remotePersonFullVOToEntityCollection, remotePersonNaturalIdToEntity, remotePersonNaturalIdToEntity, remotePersonNaturalIdToEntityCollection, remove, toClusterPerson, toClusterPerson, toClusterPersonArray, toClusterPersonCollection, toRemotePersonFullVO, toRemotePersonFullVO, toRemotePersonFullVOArray, toRemotePersonFullVOCollection, toRemotePersonNaturalId, toRemotePersonNaturalId, toRemotePersonNaturalIdArray, toRemotePersonNaturalIdCollection, update
 

Field Detail

TRANSFORM_REMOTEUSERFULLVO

static final int TRANSFORM_REMOTEUSERFULLVO
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 RemoteUserFullVO.

See Also:
Constant Field Values

TRANSFORM_REMOTEUSERNATURALID

static final int TRANSFORM_REMOTEUSERNATURALID
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 RemoteUserNaturalId.

See Also:
Constant Field Values

TRANSFORM_CLUSTERUSER

static final int TRANSFORM_CLUSTERUSER
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 ClusterUser.

See Also:
Constant Field Values
Method Detail

toRemoteUserFullVO

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


toRemoteUserFullVO

RemoteUserFullVO toRemoteUserFullVO(User entity)
Converts this DAO's entity to an object of type RemoteUserFullVO.


toRemoteUserFullVOCollection

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


toRemoteUserFullVOArray

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


remoteUserFullVOToEntity

void remoteUserFullVOToEntity(RemoteUserFullVO source,
                              User target,
                              boolean copyIfNull)
Copies the fields of RemoteUserFullVO 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.

remoteUserFullVOToEntity

User remoteUserFullVOToEntity(RemoteUserFullVO remoteUserFullVO)
Converts an instance of type RemoteUserFullVO to this DAO's entity.


remoteUserFullVOToEntityCollection

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


toRemoteUserNaturalId

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


toRemoteUserNaturalId

RemoteUserNaturalId toRemoteUserNaturalId(User entity)
Converts this DAO's entity to an object of type RemoteUserNaturalId.


toRemoteUserNaturalIdCollection

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


toRemoteUserNaturalIdArray

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


remoteUserNaturalIdToEntity

void remoteUserNaturalIdToEntity(RemoteUserNaturalId source,
                                 User target,
                                 boolean copyIfNull)
Copies the fields of RemoteUserNaturalId 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.

remoteUserNaturalIdToEntity

User remoteUserNaturalIdToEntity(RemoteUserNaturalId remoteUserNaturalId)
Converts an instance of type RemoteUserNaturalId to this DAO's entity.


remoteUserNaturalIdToEntityCollection

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


toClusterUser

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


toClusterUser

ClusterUser toClusterUser(User entity)
Converts this DAO's entity to an object of type ClusterUser.


toClusterUserCollection

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


toClusterUserArray

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


clusterUserToEntity

void clusterUserToEntity(ClusterUser source,
                         User target,
                         boolean copyIfNull)
Copies the fields of ClusterUser 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.

clusterUserToEntity

User clusterUserToEntity(ClusterUser clusterUser)
Converts an instance of type ClusterUser to this DAO's entity.


clusterUserToEntityCollection

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


load

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

Specified by:
load in interface PersonDao

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.

Specified by:
load in interface PersonDao
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 User.

Specified by:
loadAll in interface PersonDao
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.

Specified by:
loadAll in interface PersonDao
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.

Specified by:
loadAll in interface PersonDao
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.

Specified by:
loadAll in interface PersonDao
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

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


create

java.lang.Object create(int transform,
                        User user)

Does the same thing as create(fr.ifremer.allegro.administration.user.User) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will 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.User and adds from the passed in entities collection

Specified by:
create in interface PersonDao
Parameters:
entities - the collection of fr.ifremer.allegro.administration.user.User 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.User) 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 PersonDao

create

Person create(java.lang.String lastname,
              java.lang.String firstname,
              java.lang.String address,
              java.util.Date creationDate,
              java.sql.Timestamp updateDate,
              java.util.Collection program2Persons,
              Status status,
              Department department,
              java.util.Collection ageReaderQualifications,
              java.lang.String username,
              java.lang.String usernameExtranet,
              java.lang.String employeeNumber,
              java.lang.String email,
              java.util.Collection profils)

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


create

java.lang.Object create(int transform,
                        java.lang.String lastname,
                        java.lang.String firstname,
                        java.lang.String address,
                        java.util.Date creationDate,
                        java.sql.Timestamp updateDate,
                        java.util.Collection program2Persons,
                        Status status,
                        Department department,
                        java.util.Collection ageReaderQualifications,
                        java.lang.String username,
                        java.lang.String usernameExtranet,
                        java.lang.String employeeNumber,
                        java.lang.String email,
                        java.util.Collection profils)

Does the same thing as create(java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.sql.Timestamp,java.util.Collection,fr.ifremer.allegro.referential.Status,fr.ifremer.allegro.administration.user.Department,java.util.Collection,java.lang.String,java.lang.String,java.lang.String,java.lang.String,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

Person create(java.util.Date creationDate,
              Department department,
              java.lang.String firstname,
              java.lang.String lastname,
              Status status,
              java.lang.String username)

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


create

java.lang.Object create(int transform,
                        java.util.Date creationDate,
                        Department department,
                        java.lang.String firstname,
                        java.lang.String lastname,
                        Status status,
                        java.lang.String username)

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


update

void update(User user)
Updates the user instance in the persistent store.


update

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

Specified by:
update in interface PersonDao

remove

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


remove

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

Specified by:
remove in interface PersonDao

remove

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

Specified by:
remove in interface PersonDao

getAllUser

java.util.Collection getAllUser()

getAllUser

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

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


getAllUser

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

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


getAllUser

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

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


getAllUser

java.util.Collection getAllUser(int transform)

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


getAllUser

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

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


getAllUser

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

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


getAllUser

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

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


findUserById

User findUserById(java.lang.Integer id)

findUserById

User findUserById(java.lang.String queryString,
                  java.lang.Integer id)

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


findUserById

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

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


findUserById

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

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


findUserByStatus

java.util.Collection findUserByStatus(Status status)

findUserByStatus

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

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


findUserByStatus

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

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


findUserByStatus

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

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


findUserByStatus

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

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


findUserByStatus

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

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


findUserByStatus

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

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


findUserByStatus

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

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


findUserByDepartment

java.util.Collection findUserByDepartment(Department department)

findUserByDepartment

java.util.Collection findUserByDepartment(java.lang.String queryString,
                                          Department department)

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


findUserByDepartment

java.util.Collection findUserByDepartment(int pageNumber,
                                          int pageSize,
                                          Department department)

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


findUserByDepartment

java.util.Collection findUserByDepartment(java.lang.String queryString,
                                          int pageNumber,
                                          int pageSize,
                                          Department department)

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


findUserByDepartment

java.util.Collection findUserByDepartment(int transform,
                                          Department department)

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


findUserByDepartment

java.util.Collection findUserByDepartment(int transform,
                                          int pageNumber,
                                          int pageSize,
                                          Department department)

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


findUserByDepartment

java.util.Collection findUserByDepartment(int transform,
                                          java.lang.String queryString,
                                          Department department)

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


findUserByDepartment

java.util.Collection findUserByDepartment(int transform,
                                          java.lang.String queryString,
                                          int pageNumber,
                                          int pageSize,
                                          Department department)

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


findUserByNaturalId

User findUserByNaturalId(java.lang.Integer id)

findUserByNaturalId

User findUserByNaturalId(java.lang.String queryString,
                         java.lang.Integer id)

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


findUserByNaturalId

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

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


findUserByNaturalId

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

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


getAllUserSinceDateSynchro

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

getAllUserSinceDateSynchro

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

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


getAllUserSinceDateSynchro

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

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


getAllUserSinceDateSynchro

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

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


getAllUserSinceDateSynchro

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

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


getAllUserSinceDateSynchro

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

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


getAllUserSinceDateSynchro

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

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


getAllUserSinceDateSynchro

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

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


createFromClusterUser

User createFromClusterUser(ClusterUser clusterUser)

getAllClusterUserSinceDateSynchro

ClusterUser[] getAllClusterUserSinceDateSynchro(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.

Specified by:
search in interface PersonDao
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.

Specified by:
search in interface PersonDao
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.

Specified by:
search in interface PersonDao
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.

Specified by:
search in interface PersonDao
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.