Commit 30e461df authored by ajadhav's avatar ajadhav

Comment VTPROCUS error and add new error code suitable to logic

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185478 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 91763eb2
......@@ -159,7 +159,8 @@ conn = getConnection();
if (rowsDelete == 0)
{
conn.rollback();
errCode = "VTPROCUS";
// errCode = "VTPROCUS"; Commented by Ajay on 22/05/18
errCode = "VTDELF";//Add by ajay on 22/05/18
break;
}
stmt1.close();//Gulzar 06/01/07
......@@ -176,7 +177,8 @@ conn = getConnection();
else
{
conn.rollback();
errCode = "VTPROCUS";
//errCode = "VTPROCUS"; Commented by Ajay on 23/05/18
errCode = "VTRECNF"; //Add by Ajay on 23/05/18
break;
}
stmt1.close();//Gulzar 06/01/07
......@@ -232,7 +234,16 @@ conn = getConnection();
stmt1.close();//Gulzar 06/01/07
stmt1 = null; //Gulzar 06/01/07
System.out.println("Delete Sql ::"+sql2);
System.out.println("Rows Deleted ::"+rowsUpdate);
System.out.println("Rows Deleted ::"+rowsUpdate);
//Add by Ajay on 24/05/18:START
if (rowsUpdate == 0)
{
conn.rollback();
errCode = "VTFAILD";
break;
}
//Add by Ajay on 24/05/18:END
}
else
{
......@@ -245,20 +256,31 @@ conn = getConnection();
pstmt.close();//Gulzar 06/01/07
pstmt = null; //Gulzar 06/01/07
System.out.println("The sql of Update Query:"+sql2);
System.out.println("Rows Updated ::"+rowsUpdate);
System.out.println("Rows Updated ::"+rowsUpdate);
//Add by Ajay on 24/05/18:START
if (rowsUpdate == 0)
{
conn.rollback();
errCode = "VTUPFAIL";//VTDELF VTPRCSUCNT
break;
}
//Add by Ajay on 24/05/18:END
}
}
if (rowsUpdate == 0)
//Commented by Ajay on 24/05/18:START
/* if (rowsUpdate == 0)
{
conn.rollback();
errCode = "VTPROCUS";
break;
}
errCode = "VTPROCUS";
break;
}*/
//Commented by Ajay on 24/05/18:END
}while (rs.next());
}
else
{
errCode = "VTPROCUS";
//errCode = "VTPROCUS";Commented by Ajay on 23/05/18
errCode = "VTSUCC1"; //Add by Ajay on 23/05/18
}
stmt.close();
stmt = null;
......@@ -274,7 +296,8 @@ conn = getConnection();
if (rows == 0)
{
conn.rollback();
errCode = "VTPROCUS";
//errCode = "VTPROCUS"; Commented by Ajay on 23/05/18
errCode = "VTUPDFAL";//Add by Ajay on 23/05/18
}
else
{
......@@ -285,7 +308,8 @@ conn = getConnection();
}
else
{
errCode = "VTPROCUS";
//errCode = "VTPROCUS"; Commented by Ajay on 22/05/18
errCode = "VTBCONF"; //Add by Ajay on 22/05/18
}
System.out.println("errCode: "+errCode);
if (errCode != null && errCode.trim().length() > 0)
......
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