001: // $Id: AllTypes.java 7 2007-08-17 19:32:18Z jcamaia $
002:
003: package net.sf.persist.tests.mysql;
004:
005: import net.sf.persist.annotations.Column;
006:
007: public class AllTypes {
008:
009: private long id;
010:
011: @Column(autoGenerated=true)
012: public long getId() {
013: return id;
014: }
015:
016: public void setId(long id) {
017: this .id = id;
018: }
019:
020: // numeric
021: private boolean bitCol;
022: private int tinyintCol;
023: private boolean booleanCol;
024: private int smallintCol;
025: private long mediumintCol;
026: private long intCol;
027: private long bigintCol;
028: private float floatCol;
029: private double doubleCol;
030: private double decimalCol;
031:
032: public boolean getBitCol() {
033: return bitCol;
034: }
035:
036: public void setBitCol(boolean bitCol) {
037: this .bitCol = bitCol;
038: }
039:
040: public int getTinyintCol() {
041: return tinyintCol;
042: }
043:
044: public void setTinyintCol(int tinyintCol) {
045: this .tinyintCol = tinyintCol;
046: }
047:
048: public boolean getBooleanCol() {
049: return booleanCol;
050: }
051:
052: public void setBooleanCol(boolean booleanCol) {
053: this .booleanCol = booleanCol;
054: }
055:
056: public int getSmallintCol() {
057: return smallintCol;
058: }
059:
060: public void setSmallintCol(int smallintCol) {
061: this .smallintCol = smallintCol;
062: }
063:
064: public long getMediumintCol() {
065: return mediumintCol;
066: }
067:
068: public void setMediumintCol(long mediumintCol) {
069: this .mediumintCol = mediumintCol;
070: }
071:
072: public long getIntCol() {
073: return intCol;
074: }
075:
076: public void setIntCol(long intCol) {
077: this .intCol = intCol;
078: }
079:
080: public long getBigintCol() {
081: return bigintCol;
082: }
083:
084: public void setBigintCol(long bigintCol) {
085: this .bigintCol = bigintCol;
086: }
087:
088: public float getFloatCol() {
089: return floatCol;
090: }
091:
092: public void setFloatCol(float floatCol) {
093: this .floatCol = floatCol;
094: }
095:
096: public double getDoubleCol() {
097: return doubleCol;
098: }
099:
100: public void setDoubleCol(double doubleCol) {
101: this .doubleCol = doubleCol;
102: }
103:
104: public double getDecimalCol() {
105: return decimalCol;
106: }
107:
108: public void setDecimalCol(double decimalCol) {
109: this .decimalCol = decimalCol;
110: }
111:
112: // datetime
113: private java.sql.Date dateCol;
114: private java.sql.Timestamp datetimeCol;
115: private java.sql.Timestamp timestampCol;
116: private java.sql.Time timeCol;
117: private short year2Col;
118: private short year4Col;
119:
120: public java.sql.Date getDateCol() {
121: return dateCol;
122: }
123:
124: public void setDateCol(java.sql.Date dateCol) {
125: this .dateCol = dateCol;
126: }
127:
128: public java.sql.Timestamp getDatetimeCol() {
129: return datetimeCol;
130: }
131:
132: public void setDatetimeCol(java.sql.Timestamp datetimeCol) {
133: this .datetimeCol = datetimeCol;
134: }
135:
136: public java.sql.Timestamp getTimestampCol() {
137: return timestampCol;
138: }
139:
140: public void setTimestampCol(java.sql.Timestamp timestampCol) {
141: this .timestampCol = timestampCol;
142: }
143:
144: public java.sql.Time getTimeCol() {
145: return timeCol;
146: }
147:
148: public void setTimeCol(java.sql.Time timeCol) {
149: this .timeCol = timeCol;
150: }
151:
152: public short getYear2Col() {
153: return year2Col;
154: }
155:
156: public void setYear2Col(short year2Col) {
157: this .year2Col = year2Col;
158: }
159:
160: public short getYear4Col() {
161: return year4Col;
162: }
163:
164: public void setYear4Col(short year4Col) {
165: this .year4Col = year4Col;
166: }
167:
168: // string
169: private String charCol;
170: private String varcharCol;
171: private String tinytextCol;
172: private String textCol;
173: private String mediumtextCol;
174: private String longtextCol;
175: private String enumCol;
176: private String setCol;
177:
178: public String getCharCol() {
179: return charCol;
180: }
181:
182: public void setCharCol(String charCol) {
183: this .charCol = charCol;
184: }
185:
186: public String getVarcharCol() {
187: return varcharCol;
188: }
189:
190: public void setVarcharCol(String varcharCol) {
191: this .varcharCol = varcharCol;
192: }
193:
194: public String getTinytextCol() {
195: return tinytextCol;
196: }
197:
198: public void setTinytextCol(String tinytextCol) {
199: this .tinytextCol = tinytextCol;
200: }
201:
202: public String getTextCol() {
203: return textCol;
204: }
205:
206: public void setTextCol(String textCol) {
207: this .textCol = textCol;
208: }
209:
210: public String getMediumtextCol() {
211: return mediumtextCol;
212: }
213:
214: public void setMediumtextCol(String mediumtextCol) {
215: this .mediumtextCol = mediumtextCol;
216: }
217:
218: public String getLongtextCol() {
219: return longtextCol;
220: }
221:
222: public void setLongtextCol(String longtextCol) {
223: this .longtextCol = longtextCol;
224: }
225:
226: public String getEnumCol() {
227: return enumCol;
228: }
229:
230: public void setEnumCol(String enumCol) {
231: this .enumCol = enumCol;
232: }
233:
234: public String getSetCol() {
235: return setCol;
236: }
237:
238: public void setSetCol(String setCol) {
239: this .setCol = setCol;
240: }
241:
242: // binary
243:
244: private byte[] binaryCol;
245: private byte[] varbinaryCol;
246: private byte[] tinyblobCol;
247: private byte[] blobCol;
248: private byte[] mediumblobCol;
249: private byte[] longblobCol;
250:
251: public byte[] getBinaryCol() {
252: return binaryCol;
253: }
254:
255: public void setBinaryCol(byte[] binaryCol) {
256: this .binaryCol = binaryCol;
257: }
258:
259: public byte[] getVarbinaryCol() {
260: return varbinaryCol;
261: }
262:
263: public void setVarbinaryCol(byte[] varbinaryCol) {
264: this .varbinaryCol = varbinaryCol;
265: }
266:
267: public byte[] getTinyblobCol() {
268: return tinyblobCol;
269: }
270:
271: public void setTinyblobCol(byte[] tinyblobCol) {
272: this .tinyblobCol = tinyblobCol;
273: }
274:
275: public byte[] getBlobCol() {
276: return blobCol;
277: }
278:
279: public void setBlobCol(byte[] blobCol) {
280: this .blobCol = blobCol;
281: }
282:
283: public byte[] getMediumblobCol() {
284: return mediumblobCol;
285: }
286:
287: public void setMediumblobCol(byte[] mediumblobCol) {
288: this .mediumblobCol = mediumblobCol;
289: }
290:
291: public byte[] getLongblobCol() {
292: return longblobCol;
293: }
294:
295: public void setLongblobCol(byte[] longblobCol) {
296: this.longblobCol = longblobCol;
297: }
298:
299: }
|