This class handle each request on the J2EEDO application.
The doAction() method performs the current requested action.
It starts and commits a transaction if needed
Call the asked action. When the action in the
DatabaseImpl.actionArray action list , the 3 local static lists of
id (department, employee and project) are redefined.
poolOfDepartmentId The Vector poolOfDepartmentId is a static list of known
departmentId used to keep in mind the list of department without doing
any JDO request.
poolOfEmployeeId The Vector poolOfEmployeeId is a static list of known
employeeId used to keep in mind the list of employee without doing any
JDO request.
doAction(String action, boolean performCommit, PMHolder pmHolder) This method initialize the action to be performed, enables or disables
transaction management according the parameter withTransaction and calls
the private doAction() method.
This method initialize the action to be performed, enables or disables
transaction management according the parameter withTransaction and calls
the private doAction() method.
Parameters: parameter - is the action to be performed Parameters: withTransaction - is a boolean use to enable or disable the use of transaction threatment result as String throws: JDOException - throws: Exception -
getDepartmentIdFromPool
public static long getDepartmentIdFromPool()(Code)
Returns one of the existing department id
a department id