1 2 22 23 package org.webdocwf.util.loader.generator; 24 25 import org.webdocwf.util.loader.logging.Logger; 26 import org.webdocwf.util.loader.logging.StandardLogger; 27 28 35 public class TableAttributes { 36 37 private String tableName = "Table1"; 38 private String tableID = "0"; 39 private String insert = "true"; 40 private String tableMode = "Query"; 41 private String oidLogic = "true"; 42 private Logger logger; 43 44 49 public TableAttributes(String tableName, String valueMode) { 50 setLogger(); 51 this.logger.write("full", "TableAttributes is started."); 52 this.tableName = tableName; 53 this.tableID = "0"; 54 this.insert = "true"; 55 this.tableMode = "Query"; 56 if (valueMode.equalsIgnoreCase("Overwrite")) { 57 this.oidLogic = "false"; 58 } else { 59 this.oidLogic = "true"; 60 } 61 this.logger.write("full", "TableAttributes is finished."); 62 } 63 64 68 public void setTableName(String table_Name) { 69 tableName = table_Name; 70 } 71 72 76 public String getTableName() { 77 return tableName; 78 } 79 80 84 public void setTableID(String table_ID) { 85 tableID = table_ID; 86 } 87 88 92 public String getTableID() { 93 return tableID; 94 } 95 96 100 public void setInsert(String _insert) { 101 insert = _insert; 102 } 103 104 108 public String getInsert() { 109 return insert; 110 } 111 112 116 public void setTableMode(String table_Mode) { 117 tableMode = table_Mode; 118 } 119 120 124 public String getTableMode() { 125 return tableMode; 126 } 127 128 132 public void setOidLogic(String oid_Logic) { 133 oidLogic = oid_Logic; 134 } 135 136 140 public String getOidLogic() { 141 return oidLogic; 142 } 143 147 private void setLogger() { 148 this.logger = StandardLogger.getCentralLogger(); 149 } 150 } | Popular Tags |