View Javadoc

1   /* ==============================================================================
2    *   JDBCAdmin, data management software.
3    *   Copyright (C) 2005  Norsys S.A
4    *
5    *   This library is free software; you can redistribute it and/or
6    *   modify it under the terms of the GNU Lesser General Public
7    *   License as published by the Free Software Foundation; either
8    *   version 2.1 of the License, or (at your option) any later version.
9    *
10   *   This library is distributed in the hope that it will be useful,
11   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   *   Lesser General Public License for more details.
14   *
15   *   You should have received a copy of the GNU Lesser General Public
16   *   License along with this library; if not, write to the Free Software
17   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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      /* ------------------------------------------ Attributess */
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      /* ------------------------------------------ Accessors */
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 }