Commit 58caadc1 authored by mjadhav's avatar mjadhav

add commit transaction


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98382 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ee9d85b5
...@@ -162,6 +162,7 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -162,6 +162,7 @@ public class POrderMilestone extends ValidatorEJB {
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
System.out.println("NO. OF RECORDS INSERTED==== "+count); System.out.println("NO. OF RECORDS INSERTED==== "+count);
} }
rs.close(); rs.close();
...@@ -180,6 +181,10 @@ public class POrderMilestone extends ValidatorEJB { ...@@ -180,6 +181,10 @@ public class POrderMilestone extends ValidatorEJB {
count1 = pstmt1.executeUpdate(); count1 = pstmt1.executeUpdate();
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
if(count1 > 0)
{
conn.commit();
}
System.out.println("NO. OF RECORDS updated==== "+count1); System.out.println("NO. OF RECORDS updated==== "+count1);
} }
......
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