Main Page | Class List | Directories | Class Members

com.forum.nokia.taskmanager.beans.TaskListBean Class Reference

List of all members.

Public Member Functions

 TaskListBean ()
void setDatabase (DBAccess database)
void setUserId (String user_id)
void setTaskId (String task_id)
List getUserTasks ()
List getAllTasks ()

Detailed Description

An interface bean-class for the JSP-pages to gain access into the database. This class works as a middle entity between the actual database communicator (class DBAccess) and the JSP page. Since JSP can only communicate with classes that obey the bean model (assuming were using JSTL and EL instead of JSP scriplets, as recommended in JSP 2.0 specification), we need a middle entity like this. This arrangement makes it possible to truly separate the view from the model (see "MVC architecture" and "Java Model 2 architecture").


Constructor & Destructor Documentation

com.forum.nokia.taskmanager.beans.TaskListBean.TaskListBean  ) 
 

Default constructor. Mandatory in a JavaBean.


Member Function Documentation

List com.forum.nokia.taskmanager.beans.TaskListBean.getAllTasks  ) 
 

Gets all tasks for all users.

Returns:
A list of tasks.

List com.forum.nokia.taskmanager.beans.TaskListBean.getUserTasks  ) 
 

Gets tasks for a certain user.

Returns:
A list of tasks.

void com.forum.nokia.taskmanager.beans.TaskListBean.setDatabase DBAccess  database  ) 
 

Setter for the DBAO.

Parameters:
database The DBAO.

void com.forum.nokia.taskmanager.beans.TaskListBean.setTaskId String  task_id  ) 
 

Setter for the task id number, used in marking a task as done.

Parameters:
task_id The id number of the task.

void com.forum.nokia.taskmanager.beans.TaskListBean.setUserId String  user_id  ) 
 

Setter for the user id number, used in getting a specified users tasks.

Parameters:
user_id The id number of the user.


The documentation for this class was generated from the following file:
Generated on Tue Aug 30 14:22:36 2005 for TaskManagerWebUI by  doxygen 1.4.4