/** * * returns a new dbfFileConnection object, which is cast * to a tinySQLConnection object. * * @exception SQLException when an error occurs * @param user the username - currently unused * @param url the url to the data source * @param d the Driver object. * */ public override TinySQLConnection getConnection (String user, String url, java.sql.Driver d) {//throws SQLException { if (url != (String)null) { if (url.length() > 13) { TinySQLGlobals.readLongNames(url.substring(13)); } } return((TinySQLConnection) new DBFFileConnection(user, url, d)); }
/** * * Constructs a new JDBC Connection for a tinySQL database * * @exception SQLException in case of an error * @param user the user name - currently unused * @param u the URL used to connect to the datasource * @param d the Driver that instantiated this connection * */ public TinySQLConnection(String user, String u, java.sql.Driver d) {//throws SQLException { this.url = u; this.user = user; this.driver = d; // call get_tinySQL() to return a new tinySQL object. // get_tinySQL() is an abstract method which allows // subclasses of tinySQL, such as textFile, to be used // as JDBC datasources // tsql = get_tinySQL(); }
/** * * 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 TextFileConnection(String user, String u, java.sql.Driver d) //throws SQLException { : base(user, u, d) { }
/** * * Abstract method to return a tinySQLConnection object, typically * a subclass of the abstract class tinySQLConnection. * */ public abstract TinySQLConnection getConnection (String user, String url, java.sql.Driver d);
/** * * returns a new textFileConnection object, which is cast * to a tinySQLConnection object. * * @exception SQLException when an error occurs * @param user the username - currently unused * @param url the url to the data source * @param d the Driver object. * */ public override TinySQLConnection getConnection (String user, String url, java.sql.Driver d) {//throws SQLException { return((TinySQLConnection) new TextFileConnection(user, url, d)); }
/** * * 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, java.sql.Driver d) ://throws SQLException { base(user, u, d) { }