001: package com.quadcap.sql;
002:
003: /* Copyright 1999 - 2003 Quadcap Software. All rights reserved.
004: *
005: * This software is distributed under the Quadcap Free Software License.
006: * This software may be used or modified for any purpose, personal or
007: * commercial. Open Source redistributions are permitted. Commercial
008: * redistribution of larger works derived from, or works which bundle
009: * this software requires a "Commercial Redistribution License"; see
010: * http://www.quadcap.com/purchase.
011: *
012: * Redistributions qualify as "Open Source" under one of the following terms:
013: *
014: * Redistributions are made at no charge beyond the reasonable cost of
015: * materials and delivery.
016: *
017: * Redistributions are accompanied by a copy of the Source Code or by an
018: * irrevocable offer to provide a copy of the Source Code for up to three
019: * years at the cost of materials and delivery. Such redistributions
020: * must allow further use, modification, and redistribution of the Source
021: * Code under substantially the same terms as this license.
022: *
023: * Redistributions of source code must retain the copyright notices as they
024: * appear in each source code file, these license terms, and the
025: * disclaimer/limitation of liability set forth as paragraph 6 below.
026: *
027: * Redistributions in binary form must reproduce this Copyright Notice,
028: * these license terms, and the disclaimer/limitation of liability set
029: * forth as paragraph 6 below, in the documentation and/or other materials
030: * provided with the distribution.
031: *
032: * The Software is provided on an "AS IS" basis. No warranty is
033: * provided that the Software is free of defects, or fit for a
034: * particular purpose.
035: *
036: * Limitation of Liability. Quadcap Software shall not be liable
037: * for any damages suffered by the Licensee or any third party resulting
038: * from use of the Software.
039: */
040:
041: /**
042: * Track build numbers and build info with autogenerated code.
043: *
044: * @author Stan Bailes
045: */
046: public interface Version {
047:
048: //#if {[file exists .build_number]} {
049: //# set fd [open .build_number r]
050: //# gets $fd bn
051: //# set bn [string trim $bn]
052: //#} else {
053: //# set bn 0
054: //#}
055: //#incr bn
056: //#set fd [open .build_number w]
057: //#puts $fd $bn
058: //#close $fd
059: //> public static final int buildNumber = $bn;
060: //#set ts [clock format [clock seconds] -format {%a %b %d, %Y %H:%M:%S}]
061: //#set bt [defined BUILD_TYPE]
062: //#if {[defined JDK11] != ""} {
063: //# set jdk "JDK1.1"
064: //#}
065: //#if {[defined JDK12] != ""} {
066: //# set jdk "JDK1.2"
067: //#}
068: //#if {[defined JDK13] != ""} {
069: //# set jdk "JDK1.3"
070: //#}
071: //#if {[defined JDK14] != ""} {
072: //# set jdk "JDK1.4"
073: //#}
074: //#set build "${ts}, ${bt} build for ${jdk}"
075: //> public static final String build_info = \"$build\";
076: //#autogen begin
077: public static final int buildNumber = 3742;
078: public static final String build_info = "Fri May 21, 2004 19:43:35, DEBUG build for JDK1.4";
079: //#autogen end
080: //> public static int majorVersion = [defined VERSION_MAJOR];
081: //> public static int minorVersion = [defined VERSION_MINOR];
082: //> public static String versionString = \"[defined VERSION]\";
083: //#autogen begin
084: public static int majorVersion = 3;
085: public static int minorVersion = 4;
086: public static String versionString = "3.4";
087: //#autogen end
088:
089: }
090:
091: // Note: the following comments are here because they have to be
092: // somewhere....
093:
094: /*{types.xml-10}
095: *
096: * <table>
097: * <tgroup cols="5">
098: * <thead>
099: * <row>
100: * <th>SQL Type</th>
101: * <th>JDBC Type</th>
102: * <th>Java Type</th>
103: * <th>QED Type</th>
104: * <th>QED Value</th>
105: * </row>
106: * </thead>
107: * <tbody>
108: * <row>
109: * <entry>BOOLEAN</entry>
110: * <entry>BIT</entry>
111: * <entry>java.lang.Boolean</entry>
112: * <entry>TypeBoolean</entry>
113: * <entry>ValueBoolean</entry>
114: * </row>
115: * <row>
116: * <entry>TINYINT</entry>
117: * <entry>TINYINT</entry>
118: * <entry>java.lang.Byte</entry>
119: * <entry>TypeTinyInt</entry>
120: * <entry>ValueByte</entry>
121: * </row>
122: * <row>
123: * <entry>SMALLINT</entry>
124: * <entry>SMALLINT</entry>
125: * <entry>java.lang.Short</entry>
126: * <entry>TypeSmallInt</entry>
127: * <entry>ValueShort</entry>
128: * </row>
129: * <row>
130: * <entry>INTEGER</entry>
131: * <entry>INTEGER</entry>
132: * <entry>java.lang.Integer</entry>
133: * <entry>TypeInt</entry>
134: * <entry>ValueInteger</entry>
135: * </row>
136: * <row>
137: * <entry>BIGINT</entry>
138: * <entry>BIGINT</entry>
139: * <entry>java.lang.Long</entry>
140: * <entry>TypeBigInt</entry>
141: * <entry>ValueLong</entry>
142: * </row>
143: * <row>
144: * <entry>FLOAT</entry>
145: * <entry>FLOAT</entry>
146: * <entry>java.lang.Double</entry>
147: * <entry>TypeReal</entry>
148: * <entry>ValueDouble</entry>
149: * </row>
150: * <row>
151: * <entry>REAL</entry>
152: * <entry>REAL</entry>
153: * <entry>java.lang.Float</entry>
154: * <entry>TypeReal</entry>
155: * <entry>ValueFloat</entry>
156: * </row>
157: * <row>
158: * <entry>DOUBLE</entry>
159: * <entry>DOUBLE</entry>
160: * <entry>java.lang.Double</entry>
161: * <entry>TypeReal</entry>
162: * <entry>ValueDouble</entry>
163: * </row>
164: * <row>
165: * <entry>NUMERIC</entry>
166: * <entry>NUMERIC</entry>
167: * <entry>java.math.BigDecimal</entry>
168: * <entry>TypeDecimal</entry>
169: * <entry>ValueScaledInteger</entry>
170: * </row>
171: * <row>
172: * <entry>DECIMAL</entry>
173: * <entry>DECIMAL</entry>
174: * <entry>java.math.BigDecimal</entry>
175: * <entry>TypeDecimal</entry>
176: * <entry>ValueScaledInteger</entry>
177: * </row>
178: * <row>
179: * <entry>CHAR</entry>
180: * <entry>CHAR</entry>
181: * <entry>java.lang.String</entry>
182: * <entry>TypeChar</entry>
183: * <entry>ValueString</entry>
184: * </row>
185: * <row>
186: * <entry>VARCHAR</entry>
187: * <entry>VARCHAR</entry>
188: * <entry>java.lang.String</entry>
189: * <entry>TypeVarChar</entry>
190: * <entry>ValueString</entry>
191: * </row>
192: * <row>
193: * <entry>LONGVARCHAR</entry>
194: * <entry>LONGVARCHAR</entry>
195: * <entry>java.lang.String</entry>
196: * <entry><i>N.A.</i></entry>
197: * <entry><i>N.A.</i></entry>
198: * </row>
199: * <row>
200: * <entry>DATE</entry>
201: * <entry>DATE</entry>
202: * <entry>java.sql.Date</entry>
203: * <entry>TypeDate</entry>
204: * <entry>ValueDate</entry>
205: * </row>
206: * <row>
207: * <entry>TIME</entry>
208: * <entry>TIME</entry>
209: * <entry>java.sql.Time</entry>
210: * <entry>TypeTime</entry>
211: * <entry>ValueTime</entry>
212: * </row>
213: * <row>
214: * <entry>TIMESTAMP</entry>
215: * <entry>TIMESTAMP</entry>
216: * <entry>java.sql.Timestamp</entry>
217: * <entry>TypeTimestamp</entry>
218: * <entry>ValueTimestamp</entry>
219: * </row>
220: * <row>
221: * <entry>BIT</entry>
222: * <entry>BINARY</entry>
223: * <entry>byte[]</entry>
224: * <entry>TypeBinary</entry>
225: * <entry>ValueOctets</entry>
226: * </row>
227: * <row>
228: * <entry>BIT VARYING</entry>
229: * <entry>VARBINARY</entry>
230: * <entry>byte[]</entry>
231: * <entry>TypeBinary</entry>
232: * <entry>ValueOctets</entry>
233: * </row>
234: * <row>
235: * <entry></entry>
236: * <entry>LONGVARBINARY</entry>
237: * <entry></entry>
238: * <entry></entry>
239: * <entry></entry>
240: * </row>
241: * <row>
242: * <entry></entry>
243: * <entry>NULL</entry>
244: * <entry></entry>
245: * <entry></entry>
246: * <entry></entry>
247: * </row>
248: * <row>
249: * <entry></entry>
250: * <entry>OTHER</entry>
251: * <entry></entry>
252: * <entry></entry>
253: * <entry></entry>
254: * </row>
255: * <row>
256: * <entry></entry>
257: * <entry>JAVA_OBJECT</entry>
258: * <entry></entry>
259: * <entry></entry>
260: * <entry></entry>
261: * </row>
262: * <row>
263: * <entry></entry>
264: * <entry>DISTINCT</entry>
265: * <entry></entry>
266: * <entry></entry>
267: * <entry></entry>
268: * </row>
269: * <row>
270: * <entry></entry>
271: * <entry>STRUCT</entry>
272: * <entry></entry>
273: * <entry></entry>
274: * <entry></entry>
275: * </row>
276: * <row>
277: * <entry></entry>
278: * <entry>ARRAY</entry>
279: * <entry></entry>
280: * <entry></entry>
281: * <entry></entry>
282: * </row>
283: * <row>
284: * <entry>BLOB</entry>
285: * <entry>BLOB</entry>
286: * <entry>java.io.InputStream</entry>
287: * <entry>TypeBlob</entry>
288: * <entry>ValueBlob</entry>
289: * </row>
290: * <row>
291: * <entry></entry>
292: * <entry>CLOB</entry>
293: * <entry></entry>
294: * <entry></entry>
295: * <entry></entry>
296: * </row>
297: * <row>
298: * <entry></entry>
299: * <entry>REF</entry>
300: * <entry></entry>
301: * <entry></entry>
302: * <entry></entry>
303: * </row>
304: * </tbody>
305: * </tgroup>
306: * </table>
307: */
|