Commit e3d26eb6 authored by manohar's avatar manohar

bugfix loop ended in wrong place


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91412 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9ed1f87c
......@@ -516,7 +516,7 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
else
rights = null;
}
}
//}
// 01/06/10 manoharan
if (level1 == null || level1.trim().length() == 0)
......@@ -591,7 +591,8 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
3 - delete
*/
if(operation == 1 && rights.trim().length() > 0){
if(operation == 1 && rights.trim().length() > 0)
{
//pInsertStmt.setString(1, profileId);
pInsertStmt.setString(1, application);
pInsertStmt.setInt(2, Integer.parseInt(level1));
......@@ -605,7 +606,8 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
insertCount++;
pInsertStmt.addBatch();
}
else if(operation == 2){
else if(operation == 2)
{
pUpdateStmt.setString(1, rights.trim());
//pUpdateStmt.setString(2, profileId);
pUpdateStmt.setString(2, objName);
......@@ -618,7 +620,8 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
updateCount++;
pUpdateStmt.addBatch();
}
else if(operation == 3){
else if(operation == 3)
{
//pDeleteStmt.setString(1, profileId);
pDeleteStmt.setString(1, application);
pDeleteStmt.setInt(2, Integer.parseInt(level1));
......@@ -631,24 +634,25 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
}
}//End of subMenuList iteration for loop
}//End of if subMenuList is not null
}
}//outer for
if (insertCount > 0)
(
{
System.out.println("Before Delete Batch");
pInsertStmt.executeBatch();
System.out.println("After Insert Batch" );
}
if (updateCount > 0)
(
{
System.out.println("Before Update Batch");
pUpdateStmt.executeBatch();
System.out.println("After Update Batch = ");
}
if (deleteCount > 0)
(
{
System.out.println("Before Delete Batch");
pDeleteStmt.executeBatch();
System.out.println("After Delete Batch = ");
......
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