001: /*
002: LoaderGenerator - tool for generated xml, sql and doml file needed for Octopus.
003:
004:
005: Copyright (C) 2003 Together
006:
007: This library is free software; you can redistribute it and/or
008: modify it under the terms of the GNU Lesser General Public
009: License as published by the Free Software Foundation; either
010: version 2.1 of the License, or (at your option) any later version.
011:
012: This library is distributed in the hope that it will be useful,
013: but WITHOUT ANY WARRANTY; without even the implied warranty of
014: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: Lesser General Public License for more details.
016:
017: You should have received a copy of the GNU Lesser General Public
018: License along with this library; if not, write to the Free Software
019: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: */
021:
022: package org.webdocwf.util.loader.generator;
023:
024: /**
025: * ImportDefinitionAttributes class stores the value of Import definition tag parameters, which
026: * are needed for creating ImportDefinition.xml file.w2
027: * @author Radoslav Dutina
028: * @version 1.0
029: */
030: public class ImportDefinitionAttributes {
031:
032: private String name = "Table1";
033: private String tableName = "TableName1";
034: private String logMode = "normal";
035: private String objectIDIncrementid = "20";
036:
037: private String[] tagSourceColumnName = { "default" };
038: private String[] tagTargetTableName = { "default" };
039: private String[] tagTargetColumnName = { "default" };
040: private String[] tagTargetTableID = { "default" };
041:
042: private String[] tagColumnType = { "default" };
043: private String[] tagAllowNulls = { "default" };
044: private String[] tagColumnLenght = { "default" };
045:
046: /**
047: * This method sets the value of name parameter.
048: * @param _name is the value of parameter.
049: */
050: public void setName(String _name) {
051: name = _name;
052: }
053:
054: /**
055: * This method read the value of name parameter.
056: * @return value of parameter.
057: */
058: public String getName() {
059: return name;
060: }
061:
062: /**
063: * This method sets the value of tableName parameter.
064: * @param table_Name is the value of parameter.
065: */
066: public void setTableName(String table_Name) {
067: tableName = table_Name;
068: }
069:
070: /**
071: * This method read the value of tableName parameter.
072: * @return value of parameter.
073: */
074: public String getTableName() {
075: return tableName;
076: }
077:
078: /**
079: * This method sets the value of logMode parameter.
080: * @param log_Mode is the value of parameter.
081: */
082: public void setLogMode(String log_Mode) {
083: logMode = log_Mode;
084: }
085:
086: /**
087: * This method read the value of logMode parameter.
088: * @return value of parameter.
089: */
090: public String getLogMode() {
091: return logMode;
092: }
093:
094: /**
095: * This method sets the value of objectIDIncrementid parameter.
096: * @param object_ID_Incrementid is the value of parameter.
097: */
098: public void setObjectIDIncrementid(String object_ID_Incrementid) {
099: objectIDIncrementid = object_ID_Incrementid;
100: }
101:
102: /**
103: * This method read the value of objectIDIncrementid parameter.
104: * @return value of parameter.
105: */
106: public String getObjectIDIncrementid() {
107: return objectIDIncrementid;
108: }
109:
110: /**
111: * This method sets the value of tagSourceColumnName parameter.
112: * @param tag_Source_ColumnName is the value of parameter.
113: */
114: public void setTagSourceColumnName(String[] tag_Source_ColumnName) {
115: tagSourceColumnName = tag_Source_ColumnName;
116: }
117:
118: /**
119: * This method read the value of tagSourceColumnName parameter.
120: * @return value of parameter.
121: */
122: public String[] getTagSourceColumnName() {
123: return tagSourceColumnName;
124: }
125:
126: /**
127: * This method sets the value of tagTargetTableName parameter.
128: * @param tag_Target_TableName is the value of parameter.
129: */
130: public void setTagTargetTableName(String[] tag_Target_TableName) {
131: tagTargetTableName = tag_Target_TableName;
132: }
133:
134: /**
135: * This method read the value of tagTargetTableName parameter.
136: * @return value of parameter.
137: */
138: public String[] getTagTargetTableName() {
139: return tagTargetTableName;
140: }
141:
142: /**
143: * This method sets the value of tagTargetColumnName parameter.
144: * @param tag_Target_ColumnName is the value of parameter.
145: */
146: public void setTagTargetColumnName(String[] tag_Target_ColumnName) {
147: tagTargetColumnName = tag_Target_ColumnName;
148: }
149:
150: /**
151: * This method read the value of tagTargetColumnName parameter.
152: * @return value of parameter.
153: */
154: public String[] getTagTargetColumnName() {
155: return tagTargetColumnName;
156: }
157:
158: /**
159: * This method sets the value of tagTargetTableID parameter.
160: * @param tag_Target_TableID is the value of parameter.
161: */
162: public void setTagTargetTableID(String[] tag_Target_TableID) {
163: tagTargetTableID = tag_Target_TableID;
164: }
165:
166: /**
167: * This method read the value of tagTargetTableID parameter.
168: * @return value of parameter.
169: */
170: public String[] getTagTargetTableID() {
171: return tagTargetTableID;
172: }
173:
174: /**
175: * This method sets the value of tagColumnType parameter.
176: * @param tag_ColumnType is the value of parameter.
177: */
178: public void setTagColumnType(String[] tag_ColumnType) {
179: tagColumnType = tag_ColumnType;
180: }
181:
182: /**
183: * This method read the value of tagColumnType parameter.
184: * @return value of parameter.
185: */
186: public String[] getTagColumnType() {
187: return tagColumnType;
188: }
189:
190: /**
191: * This method sets the value of tagAllowNulls parameter.
192: * @param tag_AllowNulls is the value of parameter.
193: */
194: public void setTagAllowNulls(String[] tag_AllowNulls) {
195: tagAllowNulls = tag_AllowNulls;
196: }
197:
198: /**
199: * This method read the value of tagAllowNulls parameter.
200: * @return value of parameter.
201: */
202: public String[] getTagAllowNulls() {
203: return tagAllowNulls;
204: }
205:
206: /**
207: * This method sets the value of tagColumnLenght parameter.
208: * @param tag_ColumnLenght is the value of parameter.
209: */
210: public void setTagColumnLenght(String[] tag_ColumnLenght) {
211: tagColumnLenght = tag_ColumnLenght;
212: }
213:
214: /**
215: * This method read the value of tagColumnLenght parameter.
216: * @return value of parameter.
217: */
218: public String[] getTagColumnLenght() {
219: return tagColumnLenght;
220: }
221:
222: }
|