fr.ifremer.allegro.administration.user
Class PersonDaoBase

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

public abstract class PersonDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements PersonDao

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

See Also:
Person

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.PersonDao
TRANSFORM_CLUSTERPERSON, TRANSFORM_NONE, TRANSFORM_REMOTEPERSONFULLVO, TRANSFORM_REMOTEPERSONNATURALID
 
Constructor Summary
PersonDaoBase()
           
 
Method Summary
 void clusterPersonToEntity(ClusterPerson source, Person target, boolean copyIfNull)
          Copies the fields of ClusterPerson to the specified entity.
 void clusterPersonToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterPerson to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.user.Person 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)
           Creates a new fr.ifremer.allegro.administration.user.Person 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 PersonDao.create(fr.ifremer.allegro.administration.user.Person) 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)
           Does the same thing as PersonDao.create(java.util.Date,fr.ifremer.allegro.administration.user.Department,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, Person person)
           Does the same thing as PersonDao.create(fr.ifremer.allegro.administration.user.Person) 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)
           Does the same thing as PersonDao.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) with an additional flag called transform.
 Person create(Person person)
          Creates an instance of fr.ifremer.allegro.administration.user.Person and adds it to the persistent store.
 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)
           Creates a new fr.ifremer.allegro.administration.user.Person instance from all attributes and properties and adds it to the persistent store.
 Person createFromClusterPerson(ClusterPerson clusterPerson)
           
 java.util.Collection findPersonByDepartment(Department department)
           
 java.util.Collection findPersonByDepartment(int transform, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.util.Collection findPersonByDepartment(int pageNumber, int pageSize, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByDepartment(int transform, int pageNumber, int pageSize, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByDepartment(int transform, java.lang.String queryString, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findPersonByDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByDepartment(java.lang.String queryString, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findPersonByDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department department)
           Does the same thing as PersonDao.findPersonByDepartment(String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 Person findPersonById(java.lang.Integer id)
           
 java.lang.Object findPersonById(int transform, java.lang.Integer id)
           Does the same thing as PersonDao.findPersonById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findPersonById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PersonDao.findPersonById(int, java.lang.Integer) with an additional argument called queryString.
 Person findPersonById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PersonDao.findPersonById(java.lang.Integer) with an additional argument called queryString.
 Person findPersonByNaturalId(java.lang.Integer id)
           
 java.lang.Object findPersonByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as PersonDao.findPersonByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findPersonByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PersonDao.findPersonByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Person findPersonByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as PersonDao.findPersonByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findPersonByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as PersonDao.findPersonByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as PersonDao.findPersonByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByStatus(int transform, Status status)
           Does the same thing as PersonDao.findPersonByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findPersonByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as PersonDao.findPersonByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as PersonDao.findPersonByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findPersonByStatus(Status status)
           
 java.util.Collection findPersonByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as PersonDao.findPersonByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findPersonByStatus(java.lang.String queryString, Status status)
           Does the same thing as PersonDao.findPersonByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
protected  AgeReaderQualificationDao getAgeReaderQualificationDao()
          Gets the reference to ageReaderQualificationDao.
 ClusterPerson[] getAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllPerson()
           
 java.util.Collection getAllPerson(int transform)
           Does the same thing as PersonDao.getAllPerson() with an additional flag called transform.
 java.util.Collection getAllPerson(int pageNumber, int pageSize)
           Does the same thing as PersonDao.getAllPerson() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPerson(int transform, int pageNumber, int pageSize)
           Does the same thing as PersonDao.getAllPerson(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPerson(int transform, java.lang.String queryString)
           Does the same thing as PersonDao.getAllPerson(int) with an additional argument called queryString.
 java.util.Collection getAllPerson(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PersonDao.getAllPerson(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPerson(java.lang.String queryString)
           Does the same thing as PersonDao.getAllPerson() with an additional argument called queryString.
 java.util.Collection getAllPerson(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as PersonDao.getAllPerson(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPersonSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPersonSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPersonSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPersonSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPersonSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllPersonSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllPersonSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as PersonDao.getAllPersonSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllPersonSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  DepartmentDao getDepartmentDao()
          Gets the reference to departmentDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  Program2PersonDao getProgram2PersonDao()
          Gets the reference to program2PersonDao.
protected  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  Person handleCreateFromClusterPerson(ClusterPerson clusterPerson)
          Performs the core logic for createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)
protected abstract  ClusterPerson[] handleGetAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Person load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.user.Person from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as PersonDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Person.
 java.util.Collection loadAll(int transform)
           Does the same thing as PersonDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as PersonDao.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 PersonDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remotePersonFullVOToEntity(RemotePersonFullVO source, Person target, boolean copyIfNull)
          Copies the fields of RemotePersonFullVO to the specified entity.
 void remotePersonFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePersonFullVO to this DAO's entity.
 void remotePersonNaturalIdToEntity(RemotePersonNaturalId source, Person target, boolean copyIfNull)
          Copies the fields of RemotePersonNaturalId to the specified entity.
 void remotePersonNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemotePersonNaturalId 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.Person having the given identifier from the persistent store.
 void remove(Person person)
          Removes the instance of fr.ifremer.allegro.administration.user.Person 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 PersonDao.search(fr.ifremer.allegro.Search) but with an additional flag called transform.
 java.util.Set search(Search search)
          Performs a search using the parameters specified in the given search object.
 void setAgeReaderQualificationDao(AgeReaderQualificationDao ageReaderQualificationDao)
          Sets the reference to ageReaderQualificationDao.
 void setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to departmentDao.
 void setProgram2PersonDao(Program2PersonDao program2PersonDao)
          Sets the reference to program2PersonDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
protected  ClusterPerson toClusterPerson(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterPerson toClusterPerson(Person entity)
          Converts this DAO's entity to an object of type ClusterPerson.
 void toClusterPerson(Person source, ClusterPerson target)
          Copies the fields of the specified entity to the target value object.
 ClusterPerson[] toClusterPersonArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterPerson.
 void toClusterPersonCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterPerson.
protected  Person toEntity(java.lang.Object[] row)
           
protected  RemotePersonFullVO toRemotePersonFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemotePersonFullVO toRemotePersonFullVO(Person entity)
          Converts this DAO's entity to an object of type RemotePersonFullVO.
 void toRemotePersonFullVO(Person source, RemotePersonFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemotePersonFullVO[] toRemotePersonFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePersonFullVO.
 void toRemotePersonFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePersonFullVO.
protected  RemotePersonNaturalId toRemotePersonNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemotePersonNaturalId toRemotePersonNaturalId(Person entity)
          Converts this DAO's entity to an object of type RemotePersonNaturalId.
 void toRemotePersonNaturalId(Person source, RemotePersonNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemotePersonNaturalId[] toRemotePersonNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemotePersonNaturalId.
 void toRemotePersonNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemotePersonNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.user.Person) method.
protected  java.lang.Object transformEntity(int transform, Person entity)
          Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.administration.user.PersonDao, please note that the PersonDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.
 void update(java.util.Collection entities)
          Updates all instances in the entities collection in the persistent store.
 void update(Person person)
          Updates the person instance in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.administration.user.PersonDao
clusterPersonToEntity, remotePersonFullVOToEntity, remotePersonNaturalIdToEntity
 

Constructor Detail

PersonDaoBase

public PersonDaoBase()
Method Detail

setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setDepartmentDao

public void setDepartmentDao(DepartmentDao departmentDao)
Sets the reference to departmentDao.


getDepartmentDao

protected DepartmentDao getDepartmentDao()
Gets the reference to departmentDao.


setAgeReaderQualificationDao

public void setAgeReaderQualificationDao(AgeReaderQualificationDao ageReaderQualificationDao)
Sets the reference to ageReaderQualificationDao.


getAgeReaderQualificationDao

protected AgeReaderQualificationDao getAgeReaderQualificationDao()
Gets the reference to ageReaderQualificationDao.


setProgram2PersonDao

public void setProgram2PersonDao(Program2PersonDao program2PersonDao)
Sets the reference to program2PersonDao.


getProgram2PersonDao

protected Program2PersonDao getProgram2PersonDao()
Gets the reference to program2PersonDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

Does the same thing as PersonDao.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.
See Also:
PersonDao.loadAll(int)

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               Person person)
Description copied from interface: PersonDao

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

Specified by:
create in interface PersonDao
See Also:
PersonDao.create(int transform, fr.ifremer.allegro.administration.user.Person)

create

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

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

create

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

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

create

public 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)
Description copied from interface: PersonDao

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

Specified by:
create in interface PersonDao
See Also:
PersonDao.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)

create

public 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)
Description copied from interface: PersonDao

Does the same thing as PersonDao.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) with an additional flag called transform. If this flag is set to TRANSFORM_NONE then the returned entity will NOT be transformed. If this flag is any of the other constants defined here then the result WILL BE passed through an operation which can optionally transform the entity (into a value object for example). By default, transformation does not occur.

Specified by:
create in interface PersonDao
See Also:
PersonDao.create(int, 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)

create

public Person create(java.util.Date creationDate,
                     Department department,
                     java.lang.String firstname,
                     java.lang.String lastname,
                     Status status)
Description copied from interface: PersonDao

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

Specified by:
create in interface PersonDao
See Also:
PersonDao.create(java.util.Date,fr.ifremer.allegro.administration.user.Department,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.util.Date creationDate,
                               Department department,
                               java.lang.String firstname,
                               java.lang.String lastname,
                               Status status)
Description copied from interface: PersonDao

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

Specified by:
create in interface PersonDao
See Also:
PersonDao.create(int, java.util.Date,fr.ifremer.allegro.administration.user.Department,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)

update

public void update(Person person)
Description copied from interface: PersonDao
Updates the person instance in the persistent store.

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

update

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

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

remove

public void remove(Person person)
Description copied from interface: PersonDao
Removes the instance of fr.ifremer.allegro.administration.user.Person from the persistent store.

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

remove

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

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

remove

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

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

getAllPerson

public java.util.Collection getAllPerson()
Specified by:
getAllPerson in interface PersonDao
See Also:
PersonDao.getAllPerson()

getAllPerson

public java.util.Collection getAllPerson(int transform)
Description copied from interface: PersonDao

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

Specified by:
getAllPerson in interface PersonDao
See Also:
PersonDao.getAllPerson(int)

getAllPerson

public java.util.Collection getAllPerson(java.lang.String queryString)
Description copied from interface: PersonDao

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

Specified by:
getAllPerson in interface PersonDao
See Also:
PersonDao.getAllPerson(java.lang.String)

getAllPerson

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

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

getAllPerson

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

Does the same thing as PersonDao.getAllPerson(String) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPerson in interface PersonDao
See Also:
PersonDao.getAllPerson(String, int, int)

getAllPerson

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

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

Specified by:
getAllPerson in interface PersonDao
See Also:
PersonDao.getAllPerson(int, String)

getAllPerson

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

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

getAllPerson

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

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

Specified by:
getAllPerson in interface PersonDao
See Also:
PersonDao.getAllPerson(int, java.lang.String, int, int)

findPersonById

public Person findPersonById(java.lang.Integer id)
Specified by:
findPersonById in interface PersonDao
See Also:
PersonDao.findPersonById(java.lang.Integer)

findPersonById

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

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

Specified by:
findPersonById in interface PersonDao
See Also:
PersonDao.findPersonById(int, java.lang.Integer)

findPersonById

public Person findPersonById(java.lang.String queryString,
                             java.lang.Integer id)
Description copied from interface: PersonDao

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

Specified by:
findPersonById in interface PersonDao
See Also:
PersonDao.findPersonById(java.lang.String, java.lang.Integer)

findPersonById

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

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

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

findPersonByStatus

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

findPersonByStatus

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

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

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

findPersonByStatus

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

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

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

findPersonByStatus

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

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

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

findPersonByStatus

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

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

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

findPersonByStatus

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

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

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

findPersonByStatus

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

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

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

findPersonByStatus

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

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

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

findPersonByDepartment

public java.util.Collection findPersonByDepartment(Department department)
Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(int transform,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(int, fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(java.lang.String queryString,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(java.lang.String, fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(int pageNumber,
                                                   int pageSize,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(int, int, fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(String, int, int, fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(int transform,
                                                   java.lang.String queryString,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(int, String, fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(int transform,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(int, int, int, fr.ifremer.allegro.administration.user.Department)

findPersonByDepartment

public java.util.Collection findPersonByDepartment(int transform,
                                                   java.lang.String queryString,
                                                   int pageNumber,
                                                   int pageSize,
                                                   Department department)
Description copied from interface: PersonDao

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

Specified by:
findPersonByDepartment in interface PersonDao
See Also:
PersonDao.findPersonByDepartment(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.Department)

findPersonByNaturalId

public Person findPersonByNaturalId(java.lang.Integer id)
Specified by:
findPersonByNaturalId in interface PersonDao
See Also:
PersonDao.findPersonByNaturalId(java.lang.Integer)

findPersonByNaturalId

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

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

Specified by:
findPersonByNaturalId in interface PersonDao
See Also:
PersonDao.findPersonByNaturalId(int, java.lang.Integer)

findPersonByNaturalId

public Person findPersonByNaturalId(java.lang.String queryString,
                                    java.lang.Integer id)
Description copied from interface: PersonDao

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

Specified by:
findPersonByNaturalId in interface PersonDao
See Also:
PersonDao.findPersonByNaturalId(java.lang.String, java.lang.Integer)

findPersonByNaturalId

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

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

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

getAllPersonSinceDateSynchro

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

getAllPersonSinceDateSynchro

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

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

Specified by:
getAllPersonSinceDateSynchro in interface PersonDao
See Also:
PersonDao.getAllPersonSinceDateSynchro(int, java.sql.Timestamp)

getAllPersonSinceDateSynchro

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

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

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

getAllPersonSinceDateSynchro

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

Does the same thing as PersonDao.getAllPersonSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPersonSinceDateSynchro in interface PersonDao
See Also:
PersonDao.getAllPersonSinceDateSynchro(int, int, java.sql.Timestamp)

getAllPersonSinceDateSynchro

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

Does the same thing as PersonDao.getAllPersonSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

getAllPersonSinceDateSynchro

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

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

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

getAllPersonSinceDateSynchro

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

Does the same thing as PersonDao.getAllPersonSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPersonSinceDateSynchro in interface PersonDao
See Also:
PersonDao.getAllPersonSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllPersonSinceDateSynchro

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

Does the same thing as PersonDao.getAllPersonSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

Specified by:
getAllPersonSinceDateSynchro in interface PersonDao
See Also:
PersonDao.getAllPersonSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)

createFromClusterPerson

public Person createFromClusterPerson(ClusterPerson clusterPerson)
Specified by:
createFromClusterPerson in interface PersonDao
See Also:
PersonDao.createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

handleCreateFromClusterPerson

protected abstract Person handleCreateFromClusterPerson(ClusterPerson clusterPerson)
                                                 throws java.lang.Exception
Performs the core logic for createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

Throws:
java.lang.Exception

getAllClusterPersonSinceDateSynchro

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

handleGetAllClusterPersonSinceDateSynchro

protected abstract ClusterPerson[] handleGetAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                             java.lang.Integer userId,
                                                                             java.lang.Integer[] registrationLocationIds,
                                                                             java.lang.Integer pageNumber,
                                                                             java.lang.Integer pageSize)
                                                                      throws java.lang.Exception
Performs the core logic for getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

transformEntity

protected java.lang.Object transformEntity(int transform,
                                           Person entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.administration.user.PersonDao, please note that the PersonDao.TRANSFORM_NONE constant denotes no transformation, so the entity itself will be returned.

This method will return instances of these types:

If the integer argument value is unknown PersonDao.TRANSFORM_NONE is assumed.

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

transformEntities

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

This method is to be used internally only.

Parameters:
transform - one of the constants declared in fr.ifremer.allegro.administration.user.PersonDao
entities - the collection of entities to transform
See Also:
transformEntity(int,fr.ifremer.allegro.administration.user.Person)

toEntity

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

toRemotePersonFullVOCollection

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

Specified by:
toRemotePersonFullVOCollection in interface PersonDao
See Also:
PersonDao.toRemotePersonFullVOCollection(java.util.Collection)

toRemotePersonFullVOArray

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

Specified by:
toRemotePersonFullVOArray in interface PersonDao
See Also:
PersonDao.toRemotePersonFullVOArray(java.util.Collection)

toRemotePersonFullVO

protected RemotePersonFullVO toRemotePersonFullVO(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the PersonDaoImpl class if you intend to use reporting queries.

See Also:
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person)

remotePersonFullVOToEntityCollection

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

Specified by:
remotePersonFullVOToEntityCollection in interface PersonDao
See Also:
PersonDao.remotePersonFullVOToEntityCollection(java.util.Collection)

toRemotePersonFullVO

public void toRemotePersonFullVO(Person source,
                                 RemotePersonFullVO target)
Description copied from interface: PersonDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemotePersonFullVO(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toRemotePersonFullVO in interface PersonDao
See Also:
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

toRemotePersonFullVO

public RemotePersonFullVO toRemotePersonFullVO(Person entity)
Description copied from interface: PersonDao
Converts this DAO's entity to an object of type RemotePersonFullVO.

Specified by:
toRemotePersonFullVO in interface PersonDao
See Also:
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person)

remotePersonFullVOToEntity

public void remotePersonFullVOToEntity(RemotePersonFullVO source,
                                       Person target,
                                       boolean copyIfNull)
Description copied from interface: PersonDao
Copies the fields of RemotePersonFullVO to the specified entity.

Specified by:
remotePersonFullVOToEntity in interface PersonDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.administration.user.PersonDao#remotePersonFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.Person)

toRemotePersonNaturalIdCollection

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

Specified by:
toRemotePersonNaturalIdCollection in interface PersonDao
See Also:
PersonDao.toRemotePersonNaturalIdCollection(java.util.Collection)

toRemotePersonNaturalIdArray

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

Specified by:
toRemotePersonNaturalIdArray in interface PersonDao
See Also:
PersonDao.toRemotePersonNaturalIdArray(java.util.Collection)

toRemotePersonNaturalId

protected RemotePersonNaturalId toRemotePersonNaturalId(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the PersonDaoImpl class if you intend to use reporting queries.

See Also:
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person)

remotePersonNaturalIdToEntityCollection

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

Specified by:
remotePersonNaturalIdToEntityCollection in interface PersonDao
See Also:
PersonDao.remotePersonNaturalIdToEntityCollection(java.util.Collection)

toRemotePersonNaturalId

public void toRemotePersonNaturalId(Person source,
                                    RemotePersonNaturalId target)
Description copied from interface: PersonDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemotePersonNaturalId(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toRemotePersonNaturalId in interface PersonDao
See Also:
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId)

toRemotePersonNaturalId

public RemotePersonNaturalId toRemotePersonNaturalId(Person entity)
Description copied from interface: PersonDao
Converts this DAO's entity to an object of type RemotePersonNaturalId.

Specified by:
toRemotePersonNaturalId in interface PersonDao
See Also:
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person)

remotePersonNaturalIdToEntity

public void remotePersonNaturalIdToEntity(RemotePersonNaturalId source,
                                          Person target,
                                          boolean copyIfNull)
Description copied from interface: PersonDao
Copies the fields of RemotePersonNaturalId to the specified entity.

Specified by:
remotePersonNaturalIdToEntity in interface PersonDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.administration.user.PersonDao#remotePersonNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId, fr.ifremer.allegro.administration.user.Person)

toClusterPersonCollection

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

Specified by:
toClusterPersonCollection in interface PersonDao
See Also:
PersonDao.toClusterPersonCollection(java.util.Collection)

toClusterPersonArray

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

Specified by:
toClusterPersonArray in interface PersonDao
See Also:
PersonDao.toClusterPersonArray(java.util.Collection)

toClusterPerson

protected ClusterPerson toClusterPerson(java.lang.Object[] row)
Default implementation for transforming the results of a report query into a value object. This implementation exists for convenience reasons only. It needs only be overridden in the PersonDaoImpl class if you intend to use reporting queries.

See Also:
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person)

clusterPersonToEntityCollection

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

Specified by:
clusterPersonToEntityCollection in interface PersonDao
See Also:
PersonDao.clusterPersonToEntityCollection(java.util.Collection)

toClusterPerson

public void toClusterPerson(Person source,
                            ClusterPerson target)
Description copied from interface: PersonDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterPerson(), but it does not handle any attributes in the target value object that are "read-only" (as those do not have setter methods exposed).

Specified by:
toClusterPerson in interface PersonDao
See Also:
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person, fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

toClusterPerson

public ClusterPerson toClusterPerson(Person entity)
Description copied from interface: PersonDao
Converts this DAO's entity to an object of type ClusterPerson.

Specified by:
toClusterPerson in interface PersonDao
See Also:
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person)

clusterPersonToEntity

public void clusterPersonToEntity(ClusterPerson source,
                                  Person target,
                                  boolean copyIfNull)
Description copied from interface: PersonDao
Copies the fields of ClusterPerson to the specified entity.

Specified by:
clusterPersonToEntity in interface PersonDao
copyIfNull - If FALSE, the value object's field will not be copied to the entity if the value is NULL. If TRUE, it will be copied regardless of its value.
See Also:
fr.ifremer.allegro.administration.user.PersonDao#clusterPersonToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson, fr.ifremer.allegro.administration.user.Person)

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

search

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

search

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

search

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

search

public java.util.Set search(Search search)
Description copied from interface: PersonDao
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.
See Also:
PersonDao.search(fr.ifremer.allegro.Search)


Copyright © 2008-2010 IFREMER. All Rights Reserved.