diff options
author | smallsql <smallsql> | 2011-06-20 22:25:46 +0400 |
---|---|---|
committer | smallsql <smallsql> | 2011-06-20 22:25:46 +0400 |
commit | 2c0ab9998155e6899f0629a0eb28e5151f3225ca (patch) | |
tree | 6bc68f530a2a097a30df02f53e4259233bf364ef /openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java | |
parent | f6d368e121ad872e7a6f11c333ef85c01933fb27 (diff) |
Updated ODBC Bridge to OpenJDK7 part 1
Diffstat (limited to 'openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java')
-rw-r--r-- | openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java b/openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java index 2a084fea..0b8441f5 100644 --- a/openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java +++ b/openjdk/sun/jdbc/odbc/JdbcOdbcDriver.java @@ -25,6 +25,7 @@ package sun.jdbc.odbc; import java.sql.*; import java.util.Properties; +import java.util.logging.Logger; /** * This JDBC Driver is a wrapper to the ODBC.NET Data Provider @@ -45,7 +46,8 @@ public class JdbcOdbcDriver implements Driver{ /** * {@inheritDoc} */ - public boolean acceptsURL(String url){ + @Override + public boolean acceptsURL(String url){ return url.startsWith(URL_PREFIX); } @@ -53,7 +55,8 @@ public class JdbcOdbcDriver implements Driver{ /** * {@inheritDoc} */ - public Connection connect(String url, Properties info) throws SQLException{ + @Override + public Connection connect(String url, Properties info) throws SQLException{ if(!acceptsURL(url)){ return null; } @@ -65,7 +68,8 @@ public class JdbcOdbcDriver implements Driver{ /** * {@inheritDoc} */ - public int getMajorVersion(){ + @Override + public int getMajorVersion(){ return 2; } @@ -73,7 +77,8 @@ public class JdbcOdbcDriver implements Driver{ /** * {@inheritDoc} */ - public int getMinorVersion(){ + @Override + public int getMinorVersion(){ return 1; } @@ -81,7 +86,8 @@ public class JdbcOdbcDriver implements Driver{ /** * {@inheritDoc} */ - public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException{ + @Override + public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException{ return new DriverPropertyInfo[0]; } @@ -89,8 +95,17 @@ public class JdbcOdbcDriver implements Driver{ /** * {@inheritDoc} */ - public boolean jdbcCompliant(){ + @Override + public boolean jdbcCompliant(){ return true; } + + /** + * {@inheritDoc} + */ + public Logger getParentLogger() throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } + } |