continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r491356 - /maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupStore.java
Date Sun, 31 Dec 2006 00:40:06 GMT
Author: rinku
Date: Sat Dec 30 16:40:05 2006
New Revision: 491356

URL: http://svn.apache.org/viewvc?view=rev&rev=491356
Log:
o  removed bit of code i was using for test purposes.

Modified:
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupStore.java

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupStore.java?view=diff&rev=491356&r1=491355&r2=491356
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupStore.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupStore.java
Sat Dec 30 16:40:05 2006
@@ -67,34 +67,7 @@
      */
     public ProjectGroup saveProjectGroup( ProjectGroup group ) throws ContinuumStoreException
     {
-        if ( false )
-        {
-            Transaction tx = getPersistenceManager().currentTransaction();
-            try
-            {
-                tx.begin();
-
-                getPersistenceManager().makePersistent( group );
-
-                tx.commit();
-            }
-            catch ( Exception e )
-            {
-                // Handle the exception
-            }
-            finally
-            {
-                if ( tx.isActive() )
-                {
-                    tx.rollback();
-                }
-            }
-        }
-        else
-        {
-            updateObject( group );
-        }
-
+        updateObject( group );
         return group;
     }
 



Mime
View raw message