1 29 30 package com.caucho.amber.cfg; 31 32 import javax.persistence.EnumType; 33 import javax.persistence.FetchType; 34 import javax.persistence.TemporalType; 35 36 37 40 public class BasicConfig { 41 42 private String _name; 44 private FetchType _fetch; 45 private boolean _optional; 46 47 private ColumnConfig _column; 49 private String _lob; 51 private TemporalType _temporal; 52 private EnumType _enumerated; 53 54 57 public String getName() 58 { 59 return _name; 60 } 61 62 65 public void setName(String name) 66 { 67 _name = name; 68 } 69 70 73 public FetchType getFetch() 74 { 75 return _fetch; 76 } 77 78 81 public void setFetch(String fetch) 82 { 83 _fetch = FetchType.valueOf(fetch); 84 } 85 86 89 public boolean getOptional() 90 { 91 return _optional; 92 } 93 94 97 public void setOptional(boolean optional) 98 { 99 _optional = optional; 100 } 101 102 105 public ColumnConfig getColumn() 106 { 107 return _column; 108 } 109 110 113 public void setColumn(ColumnConfig column) 114 { 115 _column = column; 116 } 117 118 121 public String getLob() 122 { 123 return _lob; 124 } 125 126 129 public void setLob(String lob) 130 { 131 _lob = lob; 132 } 133 134 137 public TemporalType getTemporal() 138 { 139 return _temporal; 140 } 141 142 145 public void setTemporal(String temporal) 146 { 147 _temporal = TemporalType.valueOf(temporal); 148 } 149 150 153 public EnumType getEnumerated() 154 { 155 return _enumerated; 156 } 157 158 161 public void setEnumerated(String enumerated) 162 { 163 _enumerated = EnumType.valueOf(enumerated); 164 } 165 } 166 | Popular Tags |