KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sqlmagic > tinysql > textFileConnection


1 /*
2  *
3  * Connection class for the textFile/tinySQL
4  * JDBC driver
5  *
6  * A lot of this code is based on or directly taken from
7  * George Reese's (borg@imaginary.com) mSQL driver.
8  *
9  * 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 JavaDoc;
39 import java.sql.DatabaseMetaData JavaDoc;
40 import java.sql.Driver JavaDoc;
41 import java.sql.PreparedStatement JavaDoc;
42 import java.sql.SQLException JavaDoc;
43 import java.sql.SQLWarning JavaDoc;
44 import java.sql.Statement JavaDoc;
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 JavaDoc user, String JavaDoc u, Driver JavaDoc d)
59          throws SQLException JavaDoc {
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 }
74
Popular Tags