fr.ifremer.allegro.administration.programStrategy
Class ProgramPrivilegeDaoBase

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

public abstract class ProgramPrivilegeDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ProgramPrivilegeDao

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

See Also:
ProgramPrivilege

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.programStrategy.ProgramPrivilegeDao
TRANSFORM_CLUSTERPROGRAMPRIVILEGE, TRANSFORM_NONE, TRANSFORM_REMOTEPROGRAMPRIVILEGEFULLVO, TRANSFORM_REMOTEPROGRAMPRIVILEGENATURALID
 
Constructor Summary
ProgramPrivilegeDaoBase()
           
 
Method Summary
 void clusterProgramPrivilegeToEntity(ClusterProgramPrivilege source, ProgramPrivilege target, boolean copyIfNull)
          Copies the fields of ClusterProgramPrivilege to the specified entity.
 void clusterProgramPrivilegeToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterProgramPrivilege to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege and adds from the passed in entities collection
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional flag called transform.
 ProgramPrivilege create(java.lang.Integer id, java.lang.String label, java.lang.String name)
           Creates a new fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege instance from only required properties (attributes and association ends) and adds it to the persistent store.
 ProgramPrivilege create(java.lang.Integer id, java.lang.String label, java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection program2Persons)
           Creates a new fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege instance from all attributes and properties and adds it to the persistent store.
 java.lang.Object create(int transform, java.lang.Integer id, java.lang.String label, java.lang.String name)
           Does the same thing as ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.Integer id, java.lang.String label, java.lang.String name, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection program2Persons)
           Does the same thing as ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection) with an additional flag called transform.
 java.lang.Object create(int transform, ProgramPrivilege programPrivilege)
           Does the same thing as ProgramPrivilegeDao.create(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) with an additional flag called transform.
 ProgramPrivilege create(ProgramPrivilege programPrivilege)
          Creates an instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege and adds it to the persistent store.
 ProgramPrivilege createFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
           
 ProgramPrivilege findProgramPrivilegeById(java.lang.Integer id)
           
 java.lang.Object findProgramPrivilegeById(int transform, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findProgramPrivilegeById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(int, java.lang.Integer) with an additional argument called queryString.
 ProgramPrivilege findProgramPrivilegeById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer) with an additional argument called queryString.
 ProgramPrivilege findProgramPrivilegeByNaturalId(java.lang.Integer id)
           
 java.lang.Object findProgramPrivilegeByNaturalId(int transform, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findProgramPrivilegeByNaturalId(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(int, java.lang.Integer) with an additional argument called queryString.
 ProgramPrivilege findProgramPrivilegeByNaturalId(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer) with an additional argument called queryString.
 ClusterProgramPrivilege[] getAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllProgramPrivilege()
           
 java.util.Collection getAllProgramPrivilege(int transform)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege() with an additional flag called transform.
 java.util.Collection getAllProgramPrivilege(int pageNumber, int pageSize)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilege(int transform, int pageNumber, int pageSize)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilege(int transform, java.lang.String queryString)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int) with an additional argument called queryString.
 java.util.Collection getAllProgramPrivilege(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilege(java.lang.String queryString)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege() with an additional argument called queryString.
 java.util.Collection getAllProgramPrivilege(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilege(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllProgramPrivilegeSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  Program2DepartmentDao getProgram2DepartmentDao()
          Gets the reference to program2DepartmentDao.
protected  Program2PersonDao getProgram2PersonDao()
          Gets the reference to program2PersonDao.
protected abstract  ProgramPrivilege handleCreateFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
          Performs the core logic for createFromClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege)
protected abstract  ClusterProgramPrivilege[] handleGetAllClusterProgramPrivilegeSinceDateSynchro(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 getAllClusterProgramPrivilegeSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 ProgramPrivilege load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as ProgramPrivilegeDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type ProgramPrivilege.
 java.util.Collection loadAll(int transform)
           Does the same thing as ProgramPrivilegeDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as ProgramPrivilegeDao.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 ProgramPrivilegeDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteProgramPrivilegeFullVOToEntity(RemoteProgramPrivilegeFullVO source, ProgramPrivilege target, boolean copyIfNull)
          Copies the fields of RemoteProgramPrivilegeFullVO to the specified entity.
 void remoteProgramPrivilegeFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgramPrivilegeFullVO to this DAO's entity.
 void remoteProgramPrivilegeNaturalIdToEntity(RemoteProgramPrivilegeNaturalId source, ProgramPrivilege target, boolean copyIfNull)
          Copies the fields of RemoteProgramPrivilegeNaturalId to the specified entity.
 void remoteProgramPrivilegeNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteProgramPrivilegeNaturalId 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.ProgramPrivilege having the given identifier from the persistent store.
 void remove(ProgramPrivilege programPrivilege)
          Removes the instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege 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 ProgramPrivilegeDao.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 setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
          Sets the reference to program2DepartmentDao.
 void setProgram2PersonDao(Program2PersonDao program2PersonDao)
          Sets the reference to program2PersonDao.
protected  ClusterProgramPrivilege toClusterProgramPrivilege(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterProgramPrivilege toClusterProgramPrivilege(ProgramPrivilege entity)
          Converts this DAO's entity to an object of type ClusterProgramPrivilege.
 void toClusterProgramPrivilege(ProgramPrivilege source, ClusterProgramPrivilege target)
          Copies the fields of the specified entity to the target value object.
 ClusterProgramPrivilege[] toClusterProgramPrivilegeArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterProgramPrivilege.
 void toClusterProgramPrivilegeCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterProgramPrivilege.
protected  ProgramPrivilege toEntity(java.lang.Object[] row)
           
protected  RemoteProgramPrivilegeFullVO toRemoteProgramPrivilegeFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteProgramPrivilegeFullVO toRemoteProgramPrivilegeFullVO(ProgramPrivilege entity)
          Converts this DAO's entity to an object of type RemoteProgramPrivilegeFullVO.
 void toRemoteProgramPrivilegeFullVO(ProgramPrivilege source, RemoteProgramPrivilegeFullVO target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgramPrivilegeFullVO[] toRemoteProgramPrivilegeFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgramPrivilegeFullVO.
 void toRemoteProgramPrivilegeFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgramPrivilegeFullVO.
protected  RemoteProgramPrivilegeNaturalId toRemoteProgramPrivilegeNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteProgramPrivilegeNaturalId toRemoteProgramPrivilegeNaturalId(ProgramPrivilege entity)
          Converts this DAO's entity to an object of type RemoteProgramPrivilegeNaturalId.
 void toRemoteProgramPrivilegeNaturalId(ProgramPrivilege source, RemoteProgramPrivilegeNaturalId target)
          Copies the fields of the specified entity to the target value object.
 RemoteProgramPrivilegeNaturalId[] toRemoteProgramPrivilegeNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteProgramPrivilegeNaturalId.
 void toRemoteProgramPrivilegeNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteProgramPrivilegeNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege) method.
protected  java.lang.Object transformEntity(int transform, ProgramPrivilege 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.ProgramPrivilegeDao, please note that the ProgramPrivilegeDao.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(ProgramPrivilege programPrivilege)
          Updates the programPrivilege 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.ProgramPrivilegeDao
clusterProgramPrivilegeToEntity, remoteProgramPrivilegeFullVOToEntity, remoteProgramPrivilegeNaturalIdToEntity
 

Constructor Detail

ProgramPrivilegeDaoBase

public ProgramPrivilegeDaoBase()
Method Detail

setProgram2DepartmentDao

public void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2DepartmentDao.


getProgram2DepartmentDao

protected Program2DepartmentDao getProgram2DepartmentDao()
Gets the reference to program2DepartmentDao.


setProgram2PersonDao

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


getProgram2PersonDao

protected Program2PersonDao getProgram2PersonDao()
Gets the reference to program2PersonDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               ProgramPrivilege programPrivilege)
Description copied from interface: ProgramPrivilegeDao

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

create

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

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

create

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

Does the same thing as ProgramPrivilegeDao.create(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 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 ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.create(int, java.util.Collection)

create

public ProgramPrivilege create(java.lang.Integer id,
                               java.lang.String label,
                               java.lang.String name,
                               java.sql.Timestamp updateDate,
                               java.util.Collection program2Departments,
                               java.util.Collection program2Persons)
Description copied from interface: ProgramPrivilegeDao

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

Specified by:
create in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection)

create

public java.lang.Object create(int transform,
                               java.lang.Integer id,
                               java.lang.String label,
                               java.lang.String name,
                               java.sql.Timestamp updateDate,
                               java.util.Collection program2Departments,
                               java.util.Collection program2Persons)
Description copied from interface: ProgramPrivilegeDao

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

Specified by:
create in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.create(int, java.lang.Integer,java.lang.String,java.lang.String,java.sql.Timestamp,java.util.Collection,java.util.Collection)

create

public ProgramPrivilege create(java.lang.Integer id,
                               java.lang.String label,
                               java.lang.String name)
Description copied from interface: ProgramPrivilegeDao

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

Specified by:
create in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.create(java.lang.Integer,java.lang.String,java.lang.String)

create

public java.lang.Object create(int transform,
                               java.lang.Integer id,
                               java.lang.String label,
                               java.lang.String name)
Description copied from interface: ProgramPrivilegeDao

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

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

update

public void update(ProgramPrivilege programPrivilege)
Description copied from interface: ProgramPrivilegeDao
Updates the programPrivilege instance in the persistent store.

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

update

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

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

remove

public void remove(ProgramPrivilege programPrivilege)
Description copied from interface: ProgramPrivilegeDao
Removes the instance of fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege from the persistent store.

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

remove

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

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

remove

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

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

getAllProgramPrivilege

public java.util.Collection getAllProgramPrivilege()
Specified by:
getAllProgramPrivilege in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.getAllProgramPrivilege()

getAllProgramPrivilege

public java.util.Collection getAllProgramPrivilege(int transform)
Description copied from interface: ProgramPrivilegeDao

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

getAllProgramPrivilege

public java.util.Collection getAllProgramPrivilege(java.lang.String queryString)
Description copied from interface: ProgramPrivilegeDao

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

Specified by:
getAllProgramPrivilege in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.getAllProgramPrivilege(java.lang.String)

getAllProgramPrivilege

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

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

getAllProgramPrivilege

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

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

getAllProgramPrivilege

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

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

Specified by:
getAllProgramPrivilege in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.getAllProgramPrivilege(int, String)

getAllProgramPrivilege

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

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

getAllProgramPrivilege

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

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

findProgramPrivilegeById

public ProgramPrivilege findProgramPrivilegeById(java.lang.Integer id)
Specified by:
findProgramPrivilegeById in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.Integer)

findProgramPrivilegeById

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

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

findProgramPrivilegeById

public ProgramPrivilege findProgramPrivilegeById(java.lang.String queryString,
                                                 java.lang.Integer id)
Description copied from interface: ProgramPrivilegeDao

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

Specified by:
findProgramPrivilegeById in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.findProgramPrivilegeById(java.lang.String, java.lang.Integer)

findProgramPrivilegeById

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

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

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

findProgramPrivilegeByNaturalId

public ProgramPrivilege findProgramPrivilegeByNaturalId(java.lang.Integer id)
Specified by:
findProgramPrivilegeByNaturalId in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.Integer)

findProgramPrivilegeByNaturalId

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

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

findProgramPrivilegeByNaturalId

public ProgramPrivilege findProgramPrivilegeByNaturalId(java.lang.String queryString,
                                                        java.lang.Integer id)
Description copied from interface: ProgramPrivilegeDao

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

Specified by:
findProgramPrivilegeByNaturalId in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.findProgramPrivilegeByNaturalId(java.lang.String, java.lang.Integer)

findProgramPrivilegeByNaturalId

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

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

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

getAllProgramPrivilegeSinceDateSynchro

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

getAllProgramPrivilegeSinceDateSynchro

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

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

Specified by:
getAllProgramPrivilegeSinceDateSynchro in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, java.sql.Timestamp)

getAllProgramPrivilegeSinceDateSynchro

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

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

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

getAllProgramPrivilegeSinceDateSynchro

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

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

Specified by:
getAllProgramPrivilegeSinceDateSynchro in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, int, java.sql.Timestamp)

getAllProgramPrivilegeSinceDateSynchro

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

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

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

getAllProgramPrivilegeSinceDateSynchro

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

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

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

getAllProgramPrivilegeSinceDateSynchro

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

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

Specified by:
getAllProgramPrivilegeSinceDateSynchro in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.getAllProgramPrivilegeSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllProgramPrivilegeSinceDateSynchro

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

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

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

createFromClusterProgramPrivilege

public ProgramPrivilege createFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
Specified by:
createFromClusterProgramPrivilege in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.createFromClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege)

handleCreateFromClusterProgramPrivilege

protected abstract ProgramPrivilege handleCreateFromClusterProgramPrivilege(ClusterProgramPrivilege clusterProgramPrivilege)
                                                                     throws java.lang.Exception
Performs the core logic for createFromClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege)

Throws:
java.lang.Exception

getAllClusterProgramPrivilegeSinceDateSynchro

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

handleGetAllClusterProgramPrivilegeSinceDateSynchro

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

Throws:
java.lang.Exception

transformEntity

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

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

toEntity

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

toRemoteProgramPrivilegeFullVOCollection

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

Specified by:
toRemoteProgramPrivilegeFullVOCollection in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVOCollection(java.util.Collection)

toRemoteProgramPrivilegeFullVOArray

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

Specified by:
toRemoteProgramPrivilegeFullVOArray in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVOArray(java.util.Collection)

toRemoteProgramPrivilegeFullVO

protected RemoteProgramPrivilegeFullVO toRemoteProgramPrivilegeFullVO(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 ProgramPrivilegeDaoImpl class if you intend to use reporting queries.

See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVO(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

remoteProgramPrivilegeFullVOToEntityCollection

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

Specified by:
remoteProgramPrivilegeFullVOToEntityCollection in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.remoteProgramPrivilegeFullVOToEntityCollection(java.util.Collection)

toRemoteProgramPrivilegeFullVO

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

toRemoteProgramPrivilegeFullVO

public RemoteProgramPrivilegeFullVO toRemoteProgramPrivilegeFullVO(ProgramPrivilege entity)
Description copied from interface: ProgramPrivilegeDao
Converts this DAO's entity to an object of type RemoteProgramPrivilegeFullVO.

Specified by:
toRemoteProgramPrivilegeFullVO in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeFullVO(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

remoteProgramPrivilegeFullVOToEntity

public void remoteProgramPrivilegeFullVOToEntity(RemoteProgramPrivilegeFullVO source,
                                                 ProgramPrivilege target,
                                                 boolean copyIfNull)
Description copied from interface: ProgramPrivilegeDao
Copies the fields of RemoteProgramPrivilegeFullVO to the specified entity.

Specified by:
remoteProgramPrivilegeFullVOToEntity in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao#remoteProgramPrivilegeFullVOToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramPrivilegeFullVO, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

toRemoteProgramPrivilegeNaturalIdCollection

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

Specified by:
toRemoteProgramPrivilegeNaturalIdCollection in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalIdCollection(java.util.Collection)

toRemoteProgramPrivilegeNaturalIdArray

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

Specified by:
toRemoteProgramPrivilegeNaturalIdArray in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalIdArray(java.util.Collection)

toRemoteProgramPrivilegeNaturalId

protected RemoteProgramPrivilegeNaturalId toRemoteProgramPrivilegeNaturalId(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 ProgramPrivilegeDaoImpl class if you intend to use reporting queries.

See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalId(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

remoteProgramPrivilegeNaturalIdToEntityCollection

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

Specified by:
remoteProgramPrivilegeNaturalIdToEntityCollection in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.remoteProgramPrivilegeNaturalIdToEntityCollection(java.util.Collection)

toRemoteProgramPrivilegeNaturalId

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

toRemoteProgramPrivilegeNaturalId

public RemoteProgramPrivilegeNaturalId toRemoteProgramPrivilegeNaturalId(ProgramPrivilege entity)
Description copied from interface: ProgramPrivilegeDao
Converts this DAO's entity to an object of type RemoteProgramPrivilegeNaturalId.

Specified by:
toRemoteProgramPrivilegeNaturalId in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toRemoteProgramPrivilegeNaturalId(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

remoteProgramPrivilegeNaturalIdToEntity

public void remoteProgramPrivilegeNaturalIdToEntity(RemoteProgramPrivilegeNaturalId source,
                                                    ProgramPrivilege target,
                                                    boolean copyIfNull)
Description copied from interface: ProgramPrivilegeDao
Copies the fields of RemoteProgramPrivilegeNaturalId to the specified entity.

Specified by:
remoteProgramPrivilegeNaturalIdToEntity in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao#remoteProgramPrivilegeNaturalIdToEntity(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramPrivilegeNaturalId, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

toClusterProgramPrivilegeCollection

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

Specified by:
toClusterProgramPrivilegeCollection in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toClusterProgramPrivilegeCollection(java.util.Collection)

toClusterProgramPrivilegeArray

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

Specified by:
toClusterProgramPrivilegeArray in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toClusterProgramPrivilegeArray(java.util.Collection)

toClusterProgramPrivilege

protected ClusterProgramPrivilege toClusterProgramPrivilege(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 ProgramPrivilegeDaoImpl class if you intend to use reporting queries.

See Also:
ProgramPrivilegeDao.toClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

clusterProgramPrivilegeToEntityCollection

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

Specified by:
clusterProgramPrivilegeToEntityCollection in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.clusterProgramPrivilegeToEntityCollection(java.util.Collection)

toClusterProgramPrivilege

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

toClusterProgramPrivilege

public ClusterProgramPrivilege toClusterProgramPrivilege(ProgramPrivilege entity)
Description copied from interface: ProgramPrivilegeDao
Converts this DAO's entity to an object of type ClusterProgramPrivilege.

Specified by:
toClusterProgramPrivilege in interface ProgramPrivilegeDao
See Also:
ProgramPrivilegeDao.toClusterProgramPrivilege(fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

clusterProgramPrivilegeToEntity

public void clusterProgramPrivilegeToEntity(ClusterProgramPrivilege source,
                                            ProgramPrivilege target,
                                            boolean copyIfNull)
Description copied from interface: ProgramPrivilegeDao
Copies the fields of ClusterProgramPrivilege to the specified entity.

Specified by:
clusterProgramPrivilegeToEntity in interface ProgramPrivilegeDao
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.ProgramPrivilegeDao#clusterProgramPrivilegeToEntity(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgramPrivilege, fr.ifremer.allegro.administration.programStrategy.ProgramPrivilege)

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.