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(); ...@@ -200,6 +200,7 @@ conn = getConnection();
if (!(updCnt==1)) if (!(updCnt==1))
{ {
errString = itmDBAccessEJB.getErrorString("","DS000NR",""); errString = itmDBAccessEJB.getErrorString("","DS000NR","");
break;// added by Nandkumar Gadkari 05/02/2018
} }
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
...@@ -306,7 +307,9 @@ conn = getConnection(); ...@@ -306,7 +307,9 @@ conn = getConnection();
updCnt = pstmt.executeUpdate(); updCnt = pstmt.executeUpdate();
if (!(updCnt==1)) if (!(updCnt==1))
{ {
errString = itmDBAccessEJB.getErrorString("","DS000NR",""); errString = itmDBAccessEJB.getErrorString("","DS000NR","");
break;// added by Nandkumar Gadkari 05/02/2018
} }
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
...@@ -389,6 +392,15 @@ conn = getConnection(); ...@@ -389,6 +392,15 @@ conn = getConnection();
rs1.close(); rs1.close();
rs1 = null; 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 } // while
pstmt2.close(); pstmt2.close();
pstmt2 = null; pstmt2 = null;
...@@ -429,9 +441,13 @@ conn = getConnection(); ...@@ -429,9 +441,13 @@ conn = getConnection();
if(errString.equals("")) if(errString.equals(""))
{ {
errString = "PROCSUCC"; 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) 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