Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Form Class Reference

List of all members.

Public Member Functions

 Form (HttpServletRequest req, HttpServletResponse res, PrintWriter pw, ConnectionFactory cf)
Connection connectDb ()
void disconnectDb ()

Public Attributes

String name
int method
HttpServletRequest req
HttpServletResponse res
PrintWriter pw
ConnectionFactory cf
Connection conn

Detailed Description

Definition at line 7 of file Form.java.


Constructor & Destructor Documentation

Form::Form HttpServletRequest  req,
HttpServletResponse  res,
PrintWriter  pw,
ConnectionFactory  cf
[inline]
 

Definition at line 18 of file Form.java.

00019         {
00020           this.req = req;
00021           this.res = res;
00022           this.pw = pw;
00023           this.cf = cf;
00024         }


Member Function Documentation

Connection Form::connectDb  )  [inline]
 

Definition at line 26 of file Form.java.

References cf, conn, ConnectionFactory::connect(), and pw.

00027   {
00028     try
00029     {
00030       if (conn == null) conn = cf.connect();
00031     }
00032     catch (SQLException e)
00033     {
00034       Widget.ShowException(e,pw);
00035     }
00036     catch (ClassNotFoundException e)
00037     {
00038       Widget.ShowException(e,pw);
00039     }
00040     return conn; // convenience
00041   }

void Form::disconnectDb  )  [inline]
 

Definition at line 43 of file Form.java.

References cf, conn, ConnectionFactory::disconnect(), and pw.

00044   {
00045     try
00046     {
00047       cf.disconnect(conn);
00048       conn = null;
00049     }
00050     catch (SQLException e)
00051     {
00052       Widget.ShowException(e,pw);
00053     }
00054   }


Member Data Documentation

ConnectionFactory Form::cf
 

Definition at line 15 of file Form.java.

Connection Form::conn
 

Definition at line 16 of file Form.java.

int Form::method
 

Definition at line 10 of file Form.java.

String Form::name
 

Definition at line 9 of file Form.java.

PrintWriter Form::pw
 

Definition at line 14 of file Form.java.

HttpServletRequest Form::req
 

Definition at line 12 of file Form.java.

HttpServletResponse Form::res
 

Definition at line 13 of file Form.java.


The documentation for this class was generated from the following file:
Generated on Mon Mar 6 23:34:35 2006 by  doxygen 1.4.4