KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > webdocwf > util > loader > generator > LoaderJobAttributes


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

22
23 package org.webdocwf.util.loader.generator;
24
25 /**
26  * LoaderJobAttributes class stores the parameters of loadJob tag for LoaderJob.xml file.
27  * @author Radoslav Dutina
28  * @version 1.0
29  */

30 public class LoaderJobAttributes {
31
32   public final String JavaDoc loaderJob = "loaderJob";
33   private String JavaDoc logMode="none";
34   private String JavaDoc objectIDIncrement="1";
35   private String JavaDoc objectIDTableName="objectid";
36   private String JavaDoc objectIDColumnName="next";
37
38   /**
39    * This method sets the value of logMode parameter.
40    * @param log_mode is value of parameter.
41    */

42   public void setLogMode(String JavaDoc log_mode){
43     logMode=log_mode;
44   }
45
46   /**
47    * This method read the value of logMode parameter.
48    * @return value of parameter.
49    */

50   public String JavaDoc getLogMode(){
51     return logMode;
52   }
53
54   /**
55    * This method sets the value of objectIDIncrement parameter.
56    * @param object_ID_Increment is value of parameter.
57    */

58   public void setObjectIDIncrement(String JavaDoc object_ID_Increment){
59     objectIDIncrement=object_ID_Increment;
60   }
61
62   /**
63    * This method read the value of objectIDIncrement parameter.
64    * @return value of parameter.
65    */

66   public String JavaDoc getObjectIDIncrement(){
67     return objectIDIncrement;
68   }
69
70   /**
71    * This method sets the value of objectIDTableName attribute.
72    * @param object_ID_TableName is value of attribute.
73    */

74   public void setObjectIDTableName(String JavaDoc object_ID_TableName){
75     objectIDTableName=object_ID_TableName;
76   }
77
78   /**
79    * This method read the value of objectIDTableName attribute.
80    * @return value of attribute.
81    */

82   public String JavaDoc getObjectIDTableName(){
83     return objectIDTableName;
84   }
85
86   /**
87    * This method sets the value of objectIDColumnName parameter.
88    * @param object_ID_ColumnName is value of parameter.
89    */

90   public void setObjectIDColumnName(String JavaDoc object_ID_ColumnName){
91     objectIDColumnName=object_ID_ColumnName;
92   }
93
94   /**
95    * This method read the value of objectIDColumnName parameter.
96    * @return value of parameter.
97    */

98   public String JavaDoc getObjectIDColumnName(){
99     return objectIDColumnName;
100   }
101
102 }
Popular Tags