Commit 6e4f1dbd authored by prane's avatar prane

closed cursors and pstmts and added finally block

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196718 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 28c38cea
......@@ -4900,13 +4900,17 @@ public class PostOrderActivity {
System.out.println("balQtyBfr2 : : schmUsedval" +balQtyBfr +" :" +schmUsedval);
System.out.println("balValBfr 2: : schmUsedval" +balValBfr +" :" +schmUsedval);
}
}
if (rs8 != null)
{
rs8.close();
//rs9=null;
rs8=null; //[nulled rs8 by Pavan R]
}
if (pstmt8 != null) {
pstmt8.close();
pstmt8=null; //[nulled rs8 by Pavan R]
}
if (pstmt9 != null)
{
pstmt9.close();
......@@ -4930,6 +4934,53 @@ public class PostOrderActivity {
e.printStackTrace();
retString=e.toString();
}
finally //finally block added closed curesor and pstmt inside
{
try
{
if (rs != null) {
rs.close();
rs=null;
}
if (pstmt != null) {
pstmt.close();
pstmt = null;
}
if (rs1 != null) {
rs1.close();
rs1 =null;
}
if (pstmt1 != null) {
pstmt1.close();
pstmt1=null;
}
if (rs8 != null) {
rs8.close();
rs8=null;
}
if (pstmt8 != null) {
pstmt8.close();
pstmt8=null;
}
if (rs9 != null) {
rs9.close();
rs9 =null;
}
if (pstmt9 != null) {
pstmt9.close();
pstmt9=null;
}
if (pstmt90 != null) {
pstmt90.close();
pstmt90=null;
}
}
catch(Exception ef)
{
ef.printStackTrace();
}
}
return retString;
}
// Added By PriyankaC update scheme_balance as per the nature [END].
......
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