fr.ifremer.allegro.administration.programStrategy
Class Program2PersonDaoBase

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by fr.ifremer.allegro.administration.programStrategy.Program2PersonDaoBase
All Implemented Interfaces:
Program2PersonDao
Direct Known Subclasses:
Program2PersonDaoImpl

public abstract class Program2PersonDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements Program2PersonDao

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

See Also:
Program2Person

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.Program2PersonDao
TRANSFORM_CLUSTERPROGRAM2PERSON, TRANSFORM_NONE, TRANSFORM_REMOTEPROGRAM2PERSONFULLVO, TRANSFORM_REMOTEPROGRAM2PERSONNATURALID
 
Constructor Summary
Program2PersonDaoBase()
           
 
Method Summary
 void clusterProgram2PersonToEntity(ClusterProgram2Person source, Program2Person target, boolean copyIfNull)
          Copies the fields of ClusterProgram2Person to the specified entity.
 void clusterProgram2PersonToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterProgram2Person to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.programStrategy.Program2Person and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program2Person) with an additional flag called transform.
 java.lang.Object create(int transform, Person person, Program program, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.user.Person,fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional flag called transform.
 java.lang.Object create(int transform, Program2Person program2Person)
           Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program2Person) with an additional flag called transform.
 java.lang.Object create(int transform, Program program, Location location, ProgramPrivilege programPrivilege, Person person)
           Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege,fr.ifremer.allegro.administration.user.Person) with an additional flag called transform.
 Program2Person create(Person person, Program program, ProgramPrivilege programPrivilege)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Program2Person instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Program2Person create(Program2Person program2Person)
          Creates an instance of fr.ifremer.allegro.administration.programStrategy.Program2Person and adds it to the persistent store.
 Program2Person create(Program program, Location location, ProgramPrivilege programPrivilege, Person person)
           Creates a new fr.ifremer.allegro.administration.programStrategy.Program2Person instance from all attributes and properties and adds it to the persistent store.
 Program2Person createFromClusterProgram2Person(ClusterProgram2Person clusterProgram2Person)
           
 Program2Person findProgram2PersonById(java.lang.Integer id)
           
 java.lang.Object findProgram2PersonById(int transform, java.lang.Integer id)
           Does the same thing as Program2PersonDao.findProgram2PersonById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findProgram2PersonById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as Program2PersonDao.findProgram2PersonById(int, java.lang.Integer) with an additional argument called queryString.
 Program2Person findProgram2PersonById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as Program2PersonDao.findProgram2PersonById(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByLocation(int transform, int pageNumber, int pageSize, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByLocation(int pageNumber, int pageSize, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByLocation(int transform, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(fr.ifremer.allegro.referential.location.Location) with an additional flag called transform.
 java.util.Collection findProgram2PersonByLocation(int transform, java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(int, String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByLocation(int transform, java.lang.String queryString, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(int, fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByLocation(Location location)
           
 java.util.Collection findProgram2PersonByLocation(java.lang.String queryString, int pageNumber, int pageSize, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(String, fr.ifremer.allegro.referential.location.Location) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByLocation(java.lang.String queryString, Location location)
           Does the same thing as Program2PersonDao.findProgram2PersonByLocation(fr.ifremer.allegro.referential.location.Location) with an additional argument called queryString.
 Program2Person findProgram2PersonByNaturalId(java.lang.Integer id)
           
 java.lang.Object findProgram2PersonByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as Program2PersonDao.findProgram2PersonByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findProgram2PersonByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as Program2PersonDao.findProgram2PersonByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 Program2Person findProgram2PersonByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as Program2PersonDao.findProgram2PersonByNaturalId(java.lang.Integer) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByPerson(int transform, int pageNumber, int pageSize, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(int, fr.ifremer.allegro.administration.user.Person) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByPerson(int pageNumber, int pageSize, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(fr.ifremer.allegro.administration.user.Person) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByPerson(int transform, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(fr.ifremer.allegro.administration.user.Person) with an additional flag called transform.
 java.util.Collection findProgram2PersonByPerson(int transform, java.lang.String queryString, int pageNumber, int pageSize, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(int, String, fr.ifremer.allegro.administration.user.Person) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByPerson(int transform, java.lang.String queryString, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(int, fr.ifremer.allegro.administration.user.Person) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByPerson(Person person)
           
 java.util.Collection findProgram2PersonByPerson(java.lang.String queryString, int pageNumber, int pageSize, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(String, fr.ifremer.allegro.administration.user.Person) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByPerson(java.lang.String queryString, Person person)
           Does the same thing as Program2PersonDao.findProgram2PersonByPerson(fr.ifremer.allegro.administration.user.Person) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByProgram(int transform, int pageNumber, int pageSize, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgram(int pageNumber, int pageSize, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgram(int transform, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional flag called transform.
 java.util.Collection findProgram2PersonByProgram(int transform, java.lang.String queryString, int pageNumber, int pageSize, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgram(int transform, java.lang.String queryString, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByProgram(Program program)
           
 java.util.Collection findProgram2PersonByProgram(java.lang.String queryString, int pageNumber, int pageSize, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(String, fr.ifremer.allegro.administration.programStrategy.Program) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgram(java.lang.String queryString, Program program)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByProgramPrivilege(int transform, int pageNumber, int pageSize, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgramPrivilege(int pageNumber, int pageSize, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgramPrivilege(int transform, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional flag called transform.
 java.util.Collection findProgram2PersonByProgramPrivilege(int transform, java.lang.String queryString, int pageNumber, int pageSize, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(int, String, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgramPrivilege(int transform, java.lang.String queryString, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional argument called queryString.
 java.util.Collection findProgram2PersonByProgramPrivilege(ProgramPrivilege programPrivilege)
           
 java.util.Collection findProgram2PersonByProgramPrivilege(java.lang.String queryString, int pageNumber, int pageSize, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(String, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findProgram2PersonByProgramPrivilege(java.lang.String queryString, ProgramPrivilege programPrivilege)
           Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional argument called queryString.
 java.util.Collection getAllProgram2Person()
           
 java.util.Collection getAllProgram2Person(int transform)
           Does the same thing as Program2PersonDao.getAllProgram2Person() with an additional flag called transform.
 java.util.Collection getAllProgram2Person(int pageNumber, int pageSize)
           Does the same thing as Program2PersonDao.getAllProgram2Person() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram2Person(int transform, int pageNumber, int pageSize)
           Does the same thing as Program2PersonDao.getAllProgram2Person(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram2Person(int transform, java.lang.String queryString)
           Does the same thing as Program2PersonDao.getAllProgram2Person(int) with an additional argument called queryString.
 java.util.Collection getAllProgram2Person(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as Program2PersonDao.getAllProgram2Person(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgram2Person(java.lang.String queryString)
           Does the same thing as Program2PersonDao.getAllProgram2Person() with an additional argument called queryString.
 java.util.Collection getAllProgram2Person(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as Program2PersonDao.getAllProgram2Person(String) with an additional two arguments called pageNumber and pageSize.
protected  LocationDao getLocationDao()
          Gets the reference to locationDao.
protected  PersonDao getPersonDao()
          Gets the reference to personDao.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  ProgramDao getProgramDao()
          Gets the reference to programDao.
protected  ProgramPrivilegeDao getProgramPrivilegeDao()
          Gets the reference to programPrivilegeDao.
protected abstract  Program2Person handleCreateFromClusterProgram2Person(ClusterProgram2Person clusterProgram2Person)
          Performs the core logic for createFromClusterProgram2Person(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram2Person)
 Program2Person load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.programStrategy.Program2Person from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as Program2PersonDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Program2Person.
 java.util.Collection loadAll(int transform)
           Does the same thing as Program2PersonDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as Program2PersonDao.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 Program2PersonDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteProgram2PersonFullVOToEntity(RemoteProgram2PersonFullVO source, Program2Person target, boolean copyIfNull)
          Copies the fields of RemoteProgram2PersonFullVO to the specified entity.
 void remoteProgram2PersonFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgram2PersonFullVO to this DAO's entity.
 void remoteProgram2PersonNaturalIdToEntity(RemoteProgram2PersonNaturalId source, Program2Person target, boolean copyIfNull)
          Copies the fields of RemoteProgram2PersonNaturalId to the specified entity.
 void remoteProgram2PersonNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgram2PersonNaturalId 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.programStrategy.Program2Person having the given identifier from the persistent store.
 void remove(Program2Person program2Person)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program2Person 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 Program2PersonDao.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 setLocationDao(LocationDao locationDao)
          Sets the reference to locationDao.
 void setPersonDao(PersonDao personDao)
          Sets the reference to personDao.
 void setProgramDao(ProgramDao programDao)
          Sets the reference to programDao.
 void setProgramPrivilegeDao(ProgramPrivilegeDao programPrivilegeDao)
          Sets the reference to programPrivilegeDao.
protected  ClusterProgram2Person toClusterProgram2Person(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterProgram2Person toClusterProgram2Person(Program2Person entity)
          Converts this DAO's entity to an object of type ClusterProgram2Person.
 void toClusterProgram2Person(Program2Person source, ClusterProgram2Person target)
          Copies the fields of the specified entity to the target value object.
 ClusterProgram2Person[] toClusterProgram2PersonArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterProgram2Person.
 void toClusterProgram2PersonCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterProgram2Person.
protected  Program2Person toEntity(java.lang.Object[] row)
           
protected  RemoteProgram2PersonFullVO toRemoteProgram2PersonFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteProgram2PersonFullVO toRemoteProgram2PersonFullVO(Program2Person entity)
          Converts this DAO's entity to an object of type RemoteProgram2PersonFullVO.
 void toRemoteProgram2PersonFullVO(Program2Person source, RemoteProgram2PersonFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgram2PersonFullVO[] toRemoteProgram2PersonFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgram2PersonFullVO.
 void toRemoteProgram2PersonFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgram2PersonFullVO.
protected  RemoteProgram2PersonNaturalId toRemoteProgram2PersonNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteProgram2PersonNaturalId toRemoteProgram2PersonNaturalId(Program2Person entity)
          Converts this DAO's entity to an object of type RemoteProgram2PersonNaturalId.
 void toRemoteProgram2PersonNaturalId(Program2Person source, RemoteProgram2PersonNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgram2PersonNaturalId[] toRemoteProgram2PersonNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgram2PersonNaturalId.
 void toRemoteProgram2PersonNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgram2PersonNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.Program2Person) method.
protected  java.lang.Object transformEntity(int transform, Program2Person 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.programStrategy.Program2PersonDao, please note that the Program2PersonDao.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(Program2Person program2Person)
          Updates the program2Person 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.programStrategy.Program2PersonDao
clusterProgram2PersonToEntity, remoteProgram2PersonFullVOToEntity, remoteProgram2PersonNaturalIdToEntity
 

Constructor Detail

Program2PersonDaoBase

public Program2PersonDaoBase()
Method Detail

setProgramDao

public void setProgramDao(ProgramDao programDao)
Sets the reference to programDao.


getProgramDao

protected ProgramDao getProgramDao()
Gets the reference to programDao.


setLocationDao

public void setLocationDao(LocationDao locationDao)
Sets the reference to locationDao.


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to locationDao.


setProgramPrivilegeDao

public void setProgramPrivilegeDao(ProgramPrivilegeDao programPrivilegeDao)
Sets the reference to programPrivilegeDao.


getProgramPrivilegeDao

protected ProgramPrivilegeDao getProgramPrivilegeDao()
Gets the reference to programPrivilegeDao.


setPersonDao

public void setPersonDao(PersonDao personDao)
Sets the reference to personDao.


getPersonDao

protected PersonDao getPersonDao()
Gets the reference to personDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

public Program2Person create(Program2Person program2Person)
Description copied from interface: Program2PersonDao
Creates an instance of fr.ifremer.allegro.administration.programStrategy.Program2Person and adds it to the persistent store.

Specified by:
create in interface Program2PersonDao
See Also:
Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program2Person)

create

public java.lang.Object create(int transform,
                               Program2Person program2Person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program2Person) 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 Program2PersonDao
See Also:
Program2PersonDao.create(int transform, fr.ifremer.allegro.administration.programStrategy.Program2Person)

create

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

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

create

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

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

create

public Program2Person create(Program program,
                             Location location,
                             ProgramPrivilege programPrivilege,
                             Person person)
Description copied from interface: Program2PersonDao

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

Specified by:
create in interface Program2PersonDao
See Also:
Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege,fr.ifremer.allegro.administration.user.Person)

create

public java.lang.Object create(int transform,
                               Program program,
                               Location location,
                               ProgramPrivilege programPrivilege,
                               Person person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege,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 Program2PersonDao
See Also:
Program2PersonDao.create(int, fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.referential.location.Location,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege,fr.ifremer.allegro.administration.user.Person)

create

public Program2Person create(Person person,
                             Program program,
                             ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

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

Specified by:
create in interface Program2PersonDao
See Also:
Program2PersonDao.create(fr.ifremer.allegro.administration.user.Person,fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

create

public java.lang.Object create(int transform,
                               Person person,
                               Program program,
                               ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.create(fr.ifremer.allegro.administration.user.Person,fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) 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 Program2PersonDao
See Also:
Program2PersonDao.create(int, fr.ifremer.allegro.administration.user.Person,fr.ifremer.allegro.administration.programStrategy.Program,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

update

public void update(Program2Person program2Person)
Description copied from interface: Program2PersonDao
Updates the program2Person instance in the persistent store.

Specified by:
update in interface Program2PersonDao
See Also:
Program2PersonDao.update(fr.ifremer.allegro.administration.programStrategy.Program2Person)

update

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

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

remove

public void remove(Program2Person program2Person)
Description copied from interface: Program2PersonDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.Program2Person from the persistent store.

Specified by:
remove in interface Program2PersonDao
See Also:
Program2PersonDao.remove(fr.ifremer.allegro.administration.programStrategy.Program2Person)

remove

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

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

remove

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

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

getAllProgram2Person

public java.util.Collection getAllProgram2Person()
Specified by:
getAllProgram2Person in interface Program2PersonDao
See Also:
Program2PersonDao.getAllProgram2Person()

getAllProgram2Person

public java.util.Collection getAllProgram2Person(int transform)
Description copied from interface: Program2PersonDao

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

getAllProgram2Person

public java.util.Collection getAllProgram2Person(java.lang.String queryString)
Description copied from interface: Program2PersonDao

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

Specified by:
getAllProgram2Person in interface Program2PersonDao
See Also:
Program2PersonDao.getAllProgram2Person(java.lang.String)

getAllProgram2Person

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

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

getAllProgram2Person

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

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

getAllProgram2Person

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

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

Specified by:
getAllProgram2Person in interface Program2PersonDao
See Also:
Program2PersonDao.getAllProgram2Person(int, String)

getAllProgram2Person

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

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

getAllProgram2Person

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

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

findProgram2PersonById

public Program2Person findProgram2PersonById(java.lang.Integer id)
Specified by:
findProgram2PersonById in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonById(java.lang.Integer)

findProgram2PersonById

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

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

findProgram2PersonById

public Program2Person findProgram2PersonById(java.lang.String queryString,
                                             java.lang.Integer id)
Description copied from interface: Program2PersonDao

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

Specified by:
findProgram2PersonById in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonById(java.lang.String, java.lang.Integer)

findProgram2PersonById

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

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

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

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(Program program)
Specified by:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(int transform,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program) 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:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(java.lang.String queryString,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString. This queryString argument allows you to override the query string defined in Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program).

Specified by:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(java.lang.String, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(int pageNumber,
                                                        int pageSize,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(fr.ifremer.allegro.administration.programStrategy.Program) 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:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(java.lang.String queryString,
                                                        int pageNumber,
                                                        int pageSize,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(String, fr.ifremer.allegro.administration.programStrategy.Program) 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:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(String, int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(int transform,
                                                        java.lang.String queryString,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) with an additional argument called queryString. This queryString argument allows you to override the query string defined in Program2PersonDao.findProgram2PersonByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program program).

Specified by:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(int transform,
                                                        int pageNumber,
                                                        int pageSize,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(int, fr.ifremer.allegro.administration.programStrategy.Program) 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:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(int, int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByProgram

public java.util.Collection findProgram2PersonByProgram(int transform,
                                                        java.lang.String queryString,
                                                        int pageNumber,
                                                        int pageSize,
                                                        Program program)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgram(int, String, fr.ifremer.allegro.administration.programStrategy.Program) 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:
findProgram2PersonByProgram in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgram(int, java.lang.String, int, int, fr.ifremer.allegro.administration.programStrategy.Program)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(Location location)
Specified by:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(int transform,
                                                         Location location)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByLocation(fr.ifremer.allegro.referential.location.Location) 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:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(int, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(java.lang.String queryString,
                                                         Location location)
Description copied from interface: Program2PersonDao

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

Specified by:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(java.lang.String, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(int pageNumber,
                                                         int pageSize,
                                                         Location location)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByLocation(fr.ifremer.allegro.referential.location.Location) 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:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(int, int, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         Location location)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByLocation(String, fr.ifremer.allegro.referential.location.Location) 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:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(String, int, int, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(int transform,
                                                         java.lang.String queryString,
                                                         Location location)
Description copied from interface: Program2PersonDao

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

Specified by:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(int, String, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(int transform,
                                                         int pageNumber,
                                                         int pageSize,
                                                         Location location)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByLocation(int, fr.ifremer.allegro.referential.location.Location) 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:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(int, int, int, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByLocation

public java.util.Collection findProgram2PersonByLocation(int transform,
                                                         java.lang.String queryString,
                                                         int pageNumber,
                                                         int pageSize,
                                                         Location location)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByLocation(int, String, fr.ifremer.allegro.referential.location.Location) 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:
findProgram2PersonByLocation in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByLocation(int, java.lang.String, int, int, fr.ifremer.allegro.referential.location.Location)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(ProgramPrivilege programPrivilege)
Specified by:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(int transform,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) 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:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(java.lang.String queryString,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional argument called queryString. This queryString argument allows you to override the query string defined in Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege).

Specified by:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(java.lang.String, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(int pageNumber,
                                                                 int pageSize,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) 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:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(int, int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(java.lang.String queryString,
                                                                 int pageNumber,
                                                                 int pageSize,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(String, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) 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:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(String, int, int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(int transform,
                                                                 java.lang.String queryString,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional argument called queryString. This queryString argument allows you to override the query string defined in Program2PersonDao.findProgram2PersonByProgramPrivilege(int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege programPrivilege).

Specified by:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(int, String, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(int transform,
                                                                 int pageNumber,
                                                                 int pageSize,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) 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:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(int, int, int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByProgramPrivilege

public java.util.Collection findProgram2PersonByProgramPrivilege(int transform,
                                                                 java.lang.String queryString,
                                                                 int pageNumber,
                                                                 int pageSize,
                                                                 ProgramPrivilege programPrivilege)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByProgramPrivilege(int, String, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) 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:
findProgram2PersonByProgramPrivilege in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByProgramPrivilege(int, java.lang.String, int, int, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(Person person)
Specified by:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(int transform,
                                                       Person person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByPerson(fr.ifremer.allegro.administration.user.Person) 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:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(int, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(java.lang.String queryString,
                                                       Person person)
Description copied from interface: Program2PersonDao

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

Specified by:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(java.lang.String, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(int pageNumber,
                                                       int pageSize,
                                                       Person person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByPerson(fr.ifremer.allegro.administration.user.Person) 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:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(int, int, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(java.lang.String queryString,
                                                       int pageNumber,
                                                       int pageSize,
                                                       Person person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByPerson(String, fr.ifremer.allegro.administration.user.Person) 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:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(String, int, int, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(int transform,
                                                       java.lang.String queryString,
                                                       Person person)
Description copied from interface: Program2PersonDao

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

Specified by:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(int, String, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(int transform,
                                                       int pageNumber,
                                                       int pageSize,
                                                       Person person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByPerson(int, fr.ifremer.allegro.administration.user.Person) 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:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(int, int, int, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByPerson

public java.util.Collection findProgram2PersonByPerson(int transform,
                                                       java.lang.String queryString,
                                                       int pageNumber,
                                                       int pageSize,
                                                       Person person)
Description copied from interface: Program2PersonDao

Does the same thing as Program2PersonDao.findProgram2PersonByPerson(int, String, fr.ifremer.allegro.administration.user.Person) 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:
findProgram2PersonByPerson in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByPerson(int, java.lang.String, int, int, fr.ifremer.allegro.administration.user.Person)

findProgram2PersonByNaturalId

public Program2Person findProgram2PersonByNaturalId(java.lang.Integer id)
Specified by:
findProgram2PersonByNaturalId in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByNaturalId(java.lang.Integer)

findProgram2PersonByNaturalId

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

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

findProgram2PersonByNaturalId

public Program2Person findProgram2PersonByNaturalId(java.lang.String queryString,
                                                    java.lang.Integer id)
Description copied from interface: Program2PersonDao

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

Specified by:
findProgram2PersonByNaturalId in interface Program2PersonDao
See Also:
Program2PersonDao.findProgram2PersonByNaturalId(java.lang.String, java.lang.Integer)

findProgram2PersonByNaturalId

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

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

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

createFromClusterProgram2Person

public Program2Person createFromClusterProgram2Person(ClusterProgram2Person clusterProgram2Person)
Specified by:
createFromClusterProgram2Person in interface Program2PersonDao
See Also:
Program2PersonDao.createFromClusterProgram2Person(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram2Person)

handleCreateFromClusterProgram2Person

protected abstract Program2Person handleCreateFromClusterProgram2Person(ClusterProgram2Person clusterProgram2Person)
                                                                 throws java.lang.Exception
Performs the core logic for createFromClusterProgram2Person(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram2Person)

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteProgram2PersonFullVOCollection

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

Specified by:
toRemoteProgram2PersonFullVOCollection in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonFullVOCollection(java.util.Collection)

toRemoteProgram2PersonFullVOArray

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

Specified by:
toRemoteProgram2PersonFullVOArray in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonFullVOArray(java.util.Collection)

toRemoteProgram2PersonFullVO

protected RemoteProgram2PersonFullVO toRemoteProgram2PersonFullVO(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 Program2PersonDaoImpl class if you intend to use reporting queries.

See Also:
Program2PersonDao.toRemoteProgram2PersonFullVO(fr.ifremer.allegro.administration.programStrategy.Program2Person)

remoteProgram2PersonFullVOToEntityCollection

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

Specified by:
remoteProgram2PersonFullVOToEntityCollection in interface Program2PersonDao
See Also:
Program2PersonDao.remoteProgram2PersonFullVOToEntityCollection(java.util.Collection)

toRemoteProgram2PersonFullVO

public void toRemoteProgram2PersonFullVO(Program2Person source,
                                         RemoteProgram2PersonFullVO target)
Description copied from interface: Program2PersonDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteProgram2PersonFullVO(), 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:
toRemoteProgram2PersonFullVO in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonFullVO(fr.ifremer.allegro.administration.programStrategy.Program2Person, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgram2PersonFullVO)

toRemoteProgram2PersonFullVO

public RemoteProgram2PersonFullVO toRemoteProgram2PersonFullVO(Program2Person entity)
Description copied from interface: Program2PersonDao
Converts this DAO's entity to an object of type RemoteProgram2PersonFullVO.

Specified by:
toRemoteProgram2PersonFullVO in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonFullVO(fr.ifremer.allegro.administration.programStrategy.Program2Person)

remoteProgram2PersonFullVOToEntity

public void remoteProgram2PersonFullVOToEntity(RemoteProgram2PersonFullVO source,
                                               Program2Person target,
                                               boolean copyIfNull)
Description copied from interface: Program2PersonDao
Copies the fields of RemoteProgram2PersonFullVO to the specified entity.

Specified by:
remoteProgram2PersonFullVOToEntity in interface Program2PersonDao
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.programStrategy.Program2PersonDao#remoteProgram2PersonFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgram2PersonFullVO, fr.ifremer.allegro.administration.programStrategy.Program2Person)

toRemoteProgram2PersonNaturalIdCollection

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

Specified by:
toRemoteProgram2PersonNaturalIdCollection in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonNaturalIdCollection(java.util.Collection)

toRemoteProgram2PersonNaturalIdArray

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

Specified by:
toRemoteProgram2PersonNaturalIdArray in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonNaturalIdArray(java.util.Collection)

toRemoteProgram2PersonNaturalId

protected RemoteProgram2PersonNaturalId toRemoteProgram2PersonNaturalId(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 Program2PersonDaoImpl class if you intend to use reporting queries.

See Also:
Program2PersonDao.toRemoteProgram2PersonNaturalId(fr.ifremer.allegro.administration.programStrategy.Program2Person)

remoteProgram2PersonNaturalIdToEntityCollection

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

Specified by:
remoteProgram2PersonNaturalIdToEntityCollection in interface Program2PersonDao
See Also:
Program2PersonDao.remoteProgram2PersonNaturalIdToEntityCollection(java.util.Collection)

toRemoteProgram2PersonNaturalId

public void toRemoteProgram2PersonNaturalId(Program2Person source,
                                            RemoteProgram2PersonNaturalId target)
Description copied from interface: Program2PersonDao
Copies the fields of the specified entity to the target value object. This method is similar to toRemoteProgram2PersonNaturalId(), 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:
toRemoteProgram2PersonNaturalId in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonNaturalId(fr.ifremer.allegro.administration.programStrategy.Program2Person, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgram2PersonNaturalId)

toRemoteProgram2PersonNaturalId

public RemoteProgram2PersonNaturalId toRemoteProgram2PersonNaturalId(Program2Person entity)
Description copied from interface: Program2PersonDao
Converts this DAO's entity to an object of type RemoteProgram2PersonNaturalId.

Specified by:
toRemoteProgram2PersonNaturalId in interface Program2PersonDao
See Also:
Program2PersonDao.toRemoteProgram2PersonNaturalId(fr.ifremer.allegro.administration.programStrategy.Program2Person)

remoteProgram2PersonNaturalIdToEntity

public void remoteProgram2PersonNaturalIdToEntity(RemoteProgram2PersonNaturalId source,
                                                  Program2Person target,
                                                  boolean copyIfNull)
Description copied from interface: Program2PersonDao
Copies the fields of RemoteProgram2PersonNaturalId to the specified entity.

Specified by:
remoteProgram2PersonNaturalIdToEntity in interface Program2PersonDao
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.programStrategy.Program2PersonDao#remoteProgram2PersonNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgram2PersonNaturalId, fr.ifremer.allegro.administration.programStrategy.Program2Person)

toClusterProgram2PersonCollection

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

Specified by:
toClusterProgram2PersonCollection in interface Program2PersonDao
See Also:
Program2PersonDao.toClusterProgram2PersonCollection(java.util.Collection)

toClusterProgram2PersonArray

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

Specified by:
toClusterProgram2PersonArray in interface Program2PersonDao
See Also:
Program2PersonDao.toClusterProgram2PersonArray(java.util.Collection)

toClusterProgram2Person

protected ClusterProgram2Person toClusterProgram2Person(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 Program2PersonDaoImpl class if you intend to use reporting queries.

See Also:
Program2PersonDao.toClusterProgram2Person(fr.ifremer.allegro.administration.programStrategy.Program2Person)

clusterProgram2PersonToEntityCollection

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

Specified by:
clusterProgram2PersonToEntityCollection in interface Program2PersonDao
See Also:
Program2PersonDao.clusterProgram2PersonToEntityCollection(java.util.Collection)

toClusterProgram2Person

public void toClusterProgram2Person(Program2Person source,
                                    ClusterProgram2Person target)
Description copied from interface: Program2PersonDao
Copies the fields of the specified entity to the target value object. This method is similar to toClusterProgram2Person(), 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:
toClusterProgram2Person in interface Program2PersonDao
See Also:
Program2PersonDao.toClusterProgram2Person(fr.ifremer.allegro.administration.programStrategy.Program2Person, fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram2Person)

toClusterProgram2Person

public ClusterProgram2Person toClusterProgram2Person(Program2Person entity)
Description copied from interface: Program2PersonDao
Converts this DAO's entity to an object of type ClusterProgram2Person.

Specified by:
toClusterProgram2Person in interface Program2PersonDao
See Also:
Program2PersonDao.toClusterProgram2Person(fr.ifremer.allegro.administration.programStrategy.Program2Person)

clusterProgram2PersonToEntity

public void clusterProgram2PersonToEntity(ClusterProgram2Person source,
                                          Program2Person target,
                                          boolean copyIfNull)
Description copied from interface: Program2PersonDao
Copies the fields of ClusterProgram2Person to the specified entity.

Specified by:
clusterProgram2PersonToEntity in interface Program2PersonDao
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.programStrategy.Program2PersonDao#clusterProgram2PersonToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram2Person, fr.ifremer.allegro.administration.programStrategy.Program2Person)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.