Commits

Shantanu Kumar committed 3b96db4

add support for Java 7 (JDBC 4.1) builds

  • Participants
  • Parent commits f36d529

Comments (0)

Files changed (2)

 - [TODO] protocols for memory-connect, file-connect, net-connect
 - [TODO] MonetDB support
 - [TODO] MckoiDDB support
-- Test with OSS-JDBC 0.6
+- Support for Java 7 (JDBC 4.1)
+- Use OSS-JDBC 0.6
 - Use Clojure 1.3.0 and modular contrib
-- Rename README to README.md
+
 
 ## 0.5 / 2011-Apr-01
 

File src/main/java/org/bituf/clj_dbcp/ConnectionWrapper.java

 import java.util.Collection;
 import java.util.Map;
 import java.util.Properties;
+import java.util.concurrent.Executor;
 
 public class ConnectionWrapper implements Connection {
 
         return conn.createStruct(typeName, attributes);
     }
 
+    // ----- Java 7 (JDBC 4.1) methods -----
+
+    public void setSchema(String schema) throws SQLException {
+      // do nothing
+    }
+
+    public String getSchema() throws SQLException {
+      return "";
+    }
+
+    public void abort(Executor executor) throws SQLException {
+      // do nothing
+    }
+
+    public void setNetworkTimeout(Executor executor, int millis) throws SQLException {
+      // do nothing
+    }
+
+    public int getNetworkTimeout() throws SQLException {
+      return 0;
+    }
+
 }