1 29 30 package com.caucho.amber.cfg; 31 32 import java.util.ArrayList ; 33 34 35 38 public class TableGeneratorConfig extends AbstractGeneratorConfig { 39 40 private String _table; 42 private String _catalog; 43 private String _schema; 44 private String _pkColumnName; 45 private String _valueColumnName; 46 private String _pkColumnValue; 47 48 private ArrayList <UniqueConstraintConfig> _uniqueConstraintList 50 = new ArrayList <UniqueConstraintConfig>(); 51 52 public String getTable() 53 { 54 return _table; 55 } 56 57 public void setTable(String table) 58 { 59 _table = table; 60 } 61 62 public String getCatalog() 63 { 64 return _catalog; 65 } 66 67 public void setCatalog(String catalog) 68 { 69 _catalog = catalog; 70 } 71 72 public String getSchema() 73 { 74 return _schema; 75 } 76 77 public void setSchema(String schema) 78 { 79 _schema = schema; 80 } 81 82 public String getPkColumnName(String pkColumnName) 83 { 84 return _pkColumnName; 85 } 86 87 public void setPkColumnName(String pkColumnName) 88 { 89 _pkColumnName = pkColumnName; 90 } 91 92 public String getValueColumnName(String valueColumnName) 93 { 94 return _valueColumnName; 95 } 96 97 public void setValueColumnName(String valueColumnName) 98 { 99 _valueColumnName = valueColumnName; 100 } 101 102 public String getPkColumnValue(String pkColumnValue) 103 { 104 return _pkColumnValue; 105 } 106 107 public void setPkColumnValue(String pkColumnValue) 108 { 109 _pkColumnValue = pkColumnValue; 110 } 111 112 public void addUniqueConstraint(UniqueConstraintConfig uniqueConstraint) 113 { 114 _uniqueConstraintList.add(uniqueConstraint); 115 } 116 117 public ArrayList <UniqueConstraintConfig> getUniqueConstraintList() 118 { 119 return _uniqueConstraintList; 120 } 121 } 122 | Popular Tags |