Commit 7fec9b87 authored by jshaikh's avatar jshaikh

Changes made in GenVal for closing connection

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@183176 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b74d6b33
...@@ -568,6 +568,7 @@ public class GenVal ...@@ -568,6 +568,7 @@ public class GenVal
//return stkOpt; //return stkOpt;
} }
//return errMsg; //return errMsg;
//Changed by Santosh on 15/12/2016 to return list of error codes instead of HashMap //Changed by Santosh on 15/12/2016 to return list of error codes instead of HashMap
//return errorMap;//return type changed by sagar on 25/12/14 //return errorMap;//return type changed by sagar on 25/12/14
...@@ -779,7 +780,36 @@ public class GenVal ...@@ -779,7 +780,36 @@ public class GenVal
//Added by Santosh on 15/12/2016 to add errCode in traceNode xml[End] //Added by Santosh on 15/12/2016 to add errCode in traceNode xml[End]
} }
catch(Exception e){e.printStackTrace();} catch(Exception e)
{
e.printStackTrace();
}
//Added by Jaffar on 4th Apr 18 ---> Start
finally
{
try
{
if(mrs !=null)
{
mrs.close();
mrs=null;
}
if(mst!=null)
{
mst.close();
mst=null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
//-------- End --------
//next line commented by msalam on 22/11/07 as validation is required on fldData blank also //next line commented by msalam on 22/11/07 as validation is required on fldData blank also
//}//end of blank opt N //}//end of blank opt N
//end commented by msalam on 22/11/07 as validation is required on fldData blank also //end commented by msalam on 22/11/07 as validation is required on fldData blank also
...@@ -1051,6 +1081,32 @@ public class GenVal ...@@ -1051,6 +1081,32 @@ public class GenVal
{ {
e.printStackTrace(); e.printStackTrace();
} }
//Added by Jaffar on 4th Apr 18 ---> Start
finally
{
try
{
if(rs1 !=null)
{
rs1.close();
rs1=null;
}
if(pstmt1!=null)
{
pstmt1.close();
pstmt1=null;
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
//-------- End --------
//Added by Santosh on 15/12/2016 to add errCode in traceNode xml[Start] //Added by Santosh on 15/12/2016 to add errCode in traceNode xml[Start]
if(errCode.trim().length()>0 && errCode != null) if(errCode.trim().length()>0 && errCode != null)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment