[ http://issues.apache.org/jira/browse/DERBY-1291?page=all ]
Anurag Shekhar updated DERBY-1291:
----------------------------------
Attachment: derby-1291.diff
Refactored DataSource classes to change the inheritance hirarchy
The existing hirarchy is
ReferenceableDataSource
|
|
EmbeddedDataSource
|
|
------------------------------------------
|
|
EmbeddedConnectionPoolDataSource EmbeddedXADataSource
New hirarchy in the patch
ReferenceableDataSource
|
|
BaseDataSource
|
|
------------------------------------------
| | |
EmbeddedDataSource | EmbeddedXADataSource
|
EmbeddedConnectionPoolDataSource
Description of the patch
Added classes
BaseDataSource
This class extends from ReferenceableDataSource. I have moved all the
fields of EmbeddedDataSource and repective getter and setter to this class.
Moved findDriver and getConnection (user, password, requestpassword) too this
method. As this method will be accessed from other XADataSource too.
EmbeddedDataSource
Modified to extend from BaseDataSource. This class now holds only
getConnection methods from javax.sql.DataSource.
EmbeddedXADataSource
Modified to extend from BaseDataSource. Change call to getConnection
to call out method in BaseDataSource.
EmbeddedConnectionPoolDataSource
Modified to extend from BaseDataSource.
EmbeddedConnectionPoolDataSource40 & EmbeddedXADataSource40
Removed javax.sql.DataSource method which are no more required by
these classes.
> Modify DataSource classes of Embedded Driver to seperate DataSource ,
> XADataSource and ConnectionPooledDataSource
> ------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1291
> URL: http://issues.apache.org/jira/browse/DERBY-1291
> Project: Derby
> Type: Improvement
> Components: JDBC
> Versions: 10.2.0.0
> Reporter: Anurag Shekhar
> Assignee: Anurag Shekhar
> Attachments: derby-1291.diff
>
--
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