[jira] [Commented] (OFBIZ-9841) Implement AutoCloseable interface in SQLProcessor Class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-9841) Implement AutoCloseable interface in SQLProcessor Class

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-9841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203584#comment-16203584 ]

Pradhan Yash Sharma commented on OFBIZ-9841:
--------------------------------------------

Added AutoCloseable interface to SQLProcessor class and overridden Close method, Added closing of ResultSet, PreparedStatement and Connection Objects.
While calling SQLProcessor object in GenericDAO used Try-with-Resources and removed unnecessary calls of the same object before actual use, also removed finally blocks for method invocation.


> Implement AutoCloseable interface in SQLProcessor Class
> -------------------------------------------------------
>
>                 Key: OFBIZ-9841
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9841
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pradhan Yash Sharma
>            Assignee: Pradhan Yash Sharma
>            Priority: Critical
>             Fix For: Trunk
>
>         Attachments: OFBIZ-9841.patch, OFBIZ-9841.patch
>
>
> Implement SQLProcessor class with the AutoCloseable interface.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)