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 |
Definition at line 7 of file Form.java.
|
||||||||||||||||||||
|
Definition at line 18 of file Form.java.
|
|
|
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 }
|
|
|
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 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4