1 import java.sql.Connection ; 2 import java.sql.Driver ; 3 import java.sql.DriverPropertyInfo ; 4 import java.sql.SQLException ; 5 import java.util.Properties ; 6 7 public class DummyDriver implements Driver { 8 9 public DriverPropertyInfo [] getPropertyInfo(String url, Properties info) throws SQLException { 10 return new DriverPropertyInfo [0]; 11 } 12 13 public Connection connect(String url, Properties info) throws SQLException { 14 return null; 15 } 16 17 public boolean acceptsURL(String url) throws SQLException { 18 return false; 19 } 20 21 public boolean jdbcCompliant() { 22 return false; 23 } 24 25 public int getMajorVersion() { 26 return 1; 27 } 28 29 public int getMinorVersion() { 30 return 0; 31 } 32 } 33 | Popular Tags |