1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package jdbcadmin.web.forms;
21
22 import org.apache.struts.action.ActionForm;
23 import org.apache.struts.upload.FormFile;
24
25 /***
26 * Form that contains informations needed to connect the DB.
27 * @struts.form name="connectionForm"
28 * @author Thomas Recloux (trecloux@norsys.fr)
29 */
30 public class ConnectionForm extends ActionForm {
31
32
33 /*** Driver class name */
34 private String driverName;
35 /*** JDBC Url */
36 private String url;
37 /*** User name */
38 private String userName;
39 /*** User password */
40 private String userPassword;
41 /*** JNDI name of the data source */
42 private String jndiName;
43 /*** Datat of the driver jar file */
44 private FormFile driverJar;
45
46
47
48 /***
49 * @return Returns the driverJar.
50 */
51 public FormFile getDriverJar() {
52 return driverJar;
53 }
54 /***
55 * @param aDriverJar The driverJar to set.
56 */
57 public void setDriverJar(FormFile aDriverJar) {
58 driverJar = aDriverJar;
59 }
60 /***
61 * @return Returns the driverName.
62 */
63 public String getDriverName() {
64 return driverName;
65 }
66 /***
67 * @param aDriverName The driverName to set.
68 */
69 public void setDriverName(String aDriverName) {
70 driverName = aDriverName;
71 }
72 /***
73 * @return Returns the jndiName.
74 */
75 public String getJndiName() {
76 return jndiName;
77 }
78 /***
79 * @param aJndiName The jndiName to set.
80 */
81 public void setJndiName(String aJndiName) {
82 jndiName = aJndiName;
83 }
84 /***
85 * @return Returns the url.
86 */
87 public String getUrl() {
88 return url;
89 }
90 /***
91 * @param aUrl The url to set.
92 */
93 public void setUrl(String aUrl) {
94 url = aUrl;
95 }
96 /***
97 * @return Returns the userName.
98 */
99 public String getUserName() {
100 return userName;
101 }
102 /***
103 * @param aUserName The userName to set.
104 */
105 public void setUserName(String aUserName) {
106 userName = aUserName;
107 }
108 /***
109 * @return Returns the userPassword.
110 */
111 public String getUserPassword() {
112 return userPassword;
113 }
114 /***
115 * @param aUserPassword The userPassword to set.
116 */
117 public void setUserPassword(String aUserPassword) {
118 userPassword = aUserPassword;
119 }
120 }