[
https://issues.apache.org/jira/browse/DBCP-547?focusedWorklogId=271436&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-271436
]
ASF GitHub Bot logged work on DBCP-547:
---------------------------------------
Author: ASF GitHub Bot
Created on: 03/Jul/19 07:10
Start Date: 03/Jul/19 07:10
Worklog Time Spent: 10m
Work Description: leechoongyon commented on pull request #32: [DBCP-547]
Add a ConnectionFactory interface in BasicDataSource.createConnectionFactory()
URL: https://github.com/apache/commons-dbcp/pull/32
[DBCP-547] Add a ConnectionFactory interface in
BasicDataSource.createConnectionFactory()
I think it would be nice better to implement a ConnectionFactory interface
in BasicDataSource class.
In my current project, when getting a connection in my program, I call
oracleSetModule.
so, i think that after creating connection, call oracleSetModule via
connectionFactoryImpl seems to be nice.
This reduces the cost of calling oracleSetModule when calling
BasicDataSource.getConnection().
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 271436)
Time Spent: 0.5h (was: 20m)
> Add a ConnectionFactory Interface in BasicDataSource class
> ----------------------------------------------------------
>
> Key: DBCP-547
> URL: https://issues.apache.org/jira/browse/DBCP-547
> Project: Commons DBCP
> Issue Type: Improvement
> Affects Versions: 2.2.0
> Reporter: Lee Jun Gyun
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> It think it would be nice better to implement a ConnectionFactory interface
> in BasicDataSource class or implement a interface in DriverConnectionFactory
> class.
> In my current project, when getting a connection in my program, I call
> oracleSetModule.
> so, i think that after creating connection, call oracleSetModule via
> connectionFactoryImpl seems to be nice.
>
> [Before]
> protected ConnectionFactory createConnectionFactory() throws SQLException {
> ...
> ...
> ConnectionFactory driverConnectionFactory =
> new DriverConnectionFactory(driverToUse, url, connectionProperties);
> return driverConnectionFactory;
> }
> [After]
> protected ConnectionFactory createConnectionFactory() throws SQLException {
> ...
> ...
> ConnectionFactory driverConnectionFactory =
> getConnectionFactoryImpl().newInstance(...);
> return driverConnectionFactory;
> }
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)