Commit 0c49cd13 authored by ngadkari's avatar ngadkari

Break statement added for while loops

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179626 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9d620ce4
......@@ -200,6 +200,7 @@ conn = getConnection();
if (!(updCnt==1))
{
errString = itmDBAccessEJB.getErrorString("","DS000NR","");
break;// added by Nandkumar Gadkari 05/02/2018
}
pstmt.close();
pstmt = null;
......@@ -305,8 +306,10 @@ conn = getConnection();
pstmt.setString(16,cctrCode);
updCnt = pstmt.executeUpdate();
if (!(updCnt==1))
{
{
errString = itmDBAccessEJB.getErrorString("","DS000NR","");
break;// added by Nandkumar Gadkari 05/02/2018
}
pstmt.close();
pstmt = null;
......@@ -389,6 +392,15 @@ conn = getConnection();
rs1.close();
rs1 = null;
// --------added by Nandkumar Gadkari 05/02/2018 for break while loop----start--------------------
if (errString !=null && errString.trim().length() > 0)
{ System.out.println("errBreak:::::::::");
break;
}
// --------added by Nandkumar Gadkari 05/02/2018 for break while loop----end--------------------
} // while
pstmt2.close();
pstmt2 = null;
......@@ -429,8 +441,12 @@ conn = getConnection();
if(errString.equals(""))
{
errString = "PROCSUCC";
// ---Nandkumar Gadkari 05/02/2018 --- added this inside the if condition Start -----------
resultString = itmDBAccessEJB.getErrorString("",errString,userId);
}
resultString = itmDBAccessEJB.getErrorString("",errString,userId);
/*resultString = itmDBAccessEJB.getErrorString("",errString,userId);*/// Commented By Nandkumar Gadkari 05/02/2018
//-----Nandkumar Gadkari 05/02/2018 --- end -----------------------------------
}
if(conn!=null && connStatus)
......
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