1 26 package org.objectweb.jonas.jdbc; 27 28 import java.sql.Connection ; 29 import java.sql.Driver ; 30 import java.sql.DriverPropertyInfo ; 31 import java.sql.SQLException ; 32 import java.util.Properties ; 33 34 class DriverWrapper implements Driver { 35 private Driver driver; 36 37 DriverWrapper(Driver d) { 38 this.driver = d; 39 } 40 41 public boolean acceptsURL(String u) throws SQLException { 42 return this.driver.acceptsURL(u); 43 } 44 45 public Connection connect(String u, Properties p) throws SQLException { 46 return this.driver.connect(u, p); 47 } 48 49 public int getMajorVersion() { 50 return this.driver.getMajorVersion(); 51 } 52 53 public int getMinorVersion() { 54 return this.driver.getMinorVersion(); 55 } 56 57 public DriverPropertyInfo [] getPropertyInfo(String u, Properties p) throws SQLException { 58 return this.driver.getPropertyInfo(u, p); 59 } 60 61 public boolean jdbcCompliant() { 62 return this.driver.jdbcCompliant(); 63 } 64 } 65 66 | Popular Tags |