commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bali...@apache.org
Subject cvs commit: jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/impl PersistentProxy.java
Date Mon, 11 Mar 2002 10:09:19 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message