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[] logModes = {
28 "none", "normal", "full"};
29 private String logMode = "";
30 private String restartIndicator = "";
31 private String userId = "";
32 private String variables = "";
33 private String logFileDirectory = "";
34 private String logFileName = "";
35 private String vendorConfFile = "";
36 private String onErrorContinue = "";
37 private String additionalPath = "";
38 private String commitCount = "";
39 private String returnCode = "";
40 private String pathToXmlFile = "";
41 private String includeTables = "";
42 private String 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 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 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 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 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 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[] getLogModes() {
97 return logModes;
98 }
99
100 /***
101 * This method read value of logMods parameter
102 * @return value of parameter
103 */
104 public String 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 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 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 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 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 _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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 getPathToXml() {
281 return this.pathToXmlFile;
282 }
283
284 public String toConfString() {
285 String 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 }
This page was automatically generated by Maven