01: import java.sql.Connection;
02: import java.sql.Driver;
03: import java.sql.DriverPropertyInfo;
04: import java.sql.SQLException;
05: import java.util.Properties;
06:
07: public class DummyDriver implements Driver {
08:
09: public DriverPropertyInfo[] getPropertyInfo(String url,
10: Properties info) throws SQLException {
11: return new DriverPropertyInfo[0];
12: }
13:
14: public Connection connect(String url, Properties info)
15: throws SQLException {
16: return null;
17: }
18:
19: public boolean acceptsURL(String url) throws SQLException {
20: return false;
21: }
22:
23: public boolean jdbcCompliant() {
24: return false;
25: }
26:
27: public int getMajorVersion() {
28: return 1;
29: }
30:
31: public int getMinorVersion() {
32: return 0;
33: }
34: }
|