KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > webdocwf > util > loader > wizard > OctopusLoaderData


1 /*
2      LoaderGenerator - tool for generated xml, sql and doml file needed for Octopus.
3     Copyright (C) 2003 Together
4     This library is free software; you can redistribute it and/or
5     modify it under the terms of the GNU Lesser General Public
6     License as published by the Free Software Foundation; either
7     version 2.1 of the License, or (at your option) any later version.
8     This library is distributed in the hope that it will be useful,
9     but WITHOUT ANY WARRANTY; without even the implied warranty of
10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11     Lesser General Public License for more details.
12     You should have received a copy of the GNU Lesser General Public
13     License along with this library; if not, write to the Free Software
14     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15  */

16
17 package org.webdocwf.util.loader.wizard;
18
19
20 /**
21  * LoaderOctopusEntry class set input parameters for Octopus application
22  * @author Radoslav Dutina
23  * @version 1.0
24  */

25 public class OctopusLoaderData {
26
27   private static String JavaDoc[] logModes = {
28       "none", "normal", "full"};
29   private String JavaDoc logMode = "";
30   private String JavaDoc restartIndicator = "";
31   private String JavaDoc userId = "";
32   private String JavaDoc variables = "";
33   private String JavaDoc logFileDirectory = "";
34   private String JavaDoc logFileName = "";
35   private String JavaDoc vendorConfFile = "";
36   private String JavaDoc onErrorContinue = "";
37   private String JavaDoc additionalPath = "";
38   private String JavaDoc commitCount = "";
39   private String JavaDoc returnCode = "";
40   private String JavaDoc pathToXmlFile = "";
41   private String JavaDoc includeTables = "";
42   private String JavaDoc confJarStructure = "";
43
44
45   /**
46      * This method set value of confJarStructure parameter
47      * @param conf_jar_structure is value of parameter
48      */

49     public void setConfJarStructure(String JavaDoc conf_jar_structure){
50       confJarStructure=conf_jar_structure;
51     }
52
53     /**
54      * This methos read value of confJarStructure parameter
55      * @return value of parameter
56      */

57     public String JavaDoc getConfJarStructure(){
58       return confJarStructure;
59     }
60
61
62   /**
63    * This method set value of includeTables parameter
64    * @param include_Tables is value of parameter
65    */

66   public void setIncludeTables(String JavaDoc include_Tables) {
67     this.includeTables = include_Tables;
68   }
69
70   /**
71    * This method read value of includeTables parameter
72    * @return value of parameter
73    */

74   public String JavaDoc getIncludeTables() {
75     return this.includeTables;
76   }
77
78   /**
79    * Empty constructor of LoaderOctopusEntry class
80    */

81   public OctopusLoaderData() {
82   }
83
84   /**
85    * This mehod set value of logMode parameter
86    * @param log_Mode is value of parameter
87    */

88   public void setLogMode(String JavaDoc log_Mode) {
89     this.logMode = log_Mode;
90   }
91
92   /**
93    * This method read value of logMod parameter
94    * @return value of parameter
95    */

96   public static String JavaDoc[] getLogModes() {
97     return logModes;
98   }
99
100   /**
101    * This method read value of logMods parameter
102    * @return value of parameter
103    */

104   public String JavaDoc getLogMode() {
105     return logMode;
106   }
107
108   /**
109    * This method set vaule of restartIndicator parameter
110    * @param restart_Indicator is value of parameter
111    */

112   public void setRestartIndicator(String JavaDoc restart_Indicator) {
113     this.restartIndicator = restart_Indicator;
114   }
115
116   /**
117    * This method read value of restartIndicator parameter
118    * @return value of parameter
119    */

120   public String JavaDoc getRestartIndicator() {
121     return this.restartIndicator;
122   }
123
124   /**
125    * This method set value of parameter
126    * @param user_Id is value of parameter
127    */

128   public void setUserId(String JavaDoc user_Id) {
129     this.userId = user_Id;
130   }
131
132   /**
133    * This method read value of userId parameter
134    * @return value of parameter
135    */

136   public String JavaDoc getUserId() {
137     return this.userId;
138   }
139
140   /**
141    * This method set value of variables parameter
142    * @param _variables is value of parameter
143    */

144   public void setVariables(String JavaDoc _variables) {
145     this.variables = _variables;
146   }
147
148   /**
149    * This method read value of variables parameter
150    * @return value of parameter
151    */

152   public String JavaDoc getVariables() {
153     return this.variables;
154   }
155
156   /**
157    * This method set value of logFileDirectory parameter
158    * @param log_FileDirectory is value of parameter
159    */

160   public void setLogFileDir(String JavaDoc log_FileDirectory) {
161     this.logFileDirectory = log_FileDirectory;
162   }
163
164   /**
165    * This method read value of logFileDirectory parameter
166    * @return value of parameter
167    */

168   public String JavaDoc getLogFileDir() {
169     return this.logFileDirectory;
170   }
171
172   /**
173    * This method set value of logFileName parameter
174    * @param log_FileName is value of parameter
175    */

176   public void setLogFileName(String JavaDoc log_FileName) {
177     this.logFileName = log_FileName;
178   }
179
180   /**
181    * This method read value of logFileName parameter
182    * @return value of parameter
183    */

184   public String JavaDoc getLogFileName() {
185     return this.logFileName;
186   }
187
188   /**
189    * This method set value of vendorConfFile parameter
190    * @param vendor_conf is value of parameter
191    */

192   public void setVendorConf(String JavaDoc vendor_conf) {
193     this.vendorConfFile = vendor_conf;
194   }
195
196   /**
197    * This method read value of vendorConfFile parameter
198    * @return value of parameter
199    */

200   public String JavaDoc getVendorConf() {
201     return this.vendorConfFile;
202   }
203
204   /**
205    * This method set value of onErrorContinue parameter
206    * @param on_errorcontinue is value of parameter
207    */

208   public void setOnErrorCon(String JavaDoc on_errorcontinue) {
209     this.onErrorContinue = on_errorcontinue;
210   }
211
212   /**
213    * This method read value of onErrorContinue parameter
214    * @return value of parameter
215    */

216   public String JavaDoc getOnErrorCon() {
217     return this.onErrorContinue;
218   }
219
220   /**
221    * This method set value of additionalPath parameter
222    * @param additionl_Path is value of parameter
223    */

224   public void setAdditionalPaths(String JavaDoc additionl_Path) {
225     this.additionalPath = additionl_Path;
226   }
227
228   /**
229    * This method read value of additionalPath parameter
230    * @return value of parameter
231    */

232   public String JavaDoc getAdditionalPaths() {
233     return this.additionalPath;
234   }
235
236   /**
237    * This method set value of commitCount parameter
238    * @param commit_Count is value of parameter
239    */

240   public void setCommitCount(String JavaDoc commit_Count) {
241     this.commitCount = commit_Count;
242   }
243
244   /**
245    * This method read value of commitCount parameter
246    * @return value of parameter
247    */

248   public String JavaDoc getCommitCount() {
249     return this.commitCount;
250   }
251
252   /**
253    * This method set value of returnCode parameter
254    * @param return_Code is value of parameter
255    */

256   public void setReturnCode(String JavaDoc return_Code) {
257     this.returnCode = return_Code;
258   }
259
260   /**
261    * This method read value of returnCode parameter
262    * @return value of parameter
263    */

264   public String JavaDoc getReturnCode() {
265     return this.returnCode;
266   }
267
268   /**
269    * This method set value of pathToXmlFile parameter
270    * @param path_to_xml is value of parameter
271    */

272   public void setPathToXml(String JavaDoc path_to_xml) {
273     this.pathToXmlFile = path_to_xml;
274   }
275
276   /**
277    * This method read value of pathToXmlFile parameter
278    * @return value of parameter
279    */

280   public String JavaDoc getPathToXml() {
281     return this.pathToXmlFile;
282   }
283   
284   public String JavaDoc toConfString() {
285     String JavaDoc retVal = "";
286     retVal += "\nLoader.AdditionalPaths="+this.getAdditionalPaths();
287     retVal += "\nLoader.CommitCount="+this.getCommitCount();
288     retVal += "\nLoader.ConfJarStructure="+this.getConfJarStructure();
289     retVal += "\nLoader.IncludeTables="+this.getIncludeTables();
290     retVal += "\nLoader.LogFileDir="+this.getLogFileDir();
291     retVal += "\nLoader.LogFileName="+this.getLogFileName();
292     retVal += "\nLoader.LogMode="+this.getLogMode();
293     retVal += "\nLoader.ErrorConntinue="+this.getOnErrorCon();
294     retVal += "\nLoader.PathToXml="+this.getPathToXml();
295     retVal += "\nLoader.RestartIndicator="+this.getRestartIndicator();
296     retVal += "\nLoader.ReturnCode="+this.getReturnCode();
297     retVal += "\nLoader.UserId="+this.getUserId();
298     retVal += "\nLoader.Variables="+this.getVariables();
299     retVal += "\nLoader.VendorConf="+this.getVendorConf();
300     return retVal;
301   }
302
303 }
304
Popular Tags