fr.ifremer.allegro.administration.user
Class DepartmentDaoBase

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

public abstract class DepartmentDaoBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements DepartmentDao

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

See Also:
Department

Field Summary
 
Fields inherited from interface fr.ifremer.allegro.administration.user.DepartmentDao
TRANSFORM_CLUSTERDEPARTMENT, TRANSFORM_NONE, TRANSFORM_REMOTEDEPARTMENTFULLVO, TRANSFORM_REMOTEDEPARTMENTNATURALID
 
Constructor Summary
DepartmentDaoBase()
           
 
Method Summary
 void clusterDepartmentToEntity(ClusterDepartment source, Department target, boolean copyIfNull)
          Copies the fields of ClusterDepartment to the specified entity.
 void clusterDepartmentToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type ClusterDepartment to this DAO's entity.
 java.util.Collection create(java.util.Collection entities)
          Creates a new instance of fr.ifremer.allegro.administration.user.Department and adds from the passed in entities collection
 Department create(Department department)
          Creates an instance of fr.ifremer.allegro.administration.user.Department and adds it to the persistent store.
 java.util.Collection create(int transform, java.util.Collection entities)
           Does the same thing as DepartmentDao.create(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.lang.Object create(int transform, Department department)
           Does the same thing as DepartmentDao.create(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.util.Date creationDate, java.lang.Boolean isLdap, java.lang.String name, Status status)
           Does the same thing as DepartmentDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.lang.Object create(int transform, java.lang.String code, java.lang.String name, java.lang.String email, java.lang.String address, java.lang.String phone, java.lang.Boolean isLdap, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection departments, Department parentDepartment, Status status, java.util.Collection outputTransferts, java.util.Collection inputTransferts)
           Does the same thing as DepartmentDao.create(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,java.util.Date,java.sql.Timestamp,java.util.Collection,java.util.Collection,fr.ifremer.allegro.administration.user.Department,fr.ifremer.allegro.referential.Status,java.util.Collection,java.util.Collection) with an additional flag called transform.
 Department create(java.lang.String code, java.util.Date creationDate, java.lang.Boolean isLdap, java.lang.String name, Status status)
           Creates a new fr.ifremer.allegro.administration.user.Department instance from only required properties (attributes and association ends) and adds it to the persistent store.
 Department create(java.lang.String code, java.lang.String name, java.lang.String email, java.lang.String address, java.lang.String phone, java.lang.Boolean isLdap, java.util.Date creationDate, java.sql.Timestamp updateDate, java.util.Collection program2Departments, java.util.Collection departments, Department parentDepartment, Status status, java.util.Collection outputTransferts, java.util.Collection inputTransferts)
           Creates a new fr.ifremer.allegro.administration.user.Department instance from all attributes and properties and adds it to the persistent store.
 Department createFromClusterDepartment(ClusterDepartment clusterDepartment)
           
 Department findDepartmentById(java.lang.Integer id)
           
 java.lang.Object findDepartmentById(int transform, java.lang.Integer id)
           Does the same thing as DepartmentDao.findDepartmentById(java.lang.Integer) with an additional flag called transform.
 java.lang.Object findDepartmentById(int transform, java.lang.String queryString, java.lang.Integer id)
           Does the same thing as DepartmentDao.findDepartmentById(int, java.lang.Integer) with an additional argument called queryString.
 Department findDepartmentById(java.lang.String queryString, java.lang.Integer id)
           Does the same thing as DepartmentDao.findDepartmentById(java.lang.Integer) with an additional argument called queryString.
 java.lang.Object findDepartmentByNaturalId(int transform, java.lang.String code)
           Does the same thing as DepartmentDao.findDepartmentByNaturalId(java.lang.String) with an additional flag called transform.
 java.lang.Object findDepartmentByNaturalId(int transform, java.lang.String queryString, java.lang.String code)
           Does the same thing as DepartmentDao.findDepartmentByNaturalId(int, java.lang.String) with an additional argument called queryString.
 Department findDepartmentByNaturalId(java.lang.String code)
           
 Department findDepartmentByNaturalId(java.lang.String queryString, java.lang.String code)
           Does the same thing as DepartmentDao.findDepartmentByNaturalId(java.lang.String) with an additional argument called queryString.
 java.util.Collection findDepartmentByParentDepartment(Department parentDepartment)
           
 java.util.Collection findDepartmentByParentDepartment(int transform, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional flag called transform.
 java.util.Collection findDepartmentByParentDepartment(int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByParentDepartment(int transform, int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByParentDepartment(int transform, java.lang.String queryString, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findDepartmentByParentDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(int, String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional argument called queryString.
 java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString, int pageNumber, int pageSize, Department parentDepartment)
           Does the same thing as DepartmentDao.findDepartmentByParentDepartment(String, fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int transform, int pageNumber, int pageSize, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int pageNumber, int pageSize, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int transform, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an additional flag called transform.
 java.util.Collection findDepartmentByStatus(int transform, java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(int, String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(int transform, java.lang.String queryString, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(int, fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 java.util.Collection findDepartmentByStatus(Status status)
           
 java.util.Collection findDepartmentByStatus(java.lang.String queryString, int pageNumber, int pageSize, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(String, fr.ifremer.allegro.referential.Status) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection findDepartmentByStatus(java.lang.String queryString, Status status)
           Does the same thing as DepartmentDao.findDepartmentByStatus(fr.ifremer.allegro.referential.Status) with an additional argument called queryString.
 ClusterDepartment[] getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.util.Collection getAllDepartment()
           
 java.util.Collection getAllDepartment(int transform)
           Does the same thing as DepartmentDao.getAllDepartment() with an additional flag called transform.
 java.util.Collection getAllDepartment(int pageNumber, int pageSize)
           Does the same thing as DepartmentDao.getAllDepartment() with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartment(int transform, int pageNumber, int pageSize)
           Does the same thing as DepartmentDao.getAllDepartment(int) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartment(int transform, java.lang.String queryString)
           Does the same thing as DepartmentDao.getAllDepartment(int) with an additional argument called queryString.
 java.util.Collection getAllDepartment(int transform, java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as DepartmentDao.getAllDepartment(int, String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartment(java.lang.String queryString)
           Does the same thing as DepartmentDao.getAllDepartment() with an additional argument called queryString.
 java.util.Collection getAllDepartment(java.lang.String queryString, int pageNumber, int pageSize)
           Does the same thing as DepartmentDao.getAllDepartment(String) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllDepartmentSinceDateSynchro(int transform, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an additional flag called transform.
 java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString, int pageNumber, int pageSize, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(String, java.sql.Timestamp) with an additional two arguments called pageNumber and pageSize.
 java.util.Collection getAllDepartmentSinceDateSynchro(java.lang.String queryString, java.sql.Timestamp updateDate)
           Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(java.sql.Timestamp) with an additional argument called queryString.
 java.util.Collection getAllDepartmentSinceDateSynchro(java.sql.Timestamp updateDate)
           
protected  DepartmentDao getDepartmentDao()
          Gets the reference to departmentDao.
protected  DepartmentPrivilegeTransfertDao getDepartmentPrivilegeTransfertDao()
          Gets the reference to departmentPrivilegeTransfertDao.
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  StatusDao getStatusDao()
          Gets the reference to statusDao.
protected abstract  Department handleCreateFromClusterDepartment(ClusterDepartment clusterDepartment)
          Performs the core logic for createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)
protected abstract  ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(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 getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
 Department load(java.lang.Integer id)
          Loads an instance of fr.ifremer.allegro.administration.user.Department from the persistent store.
 java.lang.Object load(int transform, java.lang.Integer id)
           Does the same thing as DepartmentDao.load(java.lang.Integer) with an additional flag called transform.
 java.util.Collection loadAll()
          Loads all entities of type Department.
 java.util.Collection loadAll(int transform)
           Does the same thing as DepartmentDao.loadAll() with an additional flag called transform.
 java.util.Collection loadAll(int pageNumber, int pageSize)
           Does the same thing as DepartmentDao.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 DepartmentDao.loadAll(int) with an additional two arguments called pageNumber and pageSize.
 void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source, Department target, boolean copyIfNull)
          Copies the fields of RemoteDepartmentFullVO to the specified entity.
 void remoteDepartmentFullVOToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteDepartmentFullVO to this DAO's entity.
 void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source, Department target, boolean copyIfNull)
          Copies the fields of RemoteDepartmentNaturalId to the specified entity.
 void remoteDepartmentNaturalIdToEntityCollection(java.util.Collection instances)
          Converts a Collection of instances of type RemoteDepartmentNaturalId to this DAO's entity.
 void remove(java.util.Collection entities)
          Removes all entities in the given entities collection.
 void remove(Department department)
          Removes the instance of fr.ifremer.allegro.administration.user.Department from the persistent store.
 void remove(java.lang.Integer id)
          Removes the instance of fr.ifremer.allegro.administration.user.Department having the given identifier 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 DepartmentDao.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 setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to departmentDao.
 void setDepartmentPrivilegeTransfertDao(DepartmentPrivilegeTransfertDao departmentPrivilegeTransfertDao)
          Sets the reference to departmentPrivilegeTransfertDao.
 void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
          Sets the reference to program2DepartmentDao.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to statusDao.
 ClusterDepartment toClusterDepartment(Department entity)
          Converts this DAO's entity to an object of type ClusterDepartment.
 void toClusterDepartment(Department source, ClusterDepartment target)
          Copies the fields of the specified entity to the target value object.
protected  ClusterDepartment toClusterDepartment(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 ClusterDepartment[] toClusterDepartmentArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type ClusterDepartment.
 void toClusterDepartmentCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type ClusterDepartment.
protected  Department toEntity(java.lang.Object[] row)
           
 RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
          Converts this DAO's entity to an object of type RemoteDepartmentFullVO.
 void toRemoteDepartmentFullVO(Department source, RemoteDepartmentFullVO target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteDepartmentFullVO toRemoteDepartmentFullVO(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteDepartmentFullVO[] toRemoteDepartmentFullVOArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteDepartmentFullVO.
 void toRemoteDepartmentFullVOCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteDepartmentFullVO.
 RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
          Converts this DAO's entity to an object of type RemoteDepartmentNaturalId.
 void toRemoteDepartmentNaturalId(Department source, RemoteDepartmentNaturalId target)
          Copies the fields of the specified entity to the target value object.
protected  RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(java.lang.Object[] row)
          Default implementation for transforming the results of a report query into a value object.
 RemoteDepartmentNaturalId[] toRemoteDepartmentNaturalIdArray(java.util.Collection entities)
          Converts this DAO's entity to an array of instances of type RemoteDepartmentNaturalId.
 void toRemoteDepartmentNaturalIdCollection(java.util.Collection entities)
          Converts this DAO's entity to a Collection of instances of type RemoteDepartmentNaturalId.
protected  void transformEntities(int transform, java.util.Collection entities)
          Transforms a collection of entities using the transformEntity(int,fr.ifremer.allegro.administration.user.Department) method.
protected  java.lang.Object transformEntity(int transform, Department entity)
          Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.administration.user.DepartmentDao, please note that the DepartmentDao.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(Department department)
          Updates the department instance in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ifremer.allegro.administration.user.DepartmentDao
clusterDepartmentToEntity, remoteDepartmentFullVOToEntity, remoteDepartmentNaturalIdToEntity
 

Constructor Detail

DepartmentDaoBase

public DepartmentDaoBase()
Method Detail

setDepartmentDao

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


getDepartmentDao

protected DepartmentDao getDepartmentDao()
Gets the reference to departmentDao.


setStatusDao

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


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to statusDao.


setProgram2DepartmentDao

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


getProgram2DepartmentDao

protected Program2DepartmentDao getProgram2DepartmentDao()
Gets the reference to program2DepartmentDao.


setDepartmentPrivilegeTransfertDao

public void setDepartmentPrivilegeTransfertDao(DepartmentPrivilegeTransfertDao departmentPrivilegeTransfertDao)
Sets the reference to departmentPrivilegeTransfertDao.


getDepartmentPrivilegeTransfertDao

protected DepartmentPrivilegeTransfertDao getDepartmentPrivilegeTransfertDao()
Gets the reference to departmentPrivilegeTransfertDao.


load

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

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

load

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

loadAll

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

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

create

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

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

create

public java.lang.Object create(int transform,
                               Department department)
Description copied from interface: DepartmentDao

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

create

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

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

create

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

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

create

public Department create(java.lang.String code,
                         java.lang.String name,
                         java.lang.String email,
                         java.lang.String address,
                         java.lang.String phone,
                         java.lang.Boolean isLdap,
                         java.util.Date creationDate,
                         java.sql.Timestamp updateDate,
                         java.util.Collection program2Departments,
                         java.util.Collection departments,
                         Department parentDepartment,
                         Status status,
                         java.util.Collection outputTransferts,
                         java.util.Collection inputTransferts)
Description copied from interface: DepartmentDao

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

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

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.lang.String name,
                               java.lang.String email,
                               java.lang.String address,
                               java.lang.String phone,
                               java.lang.Boolean isLdap,
                               java.util.Date creationDate,
                               java.sql.Timestamp updateDate,
                               java.util.Collection program2Departments,
                               java.util.Collection departments,
                               Department parentDepartment,
                               Status status,
                               java.util.Collection outputTransferts,
                               java.util.Collection inputTransferts)
Description copied from interface: DepartmentDao

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

create

public Department create(java.lang.String code,
                         java.util.Date creationDate,
                         java.lang.Boolean isLdap,
                         java.lang.String name,
                         Status status)
Description copied from interface: DepartmentDao

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

Specified by:
create in interface DepartmentDao
See Also:
DepartmentDao.create(java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status)

create

public java.lang.Object create(int transform,
                               java.lang.String code,
                               java.util.Date creationDate,
                               java.lang.Boolean isLdap,
                               java.lang.String name,
                               Status status)
Description copied from interface: DepartmentDao

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

Specified by:
create in interface DepartmentDao
See Also:
DepartmentDao.create(int, java.lang.String,java.util.Date,java.lang.Boolean,java.lang.String,fr.ifremer.allegro.referential.Status)

update

public void update(Department department)
Description copied from interface: DepartmentDao
Updates the department instance in the persistent store.

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

update

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

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

remove

public void remove(Department department)
Description copied from interface: DepartmentDao
Removes the instance of fr.ifremer.allegro.administration.user.Department from the persistent store.

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

remove

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

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

remove

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

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

getAllDepartment

public java.util.Collection getAllDepartment()
Specified by:
getAllDepartment in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartment()

getAllDepartment

public java.util.Collection getAllDepartment(int transform)
Description copied from interface: DepartmentDao

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

getAllDepartment

public java.util.Collection getAllDepartment(java.lang.String queryString)
Description copied from interface: DepartmentDao

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

Specified by:
getAllDepartment in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartment(java.lang.String)

getAllDepartment

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

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

getAllDepartment

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

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

getAllDepartment

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

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

Specified by:
getAllDepartment in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartment(int, String)

getAllDepartment

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

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

getAllDepartment

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

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

findDepartmentById

public Department findDepartmentById(java.lang.Integer id)
Specified by:
findDepartmentById in interface DepartmentDao
See Also:
DepartmentDao.findDepartmentById(java.lang.Integer)

findDepartmentById

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

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

findDepartmentById

public Department findDepartmentById(java.lang.String queryString,
                                     java.lang.Integer id)
Description copied from interface: DepartmentDao

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

Specified by:
findDepartmentById in interface DepartmentDao
See Also:
DepartmentDao.findDepartmentById(java.lang.String, java.lang.Integer)

findDepartmentById

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

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

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(Department parentDepartment)
Specified by:
findDepartmentByParentDepartment in interface DepartmentDao
See Also:
DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department)

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(int transform,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

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

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

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

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(int pageNumber,
                                                             int pageSize,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

Does the same thing as DepartmentDao.findDepartmentByParentDepartment(fr.ifremer.allegro.administration.user.Department) with an additional two arguments called pageNumber and pageSize. The pageNumber argument allows you to specify the page number when you are paging the results and the pageSize allows you to specify the size of the page retrieved.

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

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

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(int transform,
                                                             java.lang.String queryString,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

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

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(int transform,
                                                             int pageNumber,
                                                             int pageSize,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

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

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

findDepartmentByParentDepartment

public java.util.Collection findDepartmentByParentDepartment(int transform,
                                                             java.lang.String queryString,
                                                             int pageNumber,
                                                             int pageSize,
                                                             Department parentDepartment)
Description copied from interface: DepartmentDao

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

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

findDepartmentByStatus

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

findDepartmentByStatus

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

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

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

findDepartmentByStatus

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

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

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

findDepartmentByStatus

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

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

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

findDepartmentByStatus

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

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

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

findDepartmentByStatus

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

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

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

findDepartmentByStatus

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

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

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

findDepartmentByStatus

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

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

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

findDepartmentByNaturalId

public Department findDepartmentByNaturalId(java.lang.String code)
Specified by:
findDepartmentByNaturalId in interface DepartmentDao
See Also:
DepartmentDao.findDepartmentByNaturalId(java.lang.String)

findDepartmentByNaturalId

public java.lang.Object findDepartmentByNaturalId(int transform,
                                                  java.lang.String code)
Description copied from interface: DepartmentDao

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

findDepartmentByNaturalId

public Department findDepartmentByNaturalId(java.lang.String queryString,
                                            java.lang.String code)
Description copied from interface: DepartmentDao

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

Specified by:
findDepartmentByNaturalId in interface DepartmentDao
See Also:
DepartmentDao.findDepartmentByNaturalId(java.lang.String, java.lang.String)

findDepartmentByNaturalId

public java.lang.Object findDepartmentByNaturalId(int transform,
                                                  java.lang.String queryString,
                                                  java.lang.String code)
Description copied from interface: DepartmentDao

Does the same thing as DepartmentDao.findDepartmentByNaturalId(int, java.lang.String) with an additional argument called queryString. This queryString argument allows you to override the query string defined in DepartmentDao.findDepartmentByNaturalId(int, java.lang.String code).

Specified by:
findDepartmentByNaturalId in interface DepartmentDao
See Also:
DepartmentDao.findDepartmentByNaturalId(int, java.lang.String, java.lang.String)

getAllDepartmentSinceDateSynchro

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

getAllDepartmentSinceDateSynchro

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

Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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:
getAllDepartmentSinceDateSynchro in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartmentSinceDateSynchro(int, java.sql.Timestamp)

getAllDepartmentSinceDateSynchro

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

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

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

getAllDepartmentSinceDateSynchro

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

Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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:
getAllDepartmentSinceDateSynchro in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartmentSinceDateSynchro(int, int, java.sql.Timestamp)

getAllDepartmentSinceDateSynchro

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

Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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:
getAllDepartmentSinceDateSynchro in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartmentSinceDateSynchro(String, int, int, java.sql.Timestamp)

getAllDepartmentSinceDateSynchro

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

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

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

getAllDepartmentSinceDateSynchro

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

Does the same thing as DepartmentDao.getAllDepartmentSinceDateSynchro(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:
getAllDepartmentSinceDateSynchro in interface DepartmentDao
See Also:
DepartmentDao.getAllDepartmentSinceDateSynchro(int, int, int, java.sql.Timestamp)

getAllDepartmentSinceDateSynchro

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

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

createFromClusterDepartment

public Department createFromClusterDepartment(ClusterDepartment clusterDepartment)
Specified by:
createFromClusterDepartment in interface DepartmentDao
See Also:
DepartmentDao.createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

handleCreateFromClusterDepartment

protected abstract Department handleCreateFromClusterDepartment(ClusterDepartment clusterDepartment)
                                                         throws java.lang.Exception
Performs the core logic for createFromClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

Throws:
java.lang.Exception

getAllClusterDepartmentSinceDateSynchro

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

handleGetAllClusterDepartmentSinceDateSynchro

protected abstract ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(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 getAllClusterDepartmentSinceDateSynchro(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,
                                           Department entity)
Allows transformation of entities into value objects (or something else for that matter), when the transform flag is set to one of the constants defined in fr.ifremer.allegro.administration.user.DepartmentDao, please note that the DepartmentDao.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 DepartmentDao.TRANSFORM_NONE is assumed.

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

transformEntities

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

This method is to be used internally only.

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

toEntity

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

toRemoteDepartmentFullVOCollection

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

Specified by:
toRemoteDepartmentFullVOCollection in interface DepartmentDao
See Also:
DepartmentDao.toRemoteDepartmentFullVOCollection(java.util.Collection)

toRemoteDepartmentFullVOArray

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

Specified by:
toRemoteDepartmentFullVOArray in interface DepartmentDao
See Also:
DepartmentDao.toRemoteDepartmentFullVOArray(java.util.Collection)

toRemoteDepartmentFullVO

protected RemoteDepartmentFullVO toRemoteDepartmentFullVO(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 DepartmentDaoImpl class if you intend to use reporting queries.

See Also:
DepartmentDao.toRemoteDepartmentFullVO(fr.ifremer.allegro.administration.user.Department)

remoteDepartmentFullVOToEntityCollection

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

Specified by:
remoteDepartmentFullVOToEntityCollection in interface DepartmentDao
See Also:
DepartmentDao.remoteDepartmentFullVOToEntityCollection(java.util.Collection)

toRemoteDepartmentFullVO

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

toRemoteDepartmentFullVO

public RemoteDepartmentFullVO toRemoteDepartmentFullVO(Department entity)
Description copied from interface: DepartmentDao
Converts this DAO's entity to an object of type RemoteDepartmentFullVO.

Specified by:
toRemoteDepartmentFullVO in interface DepartmentDao
See Also:
DepartmentDao.toRemoteDepartmentFullVO(fr.ifremer.allegro.administration.user.Department)

remoteDepartmentFullVOToEntity

public void remoteDepartmentFullVOToEntity(RemoteDepartmentFullVO source,
                                           Department target,
                                           boolean copyIfNull)
Description copied from interface: DepartmentDao
Copies the fields of RemoteDepartmentFullVO to the specified entity.

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

toRemoteDepartmentNaturalIdCollection

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

Specified by:
toRemoteDepartmentNaturalIdCollection in interface DepartmentDao
See Also:
DepartmentDao.toRemoteDepartmentNaturalIdCollection(java.util.Collection)

toRemoteDepartmentNaturalIdArray

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

Specified by:
toRemoteDepartmentNaturalIdArray in interface DepartmentDao
See Also:
DepartmentDao.toRemoteDepartmentNaturalIdArray(java.util.Collection)

toRemoteDepartmentNaturalId

protected RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(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 DepartmentDaoImpl class if you intend to use reporting queries.

See Also:
DepartmentDao.toRemoteDepartmentNaturalId(fr.ifremer.allegro.administration.user.Department)

remoteDepartmentNaturalIdToEntityCollection

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

Specified by:
remoteDepartmentNaturalIdToEntityCollection in interface DepartmentDao
See Also:
DepartmentDao.remoteDepartmentNaturalIdToEntityCollection(java.util.Collection)

toRemoteDepartmentNaturalId

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

toRemoteDepartmentNaturalId

public RemoteDepartmentNaturalId toRemoteDepartmentNaturalId(Department entity)
Description copied from interface: DepartmentDao
Converts this DAO's entity to an object of type RemoteDepartmentNaturalId.

Specified by:
toRemoteDepartmentNaturalId in interface DepartmentDao
See Also:
DepartmentDao.toRemoteDepartmentNaturalId(fr.ifremer.allegro.administration.user.Department)

remoteDepartmentNaturalIdToEntity

public void remoteDepartmentNaturalIdToEntity(RemoteDepartmentNaturalId source,
                                              Department target,
                                              boolean copyIfNull)
Description copied from interface: DepartmentDao
Copies the fields of RemoteDepartmentNaturalId to the specified entity.

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

toClusterDepartmentCollection

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

Specified by:
toClusterDepartmentCollection in interface DepartmentDao
See Also:
DepartmentDao.toClusterDepartmentCollection(java.util.Collection)

toClusterDepartmentArray

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

Specified by:
toClusterDepartmentArray in interface DepartmentDao
See Also:
DepartmentDao.toClusterDepartmentArray(java.util.Collection)

toClusterDepartment

protected ClusterDepartment toClusterDepartment(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 DepartmentDaoImpl class if you intend to use reporting queries.

See Also:
DepartmentDao.toClusterDepartment(fr.ifremer.allegro.administration.user.Department)

clusterDepartmentToEntityCollection

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

Specified by:
clusterDepartmentToEntityCollection in interface DepartmentDao
See Also:
DepartmentDao.clusterDepartmentToEntityCollection(java.util.Collection)

toClusterDepartment

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

toClusterDepartment

public ClusterDepartment toClusterDepartment(Department entity)
Description copied from interface: DepartmentDao
Converts this DAO's entity to an object of type ClusterDepartment.

Specified by:
toClusterDepartment in interface DepartmentDao
See Also:
DepartmentDao.toClusterDepartment(fr.ifremer.allegro.administration.user.Department)

clusterDepartmentToEntity

public void clusterDepartmentToEntity(ClusterDepartment source,
                                      Department target,
                                      boolean copyIfNull)
Description copied from interface: DepartmentDao
Copies the fields of ClusterDepartment to the specified entity.

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

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

search

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

search

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

search

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

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


Copyright © 2008-2010 IFREMER. All Rights Reserved.