01: /*
02: *
03: * Connection class for the textFile/tinySQL
04: * JDBC driver
05: *
06: * A lot of this code is based on or directly taken from
07: * George Reese's (borg@imaginary.com) mSQL driver.
08: *
09: * So, it's probably safe to say:
10: *
11: * Portions of this code Copyright (c) 1996 George Reese
12: *
13: * The rest of it:
14: * Copyright 1996, Brian C. Jepson
15: * (bjepson@ids.net)
16: *
17: * $Author: davis $
18: * $Date: 2004/12/18 21:29:35 $
19: * $Revision: 1.1 $
20: *
21: * This library is free software; you can redistribute it and/or
22: * modify it under the terms of the GNU Lesser General Public
23: * License as published by the Free Software Foundation; either
24: * version 2.1 of the License, or (at your option) any later version.
25: *
26: * This library is distributed in the hope that it will be useful,
27: * but WITHOUT ANY WARRANTY; without even the implied warranty of
28: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29: * Lesser General Public License for more details.
30: *
31: * You should have received a copy of the GNU Lesser General Public
32: * License along with this library; if not, write to the Free Software
33: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34: */
35:
36: package com.sqlmagic.tinysql;
37:
38: import java.sql.CallableStatement;
39: import java.sql.DatabaseMetaData;
40: import java.sql.Driver;
41: import java.sql.PreparedStatement;
42: import java.sql.SQLException;
43: import java.sql.SQLWarning;
44: import java.sql.Statement;
45:
46: public class textFileConnection extends tinySQLConnection {
47:
48: /**
49: *
50: * Constructs a new JDBC Connection object.
51: *
52: * @exception SQLException in case of an error
53: * @param user the user name - not currently used
54: * @param u the url to the data source
55: * @param d the Driver object
56: *
57: */
58: public textFileConnection(String user, String u, Driver d)
59: throws SQLException {
60: super (user, u, d);
61: }
62:
63: /**
64: *
65: * Returns a new textFile object which is cast to a tinySQL
66: * object.
67: *
68: */
69: public tinySQL get_tinySQL() {
70: return (tinySQL) new textFile();
71: }
72:
73: }
|