Source Code Cross Referenced for AllTypes.java in  » Database-ORM » Persist » net » sf » persist » tests » mysql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » Persist » net.sf.persist.tests.mysql 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.