001: /*
002: LoaderGenerator - tool for generated xml, sql and doml file needed for Octopus.
003: Copyright (C) 2003 Together
004: This library is free software; you can redistribute it and/or
005: modify it under the terms of the GNU Lesser General Public
006: License as published by the Free Software Foundation; either
007: version 2.1 of the License, or (at your option) any later version.
008: This library is distributed in the hope that it will be useful,
009: but WITHOUT ANY WARRANTY; without even the implied warranty of
010: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011: Lesser General Public License for more details.
012: You should have received a copy of the GNU Lesser General Public
013: License along with this library; if not, write to the Free Software
014: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
015: */
016:
017: package org.webdocwf.util.loader.wizard;
018:
019: /**
020: * LoaderOctopusEntry class set input parameters for Octopus application
021: * @author Radoslav Dutina
022: * @version 1.0
023: */
024: public class OctopusLoaderData {
025:
026: private static String[] logModes = { "none", "normal", "full" };
027: private String logMode = "";
028: private String restartIndicator = "";
029: private String userId = "";
030: private String variables = "";
031: private String logFileDirectory = "";
032: private String logFileName = "";
033: private String vendorConfFile = "";
034: private String onErrorContinue = "";
035: private String additionalPath = "";
036: private String commitCount = "";
037: private String returnCode = "";
038: private String pathToXmlFile = "";
039: private String includeTables = "";
040: private String confJarStructure = "";
041:
042: /**
043: * This method set value of confJarStructure parameter
044: * @param conf_jar_structure is value of parameter
045: */
046: public void setConfJarStructure(String conf_jar_structure) {
047: confJarStructure = conf_jar_structure;
048: }
049:
050: /**
051: * This methos read value of confJarStructure parameter
052: * @return value of parameter
053: */
054: public String getConfJarStructure() {
055: return confJarStructure;
056: }
057:
058: /**
059: * This method set value of includeTables parameter
060: * @param include_Tables is value of parameter
061: */
062: public void setIncludeTables(String include_Tables) {
063: this .includeTables = include_Tables;
064: }
065:
066: /**
067: * This method read value of includeTables parameter
068: * @return value of parameter
069: */
070: public String getIncludeTables() {
071: return this .includeTables;
072: }
073:
074: /**
075: * Empty constructor of LoaderOctopusEntry class
076: */
077: public OctopusLoaderData() {
078: }
079:
080: /**
081: * This mehod set value of logMode parameter
082: * @param log_Mode is value of parameter
083: */
084: public void setLogMode(String log_Mode) {
085: this .logMode = log_Mode;
086: }
087:
088: /**
089: * This method read value of logMod parameter
090: * @return value of parameter
091: */
092: public static String[] getLogModes() {
093: return logModes;
094: }
095:
096: /**
097: * This method read value of logMods parameter
098: * @return value of parameter
099: */
100: public String getLogMode() {
101: return logMode;
102: }
103:
104: /**
105: * This method set vaule of restartIndicator parameter
106: * @param restart_Indicator is value of parameter
107: */
108: public void setRestartIndicator(String restart_Indicator) {
109: this .restartIndicator = restart_Indicator;
110: }
111:
112: /**
113: * This method read value of restartIndicator parameter
114: * @return value of parameter
115: */
116: public String getRestartIndicator() {
117: return this .restartIndicator;
118: }
119:
120: /**
121: * This method set value of parameter
122: * @param user_Id is value of parameter
123: */
124: public void setUserId(String user_Id) {
125: this .userId = user_Id;
126: }
127:
128: /**
129: * This method read value of userId parameter
130: * @return value of parameter
131: */
132: public String getUserId() {
133: return this .userId;
134: }
135:
136: /**
137: * This method set value of variables parameter
138: * @param _variables is value of parameter
139: */
140: public void setVariables(String _variables) {
141: this .variables = _variables;
142: }
143:
144: /**
145: * This method read value of variables parameter
146: * @return value of parameter
147: */
148: public String getVariables() {
149: return this .variables;
150: }
151:
152: /**
153: * This method set value of logFileDirectory parameter
154: * @param log_FileDirectory is value of parameter
155: */
156: public void setLogFileDir(String log_FileDirectory) {
157: this .logFileDirectory = log_FileDirectory;
158: }
159:
160: /**
161: * This method read value of logFileDirectory parameter
162: * @return value of parameter
163: */
164: public String getLogFileDir() {
165: return this .logFileDirectory;
166: }
167:
168: /**
169: * This method set value of logFileName parameter
170: * @param log_FileName is value of parameter
171: */
172: public void setLogFileName(String log_FileName) {
173: this .logFileName = log_FileName;
174: }
175:
176: /**
177: * This method read value of logFileName parameter
178: * @return value of parameter
179: */
180: public String getLogFileName() {
181: return this .logFileName;
182: }
183:
184: /**
185: * This method set value of vendorConfFile parameter
186: * @param vendor_conf is value of parameter
187: */
188: public void setVendorConf(String vendor_conf) {
189: this .vendorConfFile = vendor_conf;
190: }
191:
192: /**
193: * This method read value of vendorConfFile parameter
194: * @return value of parameter
195: */
196: public String getVendorConf() {
197: return this .vendorConfFile;
198: }
199:
200: /**
201: * This method set value of onErrorContinue parameter
202: * @param on_errorcontinue is value of parameter
203: */
204: public void setOnErrorCon(String on_errorcontinue) {
205: this .onErrorContinue = on_errorcontinue;
206: }
207:
208: /**
209: * This method read value of onErrorContinue parameter
210: * @return value of parameter
211: */
212: public String getOnErrorCon() {
213: return this .onErrorContinue;
214: }
215:
216: /**
217: * This method set value of additionalPath parameter
218: * @param additionl_Path is value of parameter
219: */
220: public void setAdditionalPaths(String additionl_Path) {
221: this .additionalPath = additionl_Path;
222: }
223:
224: /**
225: * This method read value of additionalPath parameter
226: * @return value of parameter
227: */
228: public String getAdditionalPaths() {
229: return this .additionalPath;
230: }
231:
232: /**
233: * This method set value of commitCount parameter
234: * @param commit_Count is value of parameter
235: */
236: public void setCommitCount(String commit_Count) {
237: this .commitCount = commit_Count;
238: }
239:
240: /**
241: * This method read value of commitCount parameter
242: * @return value of parameter
243: */
244: public String getCommitCount() {
245: return this .commitCount;
246: }
247:
248: /**
249: * This method set value of returnCode parameter
250: * @param return_Code is value of parameter
251: */
252: public void setReturnCode(String return_Code) {
253: this .returnCode = return_Code;
254: }
255:
256: /**
257: * This method read value of returnCode parameter
258: * @return value of parameter
259: */
260: public String getReturnCode() {
261: return this .returnCode;
262: }
263:
264: /**
265: * This method set value of pathToXmlFile parameter
266: * @param path_to_xml is value of parameter
267: */
268: public void setPathToXml(String path_to_xml) {
269: this .pathToXmlFile = path_to_xml;
270: }
271:
272: /**
273: * This method read value of pathToXmlFile parameter
274: * @return value of parameter
275: */
276: public String getPathToXml() {
277: return this .pathToXmlFile;
278: }
279:
280: public String toConfString() {
281: String retVal = "";
282: retVal += "\nLoader.AdditionalPaths="
283: + this .getAdditionalPaths();
284: retVal += "\nLoader.CommitCount=" + this .getCommitCount();
285: retVal += "\nLoader.ConfJarStructure="
286: + this .getConfJarStructure();
287: retVal += "\nLoader.IncludeTables=" + this .getIncludeTables();
288: retVal += "\nLoader.LogFileDir=" + this .getLogFileDir();
289: retVal += "\nLoader.LogFileName=" + this .getLogFileName();
290: retVal += "\nLoader.LogMode=" + this .getLogMode();
291: retVal += "\nLoader.ErrorConntinue=" + this .getOnErrorCon();
292: retVal += "\nLoader.PathToXml=" + this .getPathToXml();
293: retVal += "\nLoader.RestartIndicator="
294: + this .getRestartIndicator();
295: retVal += "\nLoader.ReturnCode=" + this .getReturnCode();
296: retVal += "\nLoader.UserId=" + this .getUserId();
297: retVal += "\nLoader.Variables=" + this .getVariables();
298: retVal += "\nLoader.VendorConf=" + this.getVendorConf();
299: return retVal;
300: }
301:
302: }
|