KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quadcap > sql > Version


1 package com.quadcap.sql;
2
3 /* Copyright 1999 - 2003 Quadcap Software. All rights reserved.
4  *
5  * This software is distributed under the Quadcap Free Software License.
6  * This software may be used or modified for any purpose, personal or
7  * commercial. Open Source redistributions are permitted. Commercial
8  * redistribution of larger works derived from, or works which bundle
9  * this software requires a "Commercial Redistribution License"; see
10  * http://www.quadcap.com/purchase.
11  *
12  * Redistributions qualify as "Open Source" under one of the following terms:
13  *
14  * Redistributions are made at no charge beyond the reasonable cost of
15  * materials and delivery.
16  *
17  * Redistributions are accompanied by a copy of the Source Code or by an
18  * irrevocable offer to provide a copy of the Source Code for up to three
19  * years at the cost of materials and delivery. Such redistributions
20  * must allow further use, modification, and redistribution of the Source
21  * Code under substantially the same terms as this license.
22  *
23  * Redistributions of source code must retain the copyright notices as they
24  * appear in each source code file, these license terms, and the
25  * disclaimer/limitation of liability set forth as paragraph 6 below.
26  *
27  * Redistributions in binary form must reproduce this Copyright Notice,
28  * these license terms, and the disclaimer/limitation of liability set
29  * forth as paragraph 6 below, in the documentation and/or other materials
30  * provided with the distribution.
31  *
32  * The Software is provided on an "AS IS" basis. No warranty is
33  * provided that the Software is free of defects, or fit for a
34  * particular purpose.
35  *
36  * Limitation of Liability. Quadcap Software shall not be liable
37  * for any damages suffered by the Licensee or any third party resulting
38  * from use of the Software.
39  */

40
41 /**
42  * Track build numbers and build info with autogenerated code.
43  *
44  * @author Stan Bailes
45  */

46 public interface Version {
47
48 //#if {[file exists .build_number]} {
49
//# set fd [open .build_number r]
50
//# gets $fd bn
51
//# set bn [string trim $bn]
52
//#} else {
53
//# set bn 0
54
//#}
55
//#incr bn
56
//#set fd [open .build_number w]
57
//#puts $fd $bn
58
//#close $fd
59
//> public static final int buildNumber = $bn;
60
//#set ts [clock format [clock seconds] -format {%a %b %d, %Y %H:%M:%S}]
61
//#set bt [defined BUILD_TYPE]
62
//#if {[defined JDK11] != ""} {
63
//# set jdk "JDK1.1"
64
//#}
65
//#if {[defined JDK12] != ""} {
66
//# set jdk "JDK1.2"
67
//#}
68
//#if {[defined JDK13] != ""} {
69
//# set jdk "JDK1.3"
70
//#}
71
//#if {[defined JDK14] != ""} {
72
//# set jdk "JDK1.4"
73
//#}
74
//#set build "${ts}, ${bt} build for ${jdk}"
75
//> public static final String build_info = \"$build\";
76
//#autogen begin
77
public static final int buildNumber = 3742;
78     public static final String JavaDoc build_info = "Fri May 21, 2004 19:43:35, DEBUG build for JDK1.4";
79 //#autogen end
80
//> public static int majorVersion = [defined VERSION_MAJOR];
81
//> public static int minorVersion = [defined VERSION_MINOR];
82
//> public static String versionString = \"[defined VERSION]\";
83
//#autogen begin
84
public static int majorVersion = 3;
85      public static int minorVersion = 4;
86     public static String JavaDoc versionString = "3.4";
87 //#autogen end
88

89 }
90
91 // Note: the following comments are here because they have to be
92
// somewhere....
93

94
95
96
97 /*{types.xml-10}
98  *
99  * <table>
100  * <tgroup cols="5">
101  * <thead>
102  * <row>
103  * <th>SQL Type</th>
104  * <th>JDBC Type</th>
105  * <th>Java Type</th>
106  * <th>QED Type</th>
107  * <th>QED Value</th>
108  * </row>
109  * </thead>
110  * <tbody>
111  * <row>
112  * <entry>BOOLEAN</entry>
113  * <entry>BIT</entry>
114  * <entry>java.lang.Boolean</entry>
115  * <entry>TypeBoolean</entry>
116  * <entry>ValueBoolean</entry>
117  * </row>
118  * <row>
119  * <entry>TINYINT</entry>
120  * <entry>TINYINT</entry>
121  * <entry>java.lang.Byte</entry>
122  * <entry>TypeTinyInt</entry>
123  * <entry>ValueByte</entry>
124  * </row>
125  * <row>
126  * <entry>SMALLINT</entry>
127  * <entry>SMALLINT</entry>
128  * <entry>java.lang.Short</entry>
129  * <entry>TypeSmallInt</entry>
130  * <entry>ValueShort</entry>
131  * </row>
132  * <row>
133  * <entry>INTEGER</entry>
134  * <entry>INTEGER</entry>
135  * <entry>java.lang.Integer</entry>
136  * <entry>TypeInt</entry>
137  * <entry>ValueInteger</entry>
138  * </row>
139  * <row>
140  * <entry>BIGINT</entry>
141  * <entry>BIGINT</entry>
142  * <entry>java.lang.Long</entry>
143  * <entry>TypeBigInt</entry>
144  * <entry>ValueLong</entry>
145  * </row>
146  * <row>
147  * <entry>FLOAT</entry>
148  * <entry>FLOAT</entry>
149  * <entry>java.lang.Double</entry>
150  * <entry>TypeReal</entry>
151  * <entry>ValueDouble</entry>
152  * </row>
153  * <row>
154  * <entry>REAL</entry>
155  * <entry>REAL</entry>
156  * <entry>java.lang.Float</entry>
157  * <entry>TypeReal</entry>
158  * <entry>ValueFloat</entry>
159  * </row>
160  * <row>
161  * <entry>DOUBLE</entry>
162  * <entry>DOUBLE</entry>
163  * <entry>java.lang.Double</entry>
164  * <entry>TypeReal</entry>
165  * <entry>ValueDouble</entry>
166  * </row>
167  * <row>
168  * <entry>NUMERIC</entry>
169  * <entry>NUMERIC</entry>
170  * <entry>java.math.BigDecimal</entry>
171  * <entry>TypeDecimal</entry>
172  * <entry>ValueScaledInteger</entry>
173  * </row>
174  * <row>
175  * <entry>DECIMAL</entry>
176  * <entry>DECIMAL</entry>
177  * <entry>java.math.BigDecimal</entry>
178  * <entry>TypeDecimal</entry>
179  * <entry>ValueScaledInteger</entry>
180  * </row>
181  * <row>
182  * <entry>CHAR</entry>
183  * <entry>CHAR</entry>
184  * <entry>java.lang.String</entry>
185  * <entry>TypeChar</entry>
186  * <entry>ValueString</entry>
187  * </row>
188  * <row>
189  * <entry>VARCHAR</entry>
190  * <entry>VARCHAR</entry>
191  * <entry>java.lang.String</entry>
192  * <entry>TypeVarChar</entry>
193  * <entry>ValueString</entry>
194  * </row>
195  * <row>
196  * <entry>LONGVARCHAR</entry>
197  * <entry>LONGVARCHAR</entry>
198  * <entry>java.lang.String</entry>
199  * <entry><i>N.A.</i></entry>
200  * <entry><i>N.A.</i></entry>
201  * </row>
202  * <row>
203  * <entry>DATE</entry>
204  * <entry>DATE</entry>
205  * <entry>java.sql.Date</entry>
206  * <entry>TypeDate</entry>
207  * <entry>ValueDate</entry>
208  * </row>
209  * <row>
210  * <entry>TIME</entry>
211  * <entry>TIME</entry>
212  * <entry>java.sql.Time</entry>
213  * <entry>TypeTime</entry>
214  * <entry>ValueTime</entry>
215  * </row>
216  * <row>
217  * <entry>TIMESTAMP</entry>
218  * <entry>TIMESTAMP</entry>
219  * <entry>java.sql.Timestamp</entry>
220  * <entry>TypeTimestamp</entry>
221  * <entry>ValueTimestamp</entry>
222  * </row>
223  * <row>
224  * <entry>BIT</entry>
225  * <entry>BINARY</entry>
226  * <entry>byte[]</entry>
227  * <entry>TypeBinary</entry>
228  * <entry>ValueOctets</entry>
229  * </row>
230  * <row>
231  * <entry>BIT VARYING</entry>
232  * <entry>VARBINARY</entry>
233  * <entry>byte[]</entry>
234  * <entry>TypeBinary</entry>
235  * <entry>ValueOctets</entry>
236  * </row>
237  * <row>
238  * <entry></entry>
239  * <entry>LONGVARBINARY</entry>
240  * <entry></entry>
241  * <entry></entry>
242  * <entry></entry>
243  * </row>
244  * <row>
245  * <entry></entry>
246  * <entry>NULL</entry>
247  * <entry></entry>
248  * <entry></entry>
249  * <entry></entry>
250  * </row>
251  * <row>
252  * <entry></entry>
253  * <entry>OTHER</entry>
254  * <entry></entry>
255  * <entry></entry>
256  * <entry></entry>
257  * </row>
258  * <row>
259  * <entry></entry>
260  * <entry>JAVA_OBJECT</entry>
261  * <entry></entry>
262  * <entry></entry>
263  * <entry></entry>
264  * </row>
265  * <row>
266  * <entry></entry>
267  * <entry>DISTINCT</entry>
268  * <entry></entry>
269  * <entry></entry>
270  * <entry></entry>
271  * </row>
272  * <row>
273  * <entry></entry>
274  * <entry>STRUCT</entry>
275  * <entry></entry>
276  * <entry></entry>
277  * <entry></entry>
278  * </row>
279  * <row>
280  * <entry></entry>
281  * <entry>ARRAY</entry>
282  * <entry></entry>
283  * <entry></entry>
284  * <entry></entry>
285  * </row>
286  * <row>
287  * <entry>BLOB</entry>
288  * <entry>BLOB</entry>
289  * <entry>java.io.InputStream</entry>
290  * <entry>TypeBlob</entry>
291  * <entry>ValueBlob</entry>
292  * </row>
293  * <row>
294  * <entry></entry>
295  * <entry>CLOB</entry>
296  * <entry></entry>
297  * <entry></entry>
298  * <entry></entry>
299  * </row>
300  * <row>
301  * <entry></entry>
302  * <entry>REF</entry>
303  * <entry></entry>
304  * <entry></entry>
305  * <entry></entry>
306  * </row>
307  * </tbody>
308  * </tgroup>
309  * </table>
310  */

311
312
Popular Tags