|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate3.support.HibernateDaoSupport
fr.ifremer.allegro.administration.user.PersonDaoBase
public abstract class PersonDaoBase
Base Spring DAO Class: is able to create, update, remove, load, and find
objects of type fr.ifremer.allegro.administration.user.Person
.
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 |
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 |
---|
public PersonDaoBase()
Method Detail |
---|
public void setStatusDao(StatusDao statusDao)
statusDao
.
protected StatusDao getStatusDao()
statusDao
.
public void setDepartmentDao(DepartmentDao departmentDao)
departmentDao
.
protected DepartmentDao getDepartmentDao()
departmentDao
.
public void setAgeReaderQualificationDao(AgeReaderQualificationDao ageReaderQualificationDao)
ageReaderQualificationDao
.
protected AgeReaderQualificationDao getAgeReaderQualificationDao()
ageReaderQualificationDao
.
public void setProgram2PersonDao(Program2PersonDao program2PersonDao)
program2PersonDao
.
protected Program2PersonDao getProgram2PersonDao()
program2PersonDao
.
public java.lang.Object load(int transform, java.lang.Integer id)
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.
load
in interface PersonDao
id
- identifier of the entity to load
PersonDao.load(int, java.lang.Integer)
public Person load(java.lang.Integer id)
PersonDao
load
in interface PersonDao
PersonDao.load(java.lang.Integer)
public java.util.Collection loadAll()
PersonDao
Person
.
loadAll
in interface PersonDao
PersonDao.loadAll()
public java.util.Collection loadAll(int transform)
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.
loadAll
in interface PersonDao
transform
- the flag indicating what transformation to use.
PersonDao.loadAll(int)
public java.util.Collection loadAll(int pageNumber, int pageSize)
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.
loadAll
in interface PersonDao
pageNumber
- the page number to retrieve when paging results.pageSize
- the size of the page to retrieve when paging results.
PersonDao.loadAll(int, int)
public java.util.Collection loadAll(int transform, int pageNumber, int pageSize)
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.
loadAll
in interface PersonDao
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.
PersonDao.loadAll(int, int, int)
public Person create(Person person)
PersonDao
create
in interface PersonDao
PersonDao.create(fr.ifremer.allegro.administration.user.Person)
public java.lang.Object create(int transform, Person person)
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.
create
in interface PersonDao
PersonDao.create(int transform, fr.ifremer.allegro.administration.user.Person)
public java.util.Collection create(java.util.Collection entities)
PersonDao
entities
collection
create
in interface PersonDao
entities
- the collection of fr.ifremer.allegro.administration.user.Person
instances to create.
PersonDao.create(java.util.Collection)
public java.util.Collection create(int transform, java.util.Collection entities)
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.
create
in interface PersonDao
PersonDao.create(int, java.util.Collection)
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)
PersonDao
Creates a new fr.ifremer.allegro.administration.user.Person
instance from all attributes and
properties and adds it to the persistent store.
create
in interface PersonDao
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)
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)
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.
create
in interface PersonDao
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)
public Person create(java.util.Date creationDate, Department department, java.lang.String firstname, java.lang.String lastname, Status status)
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.
create
in interface PersonDao
PersonDao.create(java.util.Date,fr.ifremer.allegro.administration.user.Department,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)
public java.lang.Object create(int transform, java.util.Date creationDate, Department department, java.lang.String firstname, java.lang.String lastname, Status status)
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.
create
in interface PersonDao
PersonDao.create(int, java.util.Date,fr.ifremer.allegro.administration.user.Department,java.lang.String,java.lang.String,fr.ifremer.allegro.referential.Status)
public void update(Person person)
PersonDao
person
instance in the persistent store.
update
in interface PersonDao
PersonDao.update(fr.ifremer.allegro.administration.user.Person)
public void update(java.util.Collection entities)
PersonDao
entities
collection in the persistent store.
update
in interface PersonDao
PersonDao.update(java.util.Collection)
public void remove(Person person)
PersonDao
remove
in interface PersonDao
PersonDao.remove(fr.ifremer.allegro.administration.user.Person)
public void remove(java.lang.Integer id)
PersonDao
identifier
from the persistent store.
remove
in interface PersonDao
PersonDao.remove(java.lang.Integer)
public void remove(java.util.Collection entities)
PersonDao
entities collection.
- Specified by:
remove
in interface PersonDao
- See Also:
PersonDao.remove(java.util.Collection)
public java.util.Collection getAllPerson()
getAllPerson
in interface PersonDao
PersonDao.getAllPerson()
public java.util.Collection getAllPerson(int transform)
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.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(int)
public java.util.Collection getAllPerson(java.lang.String queryString)
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()
.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(java.lang.String)
public java.util.Collection getAllPerson(int pageNumber, int pageSize)
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.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(int, int)
public java.util.Collection getAllPerson(java.lang.String queryString, int pageNumber, int pageSize)
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.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(String, int, int)
public java.util.Collection getAllPerson(int transform, java.lang.String queryString)
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)
.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(int, String)
public java.util.Collection getAllPerson(int transform, int pageNumber, int pageSize)
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.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(int, int, int)
public java.util.Collection getAllPerson(int transform, java.lang.String queryString, int pageNumber, int pageSize)
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.
getAllPerson
in interface PersonDao
PersonDao.getAllPerson(int, java.lang.String, int, int)
public Person findPersonById(java.lang.Integer id)
findPersonById
in interface PersonDao
PersonDao.findPersonById(java.lang.Integer)
public java.lang.Object findPersonById(int transform, java.lang.Integer id)
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.
findPersonById
in interface PersonDao
PersonDao.findPersonById(int, java.lang.Integer)
public Person findPersonById(java.lang.String queryString, java.lang.Integer id)
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)
.
findPersonById
in interface PersonDao
PersonDao.findPersonById(java.lang.String, java.lang.Integer)
public java.lang.Object findPersonById(int transform, java.lang.String queryString, java.lang.Integer id)
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)
.
findPersonById
in interface PersonDao
PersonDao.findPersonById(int, java.lang.String, java.lang.Integer)
public java.util.Collection findPersonByStatus(Status status)
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(int transform, Status status)
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.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(java.lang.String queryString, Status status)
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)
.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(java.lang.String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(int pageNumber, int pageSize, Status status)
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.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
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.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(int transform, java.lang.String queryString, Status status)
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)
.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(int, String, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(int transform, int pageNumber, int pageSize, Status status)
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.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(int, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
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.
findPersonByStatus
in interface PersonDao
PersonDao.findPersonByStatus(int, java.lang.String, int, int, fr.ifremer.allegro.referential.Status)
public java.util.Collection findPersonByDepartment(Department department)
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(int transform, Department department)
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.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(java.lang.String queryString, Department department)
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)
.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(java.lang.String, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(int pageNumber, int pageSize, Department department)
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.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department department)
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.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(String, int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(int transform, java.lang.String queryString, Department department)
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)
.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(int, String, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(int transform, int pageNumber, int pageSize, Department department)
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.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(int, int, int, fr.ifremer.allegro.administration.user.Department)
public java.util.Collection findPersonByDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department department)
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.
findPersonByDepartment
in interface PersonDao
PersonDao.findPersonByDepartment(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.Department)
public Person findPersonByNaturalId(java.lang.Integer id)
findPersonByNaturalId
in interface PersonDao
PersonDao.findPersonByNaturalId(java.lang.Integer)
public java.lang.Object findPersonByNaturalId(int transform, java.lang.Integer id)
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.
findPersonByNaturalId
in interface PersonDao
PersonDao.findPersonByNaturalId(int, java.lang.Integer)
public Person findPersonByNaturalId(java.lang.String queryString, java.lang.Integer id)
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)
.
findPersonByNaturalId
in interface PersonDao
PersonDao.findPersonByNaturalId(java.lang.String, java.lang.Integer)
public java.lang.Object findPersonByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
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)
.
findPersonByNaturalId
in interface PersonDao
PersonDao.findPersonByNaturalId(int, java.lang.String, java.lang.Integer)
public java.util.Collection getAllPersonSinceDateSynchro(java.sql.Timestamp updateDate)
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
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.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(int, java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
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)
.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(java.lang.String, java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
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.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(int, int, java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
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.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(String, int, int, java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
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)
.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(int, String, java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
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.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(int, int, int, java.sql.Timestamp)
public java.util.Collection getAllPersonSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
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.
getAllPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllPersonSinceDateSynchro(int, java.lang.String, int, int, java.sql.Timestamp)
public Person createFromClusterPerson(ClusterPerson clusterPerson)
createFromClusterPerson
in interface PersonDao
PersonDao.createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)
protected abstract Person handleCreateFromClusterPerson(ClusterPerson clusterPerson) throws java.lang.Exception
createFromClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)
java.lang.Exception
public ClusterPerson[] getAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
getAllClusterPersonSinceDateSynchro
in interface PersonDao
PersonDao.getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
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
getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
java.lang.Exception
protected java.lang.Object transformEntity(int transform, Person entity)
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:
Person
- PersonDao.TRANSFORM_NONE
RemotePersonFullVO
- TRANSFORM_REMOTEPERSONFULLVO
RemotePersonNaturalId
- TRANSFORM_REMOTEPERSONNATURALID
ClusterPerson
- TRANSFORM_CLUSTERPERSON
PersonDao.TRANSFORM_NONE
is assumed.
transform
- one of the constants declared in PersonDao
entity
- an entity that was found
transformEntities(int,java.util.Collection)
protected void transformEntities(int transform, java.util.Collection entities)
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.
transform
- one of the constants declared in fr.ifremer.allegro.administration.user.PersonDao
entities
- the collection of entities to transformtransformEntity(int,fr.ifremer.allegro.administration.user.Person)
protected Person toEntity(java.lang.Object[] row)
public final void toRemotePersonFullVOCollection(java.util.Collection entities)
PersonDao
RemotePersonFullVO
.
toRemotePersonFullVOCollection
in interface PersonDao
PersonDao.toRemotePersonFullVOCollection(java.util.Collection)
public final RemotePersonFullVO[] toRemotePersonFullVOArray(java.util.Collection entities)
PersonDao
RemotePersonFullVO
.
toRemotePersonFullVOArray
in interface PersonDao
PersonDao.toRemotePersonFullVOArray(java.util.Collection)
protected RemotePersonFullVO toRemotePersonFullVO(java.lang.Object[] row)
PersonDaoImpl
class if you intend to use reporting queries.
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person)
public final void remotePersonFullVOToEntityCollection(java.util.Collection instances)
PersonDao
RemotePersonFullVO
to this
DAO's entity.
remotePersonFullVOToEntityCollection
in interface PersonDao
PersonDao.remotePersonFullVOToEntityCollection(java.util.Collection)
public void toRemotePersonFullVO(Person source, RemotePersonFullVO target)
PersonDao
toRemotePersonFullVO
in interface PersonDao
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)
public RemotePersonFullVO toRemotePersonFullVO(Person entity)
PersonDao
RemotePersonFullVO
.
toRemotePersonFullVO
in interface PersonDao
PersonDao.toRemotePersonFullVO(fr.ifremer.allegro.administration.user.Person)
public void remotePersonFullVOToEntity(RemotePersonFullVO source, Person target, boolean copyIfNull)
PersonDao
RemotePersonFullVO
to the specified entity.
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.fr.ifremer.allegro.administration.user.PersonDao#remotePersonFullVOToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.Person)
public final void toRemotePersonNaturalIdCollection(java.util.Collection entities)
PersonDao
RemotePersonNaturalId
.
toRemotePersonNaturalIdCollection
in interface PersonDao
PersonDao.toRemotePersonNaturalIdCollection(java.util.Collection)
public final RemotePersonNaturalId[] toRemotePersonNaturalIdArray(java.util.Collection entities)
PersonDao
RemotePersonNaturalId
.
toRemotePersonNaturalIdArray
in interface PersonDao
PersonDao.toRemotePersonNaturalIdArray(java.util.Collection)
protected RemotePersonNaturalId toRemotePersonNaturalId(java.lang.Object[] row)
PersonDaoImpl
class if you intend to use reporting queries.
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person)
public final void remotePersonNaturalIdToEntityCollection(java.util.Collection instances)
PersonDao
RemotePersonNaturalId
to this
DAO's entity.
remotePersonNaturalIdToEntityCollection
in interface PersonDao
PersonDao.remotePersonNaturalIdToEntityCollection(java.util.Collection)
public void toRemotePersonNaturalId(Person source, RemotePersonNaturalId target)
PersonDao
toRemotePersonNaturalId
in interface PersonDao
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId)
public RemotePersonNaturalId toRemotePersonNaturalId(Person entity)
PersonDao
RemotePersonNaturalId
.
toRemotePersonNaturalId
in interface PersonDao
PersonDao.toRemotePersonNaturalId(fr.ifremer.allegro.administration.user.Person)
public void remotePersonNaturalIdToEntity(RemotePersonNaturalId source, Person target, boolean copyIfNull)
PersonDao
RemotePersonNaturalId
to the specified entity.
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.fr.ifremer.allegro.administration.user.PersonDao#remotePersonNaturalIdToEntity(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId, fr.ifremer.allegro.administration.user.Person)
public final void toClusterPersonCollection(java.util.Collection entities)
PersonDao
ClusterPerson
.
toClusterPersonCollection
in interface PersonDao
PersonDao.toClusterPersonCollection(java.util.Collection)
public final ClusterPerson[] toClusterPersonArray(java.util.Collection entities)
PersonDao
ClusterPerson
.
toClusterPersonArray
in interface PersonDao
PersonDao.toClusterPersonArray(java.util.Collection)
protected ClusterPerson toClusterPerson(java.lang.Object[] row)
PersonDaoImpl
class if you intend to use reporting queries.
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person)
public final void clusterPersonToEntityCollection(java.util.Collection instances)
PersonDao
ClusterPerson
to this
DAO's entity.
clusterPersonToEntityCollection
in interface PersonDao
PersonDao.clusterPersonToEntityCollection(java.util.Collection)
public void toClusterPerson(Person source, ClusterPerson target)
PersonDao
toClusterPerson
in interface PersonDao
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person, fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)
public ClusterPerson toClusterPerson(Person entity)
PersonDao
ClusterPerson
.
toClusterPerson
in interface PersonDao
PersonDao.toClusterPerson(fr.ifremer.allegro.administration.user.Person)
public void clusterPersonToEntity(ClusterPerson source, Person target, boolean copyIfNull)
PersonDao
ClusterPerson
to the specified entity.
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.fr.ifremer.allegro.administration.user.PersonDao#clusterPersonToEntity(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson, fr.ifremer.allegro.administration.user.Person)
protected java.security.Principal getPrincipal()
principal
if one has been set,
otherwise returns null
.
public PaginationResult search(int transform, int pageNumber, int pageSize, Search search)
PersonDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface PersonDao
transform
- the transformation flag.pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.PersonDao.search(int, int, int, fr.ifremer.allegro.Search)
public PaginationResult search(int pageNumber, int pageSize, Search search)
PersonDao
pageNumber
and pageSize
. These flags allow you to
limit your data to a specified page number and size.
search
in interface PersonDao
pageNumber
- the page number in the data to retrievepageSize
- the size of the page to retrieve.search
- the search object which provides the search parameters and pagination specification.
PaginationResult
instance.PersonDao.search(int, int, fr.ifremer.allegro.Search)
public java.util.Set search(int transform, Search search)
PersonDao
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.
search
in interface PersonDao
transform
- the transformation flag.search
- the search object which provides the search parameters and pagination specification.
PersonDao.search(int, fr.ifremer.allegro.Search)
public java.util.Set search(Search search)
PersonDao
search
object.
search
in interface PersonDao
search
- the search object which provides the search parameters and pagination specification.
PersonDao.search(fr.ifremer.allegro.Search)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |