Overview

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:

Here is a visual representation of the j2eedo database schema. The web application's data model

4 tables:
  • Department
  • Employee
  • Address
  • Project

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:
  • Get an employee by its id,
  • Get employees between min and max,
  • Get employees having the same manager,
  • Get employees member of a project.
queryProjects Performs one of the two queries:
  • Get project by id,
  • Get projects by member.


Action call

Action
Use session bean false   true
Force the use of a transaction false   true
Get persistente manager by the servlet false   true

J2EEDO Application Java classes

The application is made of 7 main java packages: