portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl PreferencesImpl.java
Date Fri, 09 Jul 2004 18:16:01 GMT
weaver      2004/07/09 11:16:01

  Modified:    components/prefs/src/java/org/apache/jetspeed/prefs/impl
                        PreferencesImpl.java
  Log:
  flushSpi and syncSpi now commit the current transaction
  
  Revision  Changes    Path
  1.13      +5 -2      jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
  
  Index: PreferencesImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- PreferencesImpl.java	21 Jun 2004 17:53:08 -0000	1.12
  +++ PreferencesImpl.java	9 Jul 2004 18:16:01 -0000	1.13
  @@ -327,7 +327,10 @@
        */
       public void flushSpi() throws BackingStoreException
       {
  -        // Never used. Not implemented.
  +        if(persistenceStore.getTransaction().isOpen())
  +        {
  +            persistenceStore.getTransaction().commit();
  +        }
       }
   
       /**
  @@ -573,7 +576,7 @@
        */
       public void syncSpi() throws BackingStoreException
       {
  -        // Never used. Not implemented.
  +        flushSpi();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message