The application J2eedo (org.objectweb.speedo.j2eedo) is a web application build on the following data model.
It implements speedo JDO distribution to handle to the 4 tables' data:
![]() |
The web application's data model
4 tables:
|
This application provides with 16 actions:
Action | Description |
---|---|
ping | Returns a fixed string to ensure the j2ee application is started. |
newDept | Creates a new department and some new employees (random number defined between 10 and 70). |
newProj | Creates a new project and affect few employees (random number defined between 5 and 20). |
newEmp | Selects one of the known departments and creates a new employee. |
setDeptBoss | Selects one of the known departments and sets the manager for the department's employees. |
delEmployee | Removes an employee. |
delProject | Removes a project. |
splitProject | Selects one of the known departments, creates a new project and duplicates the member list from the former project. |
splitDepartment | Selects one of the known departments, creates a new department and affect the 50% of the former employees and project to the latter department. |
mergeDept | Removes a department and adds all projects and employees to an other project. |
incSalary | Increase an employee's salary. |
getDepartment | Gets a department by id. |
getProject | Gets a project by id. |
getEmployee | Gets an employee by id. |
queryEmployees |
Performs one of the four queries:
|
queryProjects |
Performs one of the two queries:
|
The application is made of 7 main java packages:
org.objectweb.speedo.j2eedo: contains two JUnit test case classes:
org.objectweb.speedo.j2eedo.bo: contains all business object class handling the data modele.
org.objectweb.speedo.j2eedo.common: contains is a tool box, it contains all common class used by the application.
org.objectweb.speedo.j2eedo.database: contains all classes to be enhanced used to access to the database content.
org.objectweb.speedo.j2eedo.ejb: contains is the EJB session definition.
org.objectweb.speedo.j2eedo.test: contains all test class use to highlight errors or behaviours.
org.objectweb.speedo.j2eedo.web: contains the servlets classes' definition.