Commit 67ab787a authored by prane's avatar prane

to close the cursor and pstmt while retuing string

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@197656 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4bea0c79
......@@ -676,6 +676,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
//if(holdFlag == "Y")
if("Y".equals(holdFlag))
{
rs3.close(); rs3 = null; //23feb19[to close the cursor and pstmt while retuing string]
pstmt3.close(); pstmt3 = null;
errString = itmDBAccessEJB.getErrorString("","VTCODE1","","",conn);
return errString;
}
......@@ -703,6 +705,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
//if(holdFlagNew == "Y")
if("Y".equals(holdFlagNew))
{
rs3.close(); rs3 = null; //23feb19[to close the cursor and pstmt while retuing string]
pstmt3.close(); pstmt3 = null;
errString = itmDBAccessEJB.getErrorString("","VTCODE2","","",conn);
return errString ;
}
......@@ -1035,6 +1039,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
//Added by Pavan R on 01aug18 [errString msg is returned from stock update, this message was ignored in a specific situation]
if(errString != null && errString.trim().length()>0)
{
rs3.close(); rs3 = null; //23feb19[to close the cursor and pstmt while retuing string]
pstmt3.close(); pstmt3 = null;
return errString;
}
//CALLING UPDATE OF STOCK FOR TRANSIT ENTRY
......@@ -1072,6 +1078,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
//Added by Pavan R on 01aug18 [errString msg is returned from stock update, this message was ignored in a specific situation]
if(errString != null && errString.trim().length()>0)
{
rs3.close(); rs3 = null; //23feb19[to close the cursor and pstmt while retuing string]
pstmt3.close(); pstmt3 = null;
return errString;
}
......@@ -1374,11 +1382,15 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
rs = null;
if(cnt4 == 0)
{
rs3.close(); rs3 = null; //23feb19[to close the cursor and pstmt while retuing string]
pstmt3.close(); pstmt3 = null;
errString = itmDBAccessEJB.getErrorString("","VTB17ERR1","","",conn);
return errString ;
}
else if(bankGuarantee < (bondValue+bondTaxAmt))
{
rs3.close(); rs3 = null; //23feb19[to close the cursor and pstmt while retuing string]
pstmt3.close(); pstmt3 = null;
errString = itmDBAccessEJB.getErrorString("","VTB17ERR2","","",conn);
return errString ;
}
......
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