📄 dbffileconnection.java
字号:
/*
*
* Connection class for the dbfFile/tinySQL
* JDBC driver
*
* A lot of this code is based on or directly taken from
* George Reese's (borg@imaginary.com) mSQL driver.
*
* So, it's probably safe to say:
*
* Portions of this code Copyright (c) 1996 George Reese
*
* The rest of it:
*
* Copyright 1996 John Wiley & Sons, Inc. All Rights Reserved. Reproduction
* or translation of this work beyond that permitted in Section 117 of the 1976
* United States Copyright Act without the express written permission of the
* copyright owner is unlawful. Requests for further information should be
* addressed to Permissions Department, John Wiley & Sons, Inc. The
* purchaser may make back-up copies for his/her own use only and not for
* distribution or resale. The Publisher assumes no responsibility for errors,
* omissions, or damages, caused by the use of this software or from the use
* of the information contained herein.
*
*/
import java.sql.CallableStatement;
import java.sql.DatabaseMetaData;
import java.sql.Driver;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
public class dbfFileConnection extends tinySQLConnection {
/**
*
* Constructs a new JDBC Connection object.
*
* @exception SQLException in case of an error
* @param user the user name - not currently used
* @param u the url to the data source
* @param d the Driver object
*
*/
public dbfFileConnection(String user, String u, Driver d)
throws SQLException {
super(user, u, d);
}
/**
*
* Returns a new dbfFile object which is cast to a tinySQL
* object.
*
*/
public tinySQL get_tinySQL() {
// if there's a data directory, it will
// be everything after the jdbc:dbfFile:
//
if (url.length() > 13) {
String dataDir = url.substring(13);
return (tinySQL) new dbfFile(dataDir);
}
// if there was no data directory specified in the
// url, then just use the default constructor
//
return (tinySQL) new dbfFile();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -