Author: chrish
Date: Tue Nov 17 11:37:08 2015
New Revision: 1714758

URL: http://svn.apache.org/viewvc?rev=1714758&view=rev
Log:
CMS commit to olingo by chrish

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext

Modified: 
olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext
URL: 
http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext?rev=1714758&r1=1714757&r2=1714758&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext 
(original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext 
Tue Nov 17 11:37:08 2015
@@ -79,23 +79,17 @@ Add the following methods to the class `
     public void beginTransaction() {
         if(productListBeforeTransaction == null) {
             productListBeforeTransaction = cloneEntityCollection(productList);
-        } else {
-            throw new UnsupportedOperationException("Transaction already in 
process");
-        }
+        } 
     }
 
     public void commitTransaction() {
-        if(productListBeforeTransaction == null) {
-            throw new UnsupportedOperationException("No Transaction active");
-        } else {
+        if(productListBeforeTransaction != null) {
             productListBeforeTransaction = null;
         }
     }
 
     public void rollbackTranscation() {
-        if(productListBeforeTransaction == null) {
-            throw new UnsupportedOperationException("No Transaction active");
-        } else {
+        if(productListBeforeTransaction != null) {
             productList = productListBeforeTransaction;
             productListBeforeTransaction = null;
         }


Reply via email to