| java.lang.Object org.objectweb.speedo.j2eedo.bo.DepartmentFactory
DepartmentFactory | public class DepartmentFactory (Code) | | This class define the Java class to methods used to handle department
author: fmillevi@yahoo.com |
MAX_EMPLOYEE_PER_DEPARTMENT | final public static int MAX_EMPLOYEE_PER_DEPARTMENT(Code) | | the constant MAX_EMPLOYEE_PER_DEPARTMENT defines
the maximum employee number to be created per department
|
MIN_EMPLOYEE_PER_DEPARTMENT | final public static int MIN_EMPLOYEE_PER_DEPARTMENT(Code) | | the constant MIN_EMPLOYEE_PER_DEPARTMENT defines
the minimum employee number to be created per department
|
logger | static Logger logger(Code) | | |
getDepartment | public void getDepartment(StringBuffer outStr, PersistenceManager pm)(Code) | | Gets the department definition
throws: JDOException - if error occurs while getting the deparment throws: Exception - |
mergeDepartment | public void mergeDepartment(PollsSynchronizations pollsSync, StringBuffer outStr, PersistenceManager pm)(Code) | | Affects all employees and project to an other department and removes the former department
throws: JDOException - throws: Exception - |
newDepartmentWithEmployees | public void newDepartmentWithEmployees(PollsSynchronizations pollsSync, StringBuffer outStr, PersistenceManager pm)(Code) | | Create a new department and it's employees
throws: JDOException - if error occurs while creating the deparment throws: Exception - |
setManagerForADepartment | public void setManagerForADepartment(StringBuffer outStr, PersistenceManager pm)(Code) | | Selects a department, gets the list of employees. The first returned employee is the
new manager for the following employees
throws: JDOException - throws: Exception - |
splitDepartment | public void splitDepartment(PollsSynchronizations pollsSync, StringBuffer outStr, PersistenceManager pm)(Code) | | Creates a new department, selects an existing department and shifts to the
new department :
- 50% of the projects
- 50% of the employees
throws: JDOException - throws: Exception - |
|
|