You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2002/03/11 11:09:19 UTC

cvs commit: jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/impl PersistentProxy.java

baliuka     02/03/11 02:09:19

  Modified:    simplestore/src/java/org/apache/commons/simplestore/persistence/impl
                        PersistentProxy.java
  Log:
  Optimization
  
  Revision  Changes    Path
  1.14      +3 -4      jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/impl/PersistentProxy.java
  
  Index: PersistentProxy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/impl/PersistentProxy.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- PersistentProxy.java	11 Mar 2002 09:53:07 -0000	1.13
  +++ PersistentProxy.java	11 Mar 2002 10:09:19 -0000	1.14
  @@ -77,7 +77,7 @@
    *      baliuka@mwm.lt</a>
    *@author     Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">
    *      g-froehlich@gmx.de</a>
  - *@version    $Id: PersistentProxy.java,v 1.13 2002/03/11 09:53:07 baliuka Exp $
  + *@version    $Id: PersistentProxy.java,v 1.14 2002/03/11 10:09:19 baliuka Exp $
    */
   public class PersistentProxy
   implements MetaObject,  org.apache.commons.simplestore.tools.Constants ,
  @@ -193,8 +193,7 @@
       public void setProperty(int index, Object value) {
           Object old = m_props[ index ];
           if (old == null || !old.equals(value)) {
  -            m_context.getTransactionManager().getTransaction().add(this);
  -            m_props[ index ] = value;
  +             m_props[ index ] = value;
           }
       }
       
  @@ -332,7 +331,7 @@
                   setProperty(index, obj2[0]);
               }
               setState(true,DIRTY);
  -            
  +            m_context.getTransactionManager().getTransaction().add(this);
               return null;
               
           } else if( obj2.length == 0  ){
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>