1 36 37 package com.sqlmagic.tinysql; 38 39 import java.sql.Connection ; 40 import java.sql.DriverPropertyInfo ; 41 import java.sql.SQLException ; 42 import java.sql.Driver ; 43 import java.util.Properties ; 44 45 public class textFileDriver extends tinySQLDriver { 46 47 53 static { 54 try { 55 java.sql.DriverManager.registerDriver(new textFileDriver()); 56 } catch (Exception e) { 57 e.printStackTrace(); 58 } 59 } 60 61 66 public textFileDriver() { 67 super(); 68 } 69 70 81 public tinySQLConnection getConnection 82 (String user, String url, Driver d) 83 throws SQLException { 84 85 return (tinySQLConnection) new textFileConnection(user, url, d); 86 } 87 88 } 89 | Popular Tags |