db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4869) Implement JDBC 4.1, the api increment introduced by Java 7
Date Tue, 21 Dec 2010 16:28:01 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Hillegas updated DERBY-4869:
---------------------------------

    Attachment: derby-4869-01-ac-rs-getObject.diff

Attaching derby-4869-01-ac-rs-getObject.diff. This adds new JDBC 4.1 methods to ResultSet.
I added a test case for these methods to the JDBC 4.0 test of ResultSets. That test runs cleanly
for me on Java 6. I haven't run the test on Java 7 yet because the Linux installers for JDK
7 don't work. But I will look for another platform to test-drive these changes on Java 7.
I am running the full regression test suites now.

Adds the following new methods to Derby's JDBC 4.0 implementations of ResultSet:

    public  <T> T getObject( int columnIndex, Class<T> type ) throws SQLException;
    public  <T> T getObject( String columnName, Class<T> type ) throws SQLException;

The implementations simply switch on the Class type and forward calls to the appropriate pre-existing
getters.

I added a test for these methods to the test for JDBC 4.0 ResultSets. To simplify the code,
I wrapped the Derby ResultSets in a class which exposes the new methods. We may want to revisit
this test after Java 7 goes GA and we are allowed to ship a derbyTesting.jar which is built
with the Java 7 compiler.


Touches the following files:

---------

M      java/engine/org/apache/derby/impl/jdbc/EmbedResultSet40.java

Added new forwarding methods to the embedded ResultSet.

---------

M      java/client/org/apache/derby/client/am/ResultSet.java
M      java/client/org/apache/derby/client/net/NetResultSet40.java

Added new forwarding methods to the network ResultSet.

---------

M      java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java

Added a test for the new ResultSet methods.


> Implement JDBC 4.1, the api increment introduced by Java 7
> ----------------------------------------------------------
>
>                 Key: DERBY-4869
>                 URL: https://issues.apache.org/jira/browse/DERBY-4869
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC
>            Reporter: Rick Hillegas
>         Attachments: derby-4869-01-ac-rs-getObject.diff, disable-tests.diff, JDBC_4.1_Changes.html
>
>
> This is a master issue logged to track our work implementing JDBC 4.1, the changes to
the java.sql and javax.sql packages introduced by Java 7.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message