1 32 33 package com.mockobjects.eziba.sql; 34 import java.util.Properties ;public class Driver 35 implements java.sql.Driver 36 { 37 38 public boolean acceptsURL(String p_url) 39 { 40 if (p_url.startsWith("jdbc:")) 41 { 42 return p_url.substring(6).startsWith("unittest:"); 43 } 44 else 45 { 46 return false; 47 } 48 } 49 50 public java.sql.Connection connect(String p_url, 51 Properties p_props) 52 { 53 return createConnection(); 54 } 55 56 public int getMajorVersion() 57 { 58 return 1; 59 } 60 61 public int getMinorVersion() 62 { 63 return 0; 64 } 65 66 public java.sql.DriverPropertyInfo [] getPropertyInfo(String p_url, 67 Properties p_props) 68 { 69 return new java.sql.DriverPropertyInfo [0]; 70 } 71 72 public boolean jdbcCompliant() 73 { 74 return false; 75 } 76 77 81 82 public static Connection createConnection() 83 { 84 return new Connection(); 85 } 86 } | Popular Tags |