Thanks for pointing out. Probably I should modify this class to check for the jvm version so that it can be used with jdbc 4.0 and prior versions.
anurag

Andrew McIntyre (JIRA) wrote:
[ http://issues.apache.org/jira/browse/DERBY-942?page=comments#action_12367703 ]
Andrew McIntyre commented on DERBY-942:
---------------------------------------

I mentioned this in connection to DERBY-993. There is code already in 
org.apache.derbyTesting.functionTests.util.TestUtil to obtain a connection 
using a DataSource. This code can probably be reused with JUnit tests without 
much effort.

Add JDBC4 Ease of Development Support
-------------------------------------

         Key: DERBY-942
         URL: http://issues.apache.org/jira/browse/DERBY-942
     Project: Derby
        Type: New Feature
  Components: JDBC
    Reporter: Rick Hillegas
    Assignee: Anurag Shekhar
     Fix For: 10.2.0.0
 Attachments: derby-942.diff

As described in the JDBC 4 spec, sections 20.1, 20.2, and 3.1.
The Ease of Development extensions provide a way to create tabular DataSets 
from queries and tuple signatures. The jdk ships with a factory for creating 
these DataSets, which is a class which implements the QueryObjectGenerator 
interface. A database can write its own custom QueryObjectGenerator, or just 
ship with the default, jdk-shipped version. For this task, we will simply wire 
the default jdk-shipped factory into the appropriate methods: 
Connection.createQueryObject() and DataSource.createQueryObject().


Reply via email to