You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Anurag Shekhar (JIRA)" <de...@db.apache.org> on 2006/04/23 22:16:06 UTC
[jira] Updated: (DERBY-1246) Introduce jdbc4.0 XADataSource and
ConnectionPoolDataSource for Client Driver
[ http://issues.apache.org/jira/browse/DERBY-1246?page=all ]
Anurag Shekhar updated DERBY-1246:
----------------------------------
Attachment: derby-1246.diff
Description of patch
This patch includes jdbc4.0 DataSource and XAConnection classes. I have refactored the older DataSource class to not to extend from ClientDataSource ie. XADataSource and ConnectionPoolDataSource doesn't extend from ClientDataSource any more. All three data source in client driver directly extends from ClientBaseDataSource.
This required changes in some files which were accessing XA and ConnectionPool data source as DataSource but no of these classes use the DataSource specific metods from XA and ConnectionPool DataSource. So the changes are limited to changing the parameter and field types.
Added files
java/client/org/apache/derby/jdbc/ClientXADataSource40.java
java/client/org/apache/derby/jdbc/ClientConnectionPoolDataSource40
These data source extend from ClientXADataSource and ClientConnectionPoolDataSource respectivly they implement 40 method.
java/client/org/apache/derby/client/ClientXAConnection
This is jdbc4.0 implementation of XAConnection. It extends from ClientXAConnection.
Modified files
java/client/org/apache/derby/jdbc/ClientXADataSource.java
java/client/org/apache/derby/jdbc/ClientConnectionPoolDataSource.java
Modified to change the super class from ClientDataSource to ClientBaseDataSource.
java/client/org/apache/derby/client/ClientDataSourceFactory.java
java/client/org/apache/derby/client/ClientPooledConnection.java
java/client/org/apache/derby/client/ClientPooledConnection40.java
java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl.java
java/client/org/apache/derby/client/net/NetXAConnection40.java
java/client/org/apache/derby/client/net/NetConnection40.java
java/client/org/apache/derby/client/net/NetXAConnection.java
java/client/org/apache/derby/client/net/NetConnection.java
java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl40.java
java/client/org/apache/derby/client/am/Connection.java
java/client/org/apache/derby/client/am/LogWriter.java
java/client/org/apache/derby/client/am/ClientJDBCObjectFactory.java
Modified to use ClientBaseDataSource and not ClientDataSource when using ClientXAConnection or ClientConnectionPoolDataSource.
java/tools/org/apache/derby/impl/tools/ij/xaHelper.java
java/testing/org/apache/derbyTesting/functionTests/util/TestUtil.java
Modified to instantiate and use 40 classes when running under jdk1.6 with jdbc4.0 support.
tools/javadoc/publishedapi_jdbc4.ant
Added DataSource 40 classes to generate public api.
> Introduce jdbc4.0 XADataSource and ConnectionPoolDataSource for Client Driver
> -----------------------------------------------------------------------------
>
> Key: DERBY-1246
> URL: http://issues.apache.org/jira/browse/DERBY-1246
> Project: Derby
> Type: Sub-task
> Components: JDBC, Network Client
> Versions: 10.2.0.0
> Environment: jdbc 4.0 jdk1.6
> Reporter: Anurag Shekhar
> Assignee: Anurag Shekhar
> Attachments: derby-1246.diff
>
> Because of a new method (getQueryObjectGenerator() ) introduced in CommonDataSource which returns a jdbc4.0 class new classes for jdbc4.0 is required for all the DataSource implementing CommonDataSource.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira