1 29 30 package com.caucho.amber.cfg; 31 32 35 abstract public class AbstractColumnConfig { 36 37 private String _name; 39 private boolean _isUnique; 40 private boolean _isNullable; 41 private boolean _isInsertable; 42 private boolean _isUpdatable; 43 private String _columnDefinition; 44 private String _table; 45 46 49 public String getName() 50 { 51 return _name; 52 } 53 54 57 public void setName(String name) 58 { 59 _name = name; 60 } 61 62 public boolean getUnique() 63 { 64 return _isUnique; 65 } 66 67 public boolean getNullable() 68 { 69 return _isNullable; 70 } 71 72 public boolean getInsertable() 73 { 74 return _isInsertable; 75 } 76 77 public boolean getUpdatable() 78 { 79 return _isUpdatable; 80 } 81 82 public void setUnique(boolean isUnique) 83 { 84 _isUnique = isUnique; 85 } 86 87 public void setNullable(boolean isNullable) 88 { 89 _isNullable = isNullable; 90 } 91 92 public void setInsertable(boolean isInsertable) 93 { 94 _isInsertable = isInsertable; 95 } 96 97 public void setUpdatable(boolean isUpdatable) 98 { 99 _isUpdatable = isUpdatable; 100 } 101 102 105 public String getColumnDefinition() 106 { 107 return _columnDefinition; 108 } 109 110 113 public void setColumnDefinition(String columnDefinition) 114 { 115 _columnDefinition = columnDefinition; 116 } 117 118 121 public String getTable() 122 { 123 return _table; 124 } 125 126 129 public void setTable(String table) 130 { 131 _table = table; 132 } 133 } 134 | Popular Tags |